Template:Distinguish: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks
No edit summary
Aliser (talk | contribs)
depends on {{hatnote}}
 
(7 intermediate revisions by 5 users not shown)
Line 9: Line 9:
         -->|, [[{{{2}}}]] or [[{{{3}}}]]<!-- concat two
         -->|, [[{{{2}}}]] or [[{{{3}}}]]<!-- concat two
              
              
         -->|{{sp}}or [[{{{2}}}]]<!-- else; concat one
         -->|<nowiki> </nowiki>or [[{{{2}}}]]<!-- else; concat one
              
              
       -->}}<!-- end concat if
       -->}}<!-- end concat if
Line 28: Line 28:
--></includeonly><!--  
--></includeonly><!--  


--><noinclude>{{doc}}</noinclude>
--><noinclude>
{{doc|bb=
{{depends on template|Hatnote}}
}}
 
[[Category:Hatnote templates]]
[[Category:Template starter-kit]]
<templatedata>
{
"params": {
"1": {
"label": "Alternative",
"description": "The alternative page.",
"example": "Alternative Page",
"type": "wiki-page-name",
"suggested": true
},
"2": {
"label": "Second Alternative",
"description": "A second alternative page.",
"example": "Second Alternative Page",
"type": "wiki-page-name"
},
"3": {
"label": "Third Alternative",
"description": "A third alternative page.",
"example": "Third Alternative Page",
            "type": "wiki-page-name"
},
"text": {
"label": "Alternative Text",
"description": "Instead of using pages, you can provide a full alternative text. This parameter overrides other provided parameters.",
"example": "the alternative page, [[Alternative Page]]",
"type": "line"
}
},
"description": "This hatnote template is meant to be used to indicate possible alternatives to what the reader wants to find.",
"paramOrder": [
"1",
"2",
"3",
"text"
],
"format": "inline"
}
</templatedata>
</noinclude>

Latest revision as of 00:33, 20 May 2025

Template documentation
view or edit this documentation about template documentation
Depends on template
This template depends on template:

Examples

Code Result
{{Distinguish|Special:Uncategorizedpages}}
Not to be confused with Special:Uncategorizedpages.
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles}}
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}}
{{Distinguish|Special:Uncategorizedpages{{!}}Page 1}} (Custom link label)
Not to be confused with Page 1.
{{Distinguish|text = Page 1, another name for [[Special:Uncategorizedpages]]}}
Not to be confused with Page 1, another name for Special:Uncategorizedpages.

This hatnote template is meant to be used to indicate possible alternatives to what the reader wants to find.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Alternative1

The alternative page.

Example
Alternative Page
Page namesuggested
Second Alternative2

A second alternative page.

Example
Second Alternative Page
Page nameoptional
Third Alternative3

A third alternative page.

Example
Third Alternative Page
Page nameoptional
Alternative Texttext

Instead of using pages, you can provide a full alternative text. This parameter overrides other provided parameters.

Example
the alternative page, [[Alternative Page]]
Lineoptional