Template:Disambiguation/doc: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>MrBot5
Source: +Category:Template documentation
defaultloadout-wikigg>Mr Pie 5
No edit summary
Line 1: Line 1:
== Summary ==
<templatedata>
<templatedata>
{
{
Line 32: Line 31:
}
}
</templatedata>
</templatedata>
== Examples ==
== Examples ==
{| class="wikitable"
{| class="wikitable"
Line 42: Line 42:
| <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|Disambig Page|Page Label|topic=this particular topic}}</nowiki></code> || {{Disambiguation|Disambig Page|Page Label|topic=this particular topic}}
|}
|}
== Dependencies ==
== Dependencies ==
For this template to work properly, you need the following:
For this template to work properly, you need the following:
* The {{tl|Hatnote}} base template.
* The {{tl|Hatnote}} base template.
* The <code>.hatnote</code> class, found in [[MediaWiki:Common.css]].
* The <code>.hatnote</code> class, found in [[MediaWiki:Common.css]].
== Source ==
== Source ==
Roughly based on [https://en.wikipedia.org/wiki/Template:About Wikipedia's About Template].
Roughly based on [[wikipedia:Template:About|Wikipedia's About Template]].
__NOTOC__
 
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 23:34, 17 April 2024

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
Lineoptional

Examples

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

Dependencies

For this template to work properly, you need the following:

Source

Roughly based on Wikipedia's About Template.