Template:Disambiguation/doc: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Mr Pie 5
No edit summary
Aliser (talk | contribs)
cleanup
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatedata>
{
"params": {
"1": {
"label": "Disambiguation Page",
"description": "A custom disambiguation page name.",
"example": "Disambiguation Page",
"type": "wiki-page-name"
},
"2": {
"label": "Link Label",
"description": "A label for the custom disambiguation page.",
"example": "Alternative Page Name",
"type": "line"
},
"topic": {
"label": "Custom Topic",
"description": "In case {{PAGENAME}} does not describe the topic, this can be used to display a custom topic",
"example": "a custom topic",
"default": "{{PAGENAME}}",
"type": "line"
}
},
"description": "This hatnote template is meant to be used at the top of an article to indicate the existence of a disambiguation page.",
"paramOrder": [
"1",
"2",
"topic"
],
"format": "inline"
}
</templatedata>
== Examples ==
== Examples ==
{| class="wikitable"
{| class="wikitable"
Line 38: Line 5:
| <code><nowiki>{{Disambiguation}}</nowiki></code> || {{Disambiguation|topic=Example}}
| <code><nowiki>{{Disambiguation}}</nowiki></code> || {{Disambiguation|topic=Example}}
|-
|-
| <code><nowiki>{{Disambiguation|Disambig Page}}</nowiki></code> || {{Disambiguation|Disambig Page|topic=Example}}
| <code><nowiki>{{Disambiguation|Special:Random|topic=Example}}</nowiki></code> || {{Disambiguation|Special:Random|topic=Example}}
|-
|-
| <code><nowiki>{{Disambiguation|Disambig Page|Page Label|topic=this particular topic}}</nowiki></code> || {{Disambiguation|Disambig Page|Page Label|topic=this particular topic}}
| <code><nowiki>{{Disambiguation|Special:Random|Page Label|topic=this particular topic}}</nowiki></code> || {{Disambiguation|Special:Random|Page Label|topic=this particular topic}}
|}
|}
== 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 ==
Roughly based on [[wikipedia:Template:About|Wikipedia's About Template]].


<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 00:26, 20 May 2025

Examples

Code Result
{{Disambiguation}}
This page is about Example. For other uses, see Example (disambiguation).
{{Disambiguation|Special:Random|topic=Example}}
This page is about Example. For other uses, see Special:Random.
{{Disambiguation|Special:Random|Page Label|topic=this particular topic}}
This page is about this particular topic. For other uses, see Page Label.