Template:Distinguish/doc: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
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|Hero Alt|a type of game mechanic}}
!Wikitext
</pre>
!Output
 
|-
{{distinguish|Hero Alt|a type of game mechanic}}
|<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>

Latest revision as of 06:07, 30 August 2025

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Link1

The page to display a link to.

Example
Phayze
Stringsuggested
Link 22

Displays a link to this page as well, if specified.

Example
Phasing Bloon
Stringoptional
Texttext

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).

Stringoptional

Example usage

Wikitext Output
{{distinguish|Phayze Bloon}}
Not to be confused with Phayze Bloon.
{{distinguish|Phayze|Phasing Bloon}}
Not to be confused with Phayze or Phasing Bloon.
{{distinguish|text=[[Hero Alt]]s, which actually affect gameplay}}
Not to be confused with Hero Alts, which actually affect gameplay.