Template:Disambiguation/doc: Difference between revisions
From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks No edit summary |
defaultloadout-wikigg>Karmaworks No edit summary |
||
Line 1: | Line 1: | ||
== Summary == | == Summary == | ||
<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}}" | |||
} | |||
}, | |||
"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" |
Revision as of 17:58, 12 April 2024
Summary
This hatnote template is meant to be used at the top of an article to indicate the existence of a disambiguation page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Disambiguation Page | 1 | A custom disambiguation page name.
| Page name | optional |
Link Label | 2 | A label for the custom disambiguation page.
| Line | optional |
Custom Topic | topic | In case {{PAGENAME}} does not describe the topic, this can be used to display a custom topic
| Unknown | optional |
Examples
Code | Result |
---|---|
{{About}} |
Template:About |
{{About|Disambig Page}} |
Template:About |
{{About|Disambig Page|Page Label|topic=this particular topic}} |
Template:About |
Dependencies
This template requires the {{Hatnote}}
metatemplate.
Source
Base code adapted from Wikipedia's About Template.