Template:Distinguish/doc
<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>
Examples[edit]
| Code | Result |
|---|---|
{{Distinguish|Special:Uncategorizedpages}} |
Special:Uncategorizedpages}} |
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles}} |
Special:Uncategorizedpages or Special:Uncategorizedfiles}} |
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}} |
Special:Uncategorizedpages, Special:Uncategorizedfiles or Special:Uncategorizedcategories}} |
{{Distinguish|Special:Uncategorizedpages{{!}}Page 1}} (Custom link label) |
Page 1}} |
{{Distinguish|text = Page 1, another name for [[Special:Uncategorizedpages]]}} |
Page 1, another name for Special:Uncategorizedpages}} |
Dependencies[edit]
For this template to work properly, you need the following:
- The {{#invoke:Template link|main|code=on}} base template.
- The
.hatnoteclass, found in MediaWiki:Common.css.
Source[edit]
Roughly based on Wikipedia's Distinguish Template.