ผลต่างระหว่างรุ่นของ "แม่แบบ:Otheruses templates"
หน้าใหม่: <noinclude>{{ombox |image=40px |style=background:#f9f9b7; |text='''This is a template documentation page.'''<b… |
ไม่มีความย่อการแก้ไข |
||
บรรทัด 133: | บรรทัด 133: | ||
{{Documentation}} |
{{Documentation}} |
||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> |
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> |
||
<templatedata> |
|||
{ |
|||
"params": {} |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
</noinclude> |
รุ่นแก้ไขเมื่อ 19:40, 20 กรกฎาคม 2560
This is a template documentation page. This page may not be intended to be viewed directly. Links using variables may appear broken; do not replace these with hardcoded page names or URLs. |
Otheruses templates
To discuss these templates as a whole, please see: Disambiguation (talk). If you wish to discuss general wordings, rather than the wording or formatting of this specific template, don't post here or else what you say will probably go unnoticed.
For a summary page on how to use these templates, see: Otheruses templates (example usage).
Generic
{{Dablink|TEXT}}
- For example:
{{dablink|For other senses of this term, see [[etc...]]}}
. (Note: adaptable, but fails to standardize hatnotes).
{{Selfref|TEXT}}
- Note: similar in usage to the Dablink template, but used for hatnotes that don't make sense on mirrors of Wikipedia, such as linking an article from the main namespace to the Wikipedia namespace. (See: Avoid self-references for more details).
Otheruses
Note: when used in the main namespace, the word "page" is replaced by "article" in the following hatnotes.
{{About}} is the main template for giving other uses; it redirects to {{otheruses4}}.
{{otheruses4|USE1}}
(disambiguous){{otheruses4|USE1|USE2}}
(disambiguous){{otheruses4|USE1|USE2|PAGE2}}
{{About||USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}}
(alias and empty first parameter)
{{otheruses4|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}}
(fully specified)
Variations
Serving the same purpose are the variations of {{about}}. These are marginally easier to use for each individual purpose; however, because having so many different templates complicates things, it could be argued that the time saved by using them is lost by the time required to learn about them.
The following templates are variations of {{about}}:
{{otheruses}}
(disambiguous)
- Note:
will produce the same result.{{about}}
{{otheruses1|USE}}
(disambiguous) แม่แบบ:Otheruses1
- Note:
will produce the same result.{{about|USE}}
{{otheruses2|PAGE}}
(disambiguous) แม่แบบ:Otheruses2
- Note: adds "(disambiguation)" to whatever is input as the PAGE.
{{otheruses3|PAGE}}
แม่แบบ:Otheruses3
- Note:
(with two empty parameters) will produce the same result.{{about|||PAGE}}
{{otheruses5}}
(disambiguous) แม่แบบ:Otheruses5
- Note: use when there is both a singular and plural disambiguation page. (Only works when the plural is formed by simply adding a "s" at the end)
{{otheruses6|PAGE1|PAGE2}}
แม่แบบ:Otheruses6
- Note: use when there are two disambiguation pages, such as a noun and an adjective or a singular and irregular plural. There are only two parameters, at least one parameter is required. (This usage cannot be recreated with
{{about}}
, only with{{dablink}}
or{{for}}
)
{{This|USE|PAGE}}
- Note:
{{about|USE||PAGE}}
(with one empty parameter) will produce the same result.
{{Template:Otheruses-section}}
(disambiguous) แม่แบบ:Otheruses-section
- Note: same as {{Otheruses4}}, except that it says "section", instead of "article" or "page" and indents only as far as {{Main}} and other section quasi-hatnotes.
For (other topic)
Both {{for}} (and {{for2}}) can be used, instead of {{about}}, to not include the first part - "This article is about USE". However, this effect can also be achieved with an empty first parameter in {{about}}.
Also, {{for3}} is somewhat different, appending the word the in its mention of the second parameter, then generating a link, using either the second or (if present) the third parameter, as a parenthetical. Additionally, {{the}} is simply a rendering of {{for3}}, without bothering with the optional first argument.
{{For}}
(disambiguous) ข้อผิดพลาด: ไม่ได้ระบุข้อความบริบทหลังคำว่า "สำหรับ" หากต้องการให้แสดงข้อความ "สำหรับความหมายอื่น" กรุณาใช้ {{ความหมายอื่น}} (ช่วยเหลือ){{For|OTHER TOPIC}}
(disambiguous){{For|OTHER TOPIC|PAGE}}
{{For|OTHER TOPIC|PAGE1|PAGE2}}
{{For2|OTHER TOPIC|CUSTOM TEXT}}
{{For3||DIFFERENT MEANING|}}
แม่แบบ:For3{{For3|OTHER TOPIC|DIFFERENT MEANING}}
แม่แบบ:For3{{For3|OTHER TOPIC|DIFFERENT MEANING|CUSTOM PARENTHETICAL}}
แม่แบบ:For3{{The|DIFFERENT MEANING}}
แม่แบบ:The{{The|DIFFERENT MEANING|CUSTOM PARENTHETICAL}}
แม่แบบ:The
See also
{{See also|OTHER TOPIC}}
- Note: use when OTHER TOPIC is related to that of the current article and already contains a self-explanatory parenthetical.
Other people
{{otherpersons}}
(disambiguous) แม่แบบ:Otherpersons{{otherpersons|USE}}
(disambiguous) แม่แบบ:Otherpersons{{otherpersons|USE|PAGE}}
แม่แบบ:Otherpersons{{otherpeople2|PAGE}}
แม่แบบ:Otherpeople2{{otherpeople3|USE1|USE2}}
(disambiguous) แม่แบบ:Otherpeople3{{otherpeople4|USE1|USE2|PAGE}}
แม่แบบ:Otherpeople4
Other places
- {{Otherplaces}}, analogous to {{Otheruses}} (disambiguous)
- {{Otherplaces2}}, analogous to {{Otheruses2}} (disambiguous)
- {{Otherplaces3}}, analogous to {{Otheruses3}}
Otherhurricaneuses
For articles on storms:
{{otherhurricaneuses}}
(disambiguous){{otherhurricaneuses|DISAMBIG}}
{{otherhurricaneuses|DISAMBIG|THIS}}
{{otherhurricaneuses3|USE1|USE2|MAIN}}
(disambiguous) แม่แบบ:Otherhurricaneuses3
Otherusesof (topic)
{{otherusesof}}
(disambiguous){{otherusesof|TOPIC}}
(disambiguous){{otherusesof|TOPIC|PAGE}}
Redirect
{{Redirect|REDIRECT}}
(disambiguous){{Redirect|REDIRECT||PAGE}}
{{Redirect|REDIRECT|USE|PAGE}}
{{Redirect2|REDIRECT1|REDIRECT2}}
(disambiguous){{Redirect2|REDIRECT1|REDIRECT2|USE|PAGE}}
{{Redirect3|REDIRECT|TEXT}}
แม่แบบ:Redirect3{{Redirect4|REDIRECT1|REDIRECT2}}
(disambiguous) แม่แบบ:Redirect4{{Redirect5|REDIRECT|USE1|PAGE1|USE2|PAGE2}}
แม่แบบ:Redirect5{{Redirect5|REDIRECT|USE1|PAGE1||PAGE2}}
แม่แบบ:Redirect5{{Redirect6|REDIRECT|USE1|PAGE1||}}
(disambiguous) แม่แบบ:Redirect6{{Redirect8|REDIRECT1|REDIRECT2}}
แม่แบบ:Redirect8
"Not to be confused with..."
{{Distinguish|PAGE}}
{{Distinguish2|TEXT}}
Notes
Do not use subst: with these templates, as that will prevent:
- propagating changes as the template is modified; and the
- What links here (WLH) listing.
Please do not edit these templates, unless you know what you are doing.
These templates are used in thousands of articles; therefore, changing the syntax could break thousands of articles. If you wish to create or edit a disambiguation or redirection template, first ask yourself the following questions:
- Is there another template already, that will do this job? Since many disambiguation and redirection templates have already been created, first check: Category:Disambiguation and redirection templates.
- Do I really need a new template for this? Will it likely be used on any other articles or should I just use {{dablink}} instead? Before creating a new template, see: Template namespace guideline.
- If I change the parameters around on an existing template, do I know what the result will be? Will it break existing uses of the template and if so, can I fix all of the errors? Before making any changes, see: Template test cases.
ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |
ไม่มีคำอธิบาย
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |||
---|---|---|---|---|---|---|
ไม่ได้ระบุพารามิเตอร์ใด |