Template:Distinguish/doc: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks
No edit summary
Aliser (talk | contribs)
cleanup
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Summary ==
<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"
},
"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>
== Examples ==
== Examples ==
{| class="wikitable"
{| class="wikitable"
! Code !! Result
! Code !! Result
|-
|-
| <code><nowiki>{{Distinguish|Page One}}</nowiki></code> || {{Distinguish|Page One}}
| <code><nowiki>{{Distinguish|Special:Uncategorizedpages}}</nowiki></code> || {{Distinguish|Special:Uncategorizedpages}}
|-
|-
| <code><nowiki>{{Distinguish|Page One|Page Two}}</nowiki></code> || {{Distinguish|Page One|Page Two}}
| <code><nowiki>{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles}}</nowiki></code> || {{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles}}
|-
|-
| <code><nowiki>{{Distinguish|Page One|Page Two|Page Three}}</nowiki></code> || {{Distinguish|Page One|Page Two|Page Three}}
| <code><nowiki>{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}}</nowiki></code> || {{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}}
|-
|-
| <code><nowiki>{{Distinguish|Page One{{!}}Page 1}}</nowiki></code> || {{Distinguish|Page One{{!}}Page 1}}
| <code><nowiki>{{Distinguish|Special:Uncategorizedpages{{!}}Page 1}}</nowiki></code> (Custom link label) || {{Distinguish|Special:Uncategorizedpages{{!}}Page 1}}
|-
|-
| <code><nowiki>{{Distinguish|text = Page 1, another name for [[Page One]]}}</nowiki></code> || {{Distinguish|text = Page 1, another name for [[Page One]]}}
| <code><nowiki>{{Distinguish|text = Page 1, another name for [[Special:Uncategorizedpages]]}}</nowiki></code> || {{Distinguish|text = Page 1, another name for [[Special:Uncategorizedpages]]}}
|}
|}


== Dependencies ==
<noinclude>[[Category:Template documentation]]</noinclude>
This template requires the {{tl|Hatnote}} metatemplate.
 
== Source ==
Base code adapted from [https://en.wikipedia.org/wiki/Template:Distinguish Wikipedia's Distinguish Template].
__NOTOC__

Latest revision as of 00:27, 20 May 2025

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.