Template:Specify: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
Move doc to {{Documentation}} & Make the default version "X (Disambiguation)" work on pages that have a (bracket) already - e.g., so "X (Ocarina of Time)" doesn't try to send you to "X (Ocarina of Time) (Disambiguation)"
mNo edit summary
(Move doc to {{Documentation}} & Make the default version "X (Disambiguation)" work on pages that have a (bracket) already - e.g., so "X (Ocarina of Time)" doesn't try to send you to "X (Ocarina of Time) (Disambiguation)")
Line 1: Line 1:
<onlyinclude>{{Hatnote|{{#if: {{{this|}}}|This article is about {{{this}}}.{{S}}|}}{{#if: {{{second|}}}|For {{{second}}}, see {{{secondlink}}}.{{S}}|}}{{#if: {{{third|}}}|For {{{third}}}, see {{{thirdlink}}}.{{S}}|}}For {{{other|other uses}}}, see {{{link|[[{{PAGENAME}} (Disambiguation)]]}}}.}}</onlyinclude>
<onlyinclude>{{Hatnote|{{#if: {{{this|{{{1|}}}}}}|This article is about {{{this|{{{1}}}}}}.{{S}}|}}{{#if: {{{second|}}}|For {{{second}}}, see {{{secondlink}}}.{{S}}|}}{{#if: {{{third|}}}|For {{{third}}}, see {{{thirdlink}}}.{{S}}|}}For {{{other|{{{2|other uses}}}}}}, see {{{link|{{{3|[[{{#explode:{{PAGENAME}}|(|0}} (Disambiguation)]]}}}}}}.}}</onlyinclude>
 
{{Documentation}}
==Purpose==
This hatnote is used to specify the content of the article or contrast it with a similar article.
 
==Usage==
{{Usage|this{{=}}}}
{{Usage/Param|this|A very brief description of this article.}}
 
The parameter "this" should always be used in order to distinguish the article on which this template is placed from other articles with similar titles. In addition, this template uses two different sets of parameters for linking to similar pages, depending on whether there is a disambiguation page associated with the title in question.
 
===Disambiguation Page===
Using {{Usage|this{{=}}}} by itself produces a link to a disambiguation page:
 
<code><nowiki>{{Specify|this=the "Specify" template documentation}}</nowiki></code> → {{Specify|this=the "Specify" template documentation}}
 
If there is a '''second'''ary article, you can provide a link to that article in addition to the disambiguation page using the parameters "second" and "secondlink".
 
{{Usage|this{{=}}|second{{=}}|secondlink{{=}}}}
{{Usage/Param|second|A brief description of the secondary article.}}
{{Usage/Param|secondlink|A link to the secondary article.}}
 
<code><nowiki>{{Specify|this=the "Specify" template documentation|second=a command to be more specific|secondlink=(link to that page)}}</nowiki></code> →
{{Specify|this=the "Specify" template documentation|second=a command to be more specific|secondlink=(link to that page)}}
 
For the rare case of having both secondary and tertiary articles as well as others, "third" and "thirdlink" are also available. These should be used sparingly and should generally not be used if the hatnote extends too far over one line.
 
===No Disambiguation Page===
If there is no disambiguation page, override the disambiguation link by defining "other" and "link".
 
To specify '''this''' article from an'''other''' article and provide a '''link''' to the other article:
 
{{Usage|this{{=}}|other{{=}}|link{{=}}}}
{{Usage/Param|other|A very brief description of the article to which this template links.|optional|"other uses"}}
{{Usage/Param|link|A link to the contrasted article.|optional|disambiguation page}}
 
<code><nowiki>{{Specify|this=the "Specify" template documentation|other=a command to be more specific|link=(link to that page)}}</nowiki></code>
{{Specify|this=the "Specify" template documentation|other=a command to be more specific|link=(link to that page)}}
 
If there is no disambiguation page but there are two or three other articles with similar titles, "second" and "secondlink" can serve to add extra links, as well as "third" and "thirdlink" as needed. Note that "other" and "link" will appear last.
 
For specific guidelines on when and how to use this template, see [[Help:Disambiguation]].
 
 
{{Cat|Hatnote Templates}}
{{Cat|Hatnote Templates}}

Navigation menu