Template:For: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Strand312@legacy41915495
(Created for template)
 
>Jerodast
m (I guess an extra line is built in to hatnote)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
:<span class="dablink">''For {{{1}}}, see [[{{{2|{{PAGENAME}} (disambiguation)}}}]]{{#if:{{{3|}}}|&#32;and [[{{{3}}}]]}}.''</span><noinclude>[[Category:Disambiguation and redirection templates|For]]</noinclude>
<includeonly>{{hatnote|For {{{1}}}, see [[{{{2|{{PAGENAME}} (disambiguation)}}}|{{{3|{{{2|{{PAGENAME}} (disambiguation)}}}}}}]].}}</includeonly><noinclude>
 
This template places a {{tl|hatnote}} (italicized note for use above the main article) optionally referring readers to a page they might have been trying to get to instead of the current one.
 
==Example==
:<code><nowiki>{{For|its creator known by the same name|Dakkon Blackblade}}</nowiki></code>
 
produces{{For|its creator known by the same name|Dakkon Blackblade}}
 
==Usage==
The first parameter (required) is a description of the other page being referenced. If it is the only parameter provided, the note will refer to the disambiguation page for the term on the current page, and the parameter should be a phrase that references other uses of the name, like "characters and places named Markov" or simply "other uses". See also the simpler {{tl|Otheruses}}.
 
The second parameter (recommended) is the exact name of the page to link to (without any link formatting). If not provided, it links to the disambiguation page for the current page's name.
 
The third parameter (optional) is the display text for the link, if different from the exact name of the page being linked.
 
See also {{tl|About}} to include a brief description of the current page (to differentiate it from the pages being referred to) and/or multiple links to alternate pages. That template can mimic this one exactly.
 
[[Category:Hatnote templates]]</noinclude>

Latest revision as of 04:08, 28 June 2022


This template places a {{hatnote}} (italicized note for use above the main article) optionally referring readers to a page they might have been trying to get to instead of the current one.

Example

{{For|its creator known by the same name|Dakkon Blackblade}}

produces

For its creator known by the same name, see Dakkon Blackblade.

Usage

The first parameter (required) is a description of the other page being referenced. If it is the only parameter provided, the note will refer to the disambiguation page for the term on the current page, and the parameter should be a phrase that references other uses of the name, like "characters and places named Markov" or simply "other uses". See also the simpler {{Otheruses}}.

The second parameter (recommended) is the exact name of the page to link to (without any link formatting). If not provided, it links to the disambiguation page for the current page's name.

The third parameter (optional) is the display text for the link, if different from the exact name of the page being linked.

See also {{About}} to include a brief description of the current page (to differentiate it from the pages being referred to) and/or multiple links to alternate pages. That template can mimic this one exactly.