Template:Distinguish: Difference between revisions
From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks Created page with "<includeonly>{{Hatnote|<!-- -->{{#vardefine:topic|<!-- start vd -->{{#if:{{{topic|}}} | {{{topic}}} | {{PAGENAME}} }}<!-- end if -->}}<!-- end vd -->{{#vardefine:disambig|<!-- start vd -->{{#if:{{{1|}}}<!-- start custom disambig if -->|{{{1}}}<!-- start label if -->{{#if:{{{2|}}} | {{!}}{{{2}}} }}<!-- end label if -->|{{#var:topic}} (disambiguation)<!-- else; use regular disambig -->}}<!-- en..." |
depends on {{hatnote}} |
||
(12 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><!-- | ||
-->{{#vardefine:text|<!-- start vd | |||
-->{{#if:{{{text|}}} | {{{text}}} |<!-- start top if | |||
-->{{#if:{{{2|}}}<!-- if more than one page | |||
-->|[[{{{1}}}]]{{#if:{{{3|}}}<!-- start concat if | |||
-->|, [[{{{2}}}]] or [[{{{3}}}]]<!-- concat two | |||
-->|<nowiki> </nowiki>or [[{{{2}}}]]<!-- else; concat one | |||
-->}}<!-- end concat if | |||
-->|[[{{{1}}}]]<!-- else; one page only | |||
-->}}<!-- end custom disambig if | |||
-->}}<!-- end vd | -->}}<!-- end if | ||
-->}}<!-- end vd | |||
-->{{Hatnote|<!-- | |||
-->Not to be confused with {{#var:text}}.<!-- | |||
-->}}<!-- | -->}}<!-- | ||
Line 22: | 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
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}} |
Not to be confused with Special:Uncategorizedpages or Special:Uncategorizedfiles.
|
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}} |
Not to be confused with Special:Uncategorizedpages, Special:Uncategorizedfiles or 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Alternative | 1 | The alternative page.
| Page name | suggested |
Second Alternative | 2 | A second alternative page.
| Page name | optional |
Third Alternative | 3 | A third alternative page.
| Page name | optional |
Alternative Text | text | Instead of using pages, you can provide a full alternative text. This parameter overrides other provided parameters.
| Line | optional |