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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Disambiguation Page1

A custom disambiguation page name.

Example
Disambiguation Page
Page nameoptional
Link Label2

A label for the custom disambiguation page.

Example
Alternative Page Name
Lineoptional
Custom Topictopic

In case {{PAGENAME}} does not describe the topic, this can be used to display a custom topic

Default
{{PAGENAME}}
Example
a custom topic
Unknownoptional

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.