Template:Distinguish/doc: Difference between revisions
From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks Created page with "== Summary == == Examples == {| class="wikitable" ! Code !! Result |- | <code><nowiki>{{Distinguish|Page One}}</nowiki></code> || {{Distinguish|Page One}} |- | <code><nowiki>{{Distinguish|Page One|Page Two}}</nowiki></code> || {{Distinguish|Page One|Page Two}} |- | <code><nowiki>{{Distinguish|Page One|Page Two|Page Three}}</nowiki></code> || {{Distinguish|Page One|Page Two|Page Three}} |- | <code><nowiki>{{Distinguish|Page One{{!}}Page 1}}</nowiki></code> || {{Distingui..." |
defaultloadout-wikigg>Karmaworks No edit summary |
||
Line 22: | Line 22: | ||
Base code adapted from [https://en.wikipedia.org/wiki/Template:Distinguish Wikipedia's Distinguish Template]. | Base code adapted from [https://en.wikipedia.org/wiki/Template:Distinguish Wikipedia's Distinguish Template]. | ||
__NOTOC__ | __NOTOC__ | ||
<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> |
Revision as of 18:34, 12 April 2024
Summary
Examples
Code | Result |
---|---|
{{Distinguish|Page One}} |
Not to be confused with Page One.
|
{{Distinguish|Page One|Page Two}} |
|
{{Distinguish|Page One|Page Two|Page Three}} |
|
{{Distinguish|Page One{{!}}Page 1}} |
Not to be confused with Page 1.
|
{{Distinguish|text = Page 1, another name for [[Page One]]}} |
Not to be confused with Page 1, another name for Page One.
|
Dependencies
This template requires the {{Hatnote}}
metatemplate.
Source
Base code adapted from Wikipedia's Distinguish Template.
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.
| Unknown | optional |
Alternative Text | text | Instead of using pages, you can provide a full alternative text. This parameter overrides other provided parameters.
| Line | optional |