Difference between revisions of "Template:For/doc"

From Yugipedia
Jump to: navigation, search
(update)
(Usage: completely empty {{For}} example)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
=== Usage ===
 
=== Usage ===
{{tl|For}} is used to add disambiguating hatnotes to the tops of articles. It takes at least two unnamed parameters, with the exact message changing according to the number. Additional pointers can be added with more pairs of unnamed parameters, up to a maximum of 6 (12 parameters).
+
{{tl|For}} is used to add disambiguating hatnotes to the tops of articles. It takes at least two unnamed parameters, where the first is a brief description of the target article and the second is the article's page name, with any formatting as needed (anything that is supported by {{tl|Autolink}} may be used). Additional pointers can be added with more pairs of unnamed parameters, up to a maximum of 6 (12 parameters).
  
 
{| class="wikitable" style="width: auto; margin: auto;"
 
{| class="wikitable" style="width: auto; margin: auto;"
Line 16: Line 16:
 
| {{For|the character|Yubel (character)|the anime card|""Yubel"" (anime)}}
 
| {{For|the character|Yubel (character)|the anime card|""Yubel"" (anime)}}
 
|-
 
|-
 +
| <code><nowiki>{{For|the item also known as "Amplifier"|Electrodes|and|Amplifier (''Tag Force'' item)}}</nowiki></code>
 +
| {{For|the item also known as "Amplifier"|Electrodes|and|Amplifier (''Tag Force'' item)}}
 +
|-
 +
| <code><nowiki>{{For|the rarities|Sparkling Yellow Rare|and|Yellow Rare|and|Blue Rare|and|Red Rare|and|Gray Rare}}</nowiki></code>
 +
| {{For|the rarities|Sparkling Yellow Rare|and|Yellow Rare|and|Blue Rare|and|Red Rare|and|Gray Rare}}
 +
|-
 +
| <code><nowiki>{{For|other versions of this character}}</nowiki></code><br />(when used on [[Alito]])
 +
| {{For|other versions of this character|Alito (disambiguation)}}<!-- please ignore that the link is specified here; this is necessary for this example to display properly here, but the claimed markup does work properly on intended pages -->
 +
|-
 +
| <code><nowiki>{{For}}</nowiki></code><br />(when used on [[Alito]])
 +
| {{For||Alito (disambiguation)}}<!-- please ignore that the link is specified here; this is necessary for this example to display properly here, but the claimed markup does work properly on intended pages -->
 
|}
 
|}
  

Latest revision as of 16:07, 4 May 2023

Usage[edit]

{{For}} is used to add disambiguating hatnotes to the tops of articles. It takes at least two unnamed parameters, where the first is a brief description of the target article and the second is the article's page name, with any formatting as needed (anything that is supported by {{Autolink}} may be used). Additional pointers can be added with more pairs of unnamed parameters, up to a maximum of 6 (12 parameters).

Code Result
{{For|the character|Yubel (character)}}
{{For|the character|Yubel (character)|the anime card|""Yubel"" (anime)}}
{{For|the item also known as "Amplifier"|Electrodes|and|Amplifier (''Tag Force'' item)}}
{{For|the rarities|Sparkling Yellow Rare|and|Yellow Rare|and|Blue Rare|and|Red Rare|and|Gray Rare}}
{{For|other versions of this character}}
(when used on Alito)
{{For}}
(when used on Alito)

See also[edit]