Template:Specify: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Replaced with Pikmin Dungeon's version)
(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)")
 
(4 intermediate revisions by one other user not shown)
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==
{{Cat|Hatnote Templates}}
This hatnote is used to specify the content of the article or contrast it with a similar article.
 
==Usage==
{{Usage|this{{=}}|other{{=}}|link{{=}}}}
{{Usage/Param|this|A very brief description of the article on which this template is placed.|optional}}
{{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}}
 
If there are several related titles, but one stands out as a secondary article, use ''second'' and ''secondlink'' instead of ''other'' and ''link''.
 
{{Usage|this{{=}}|second{{=}}|secondlink{{=}}}}
{{Usage/Param|second|A very brief description of the secondary article.}}
{{Usage/Param|secondlink|A link to the secondary article.}}
 
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.
 
Examples:
*<code><nowiki>{{Specify}}</nowiki></code> → {{Specify}}
*<code><nowiki>{{Specify|this=the Specify template}}</nowiki></code> → {{Specify|this=the Specify template}}
*<code><nowiki>{{Specify|other=disambiguation guidelines|link=[[Help:Disambiguation]]}}</nowiki></code> → {{Specify|other=disambiguation guidelines|link=[[Help:Disambiguation]]}}
*<code><nowiki>{{Specify|this=the species|second=the first game in the series|secondlink=[[Pikmin (Game)]]}}</nowiki></code> → {{Specify|this=the species|second=the first game in the series|secondlink=[[Pikmin (Game)]]}}
 
For specific guidelines on when and how to use this template, see [[Help:Disambiguation]].
 
 
{{Cat|Formatting Templates}}

Latest revision as of 00:52, June 29, 2020

For other uses, see Specify (Disambiguation).

[Edit Documentation]

Purpose

This hatnote is used to specify the content of the article or contrast it with a similar article.

Usage

{{Specify| this= }}

  • 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 {{Specify| this= }} by itself produces a link to a disambiguation page:

{{Specify|this=the "Specify" template documentation}}

This article is about the "Specify" template documentation. For other uses, see Specify (Disambiguation).

If there is a secondary article, you can provide a link to that article in addition to the disambiguation page using the parameters "second" and "secondlink".

{{Specify| this= | second= | secondlink= }}

  • second — A brief description of the secondary article.
  • secondlink — A link to the secondary article.

{{Specify|this=the "Specify" template documentation|second=a command to be more specific|secondlink=(link to that page)}}

This article is about the "Specify" template documentation. For a command to be more specific, see (link to that page). For other uses, see Specify (Disambiguation).

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 another article and provide a link to the other article:

{{Specify| this= | other= | link= }}

  • other — A very brief description of the article to which this template links. (Optional. Default: "other uses")
  • link — A link to the contrasted article. (Optional. Default: disambiguation page)

{{Specify|this=the "Specify" template documentation|other=a command to be more specific|link=(link to that page)}}

This article is about the "Specify" template documentation. For a command to be more specific, see (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.