Template:Disambiguation/doc
<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 Disambiguation/doc does not describe the topic, this can be used to display a custom topic", "example": "a custom topic", "default": "Disambiguation/doc", "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[edit]
| Code | Result |
|---|---|
{{Disambiguation}} |
Example}}{{#vardefine:disambig|{{#var:topic}} (disambiguation)}} |
{{Disambiguation|Special:Random|topic=Example}} |
Example}}{{#vardefine:disambig|Special:Random}} |
{{Disambiguation|Special:Random|Page Label|topic=this particular topic}} |
this particular topic}}{{#vardefine:disambig|Special:Random|Page Label}} |
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 About Template.