Template:Distinguish/doc: Difference between revisions
From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks No edit summary |
defaultloadout-wikigg>Karmaworks No edit summary |
||
Line 53: | Line 53: | ||
| <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 [[Page One]]}}</nowiki></code> || {{Distinguish|text = Page 1, another name for [[Page One]]}} | ||
|} | |} | ||
== Dependencies == | == Dependencies == | ||
For this template to work properly, you need the following: | |||
* The {{tl|Hatnote}} base template. | |||
* The <code>.hatnote</code> class, found in [[MediaWiki:Common.css]]. | |||
== Source == | == Source == | ||
Roughly based on [https://en.wikipedia.org/wiki/Template:Distinguish Wikipedia's Distinguish Template]. | Roughly based on [https://en.wikipedia.org/wiki/Template:Distinguish Wikipedia's Distinguish Template]. | ||
__NOTOC__ | __NOTOC__ |
Revision as of 21:21, 12 April 2024
Summary
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 |
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}} (Custom link label) |
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
For this template to work properly, you need the following:
- The
{{Hatnote}}
base template. - The
.hatnote
class, found in MediaWiki:Common.css.
Source
Roughly based on Wikipedia's Distinguish Template.