Template:Distinguish/doc: Difference between revisions
Qwertyxp2000 (talk | contribs) Created page with "==Example usage== <pre> {{distinguish|Hero Alt|a type of game mechanic}} </pre> {{distinguish|Hero Alt|a type of game mechanic}}" |
i had to change the syntax to add a way to display a second link |
||
| Line 1: | Line 1: | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Link", | |||
"description": "The page to display a link to.", | |||
"example": "Phayze", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"2": { | |||
"label": "Link 2", | |||
"description": "Displays a link to this page as well, if specified.", | |||
"example": "Phasing Bloon", | |||
"type": "string" | |||
}, | |||
"text": { | |||
"label": "Text", | |||
"description": "If specified, displays custom wikitext instead of a list of names that are automatically converted to links. The \"link\" and \"link 2\" parameters are ignored if this is used. This does not automatically format text as links (you have to specify that yourself).", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "A hatnote used to distinguish between articles that have somewhat similar titles, but are not similar enough to where {{for}} or {{about}} should be used instead.", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"text" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
==Example usage== | ==Example usage== | ||
<pre> | {|class="wikitable" | ||
{{distinguish| | !Wikitext | ||
</pre> | !Output | ||
|- | |||
{{distinguish|Hero Alt| | |<pre>{{distinguish|Phayze Bloon}}</pre> | ||
|{{distinguish|Phayze Bloon}} | |||
|- | |||
|<pre>{{distinguish|Phayze|Phasing Bloon}}</pre> | |||
|{{distinguish|Phayze|Phasing Bloon}} | |||
|- | |||
|<pre>{{distinguish|text=[[Hero Alt]]s, which actually affect gameplay}}</pre> | |||
|{{distinguish|text=[[Hero Alt]]s, which actually affect gameplay}} | |||
|} | |||
<includeonly>[[Category:Hatnotes]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | |||