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: | ||
<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 [ | Roughly based on [[wikipedia:Template:About|Wikipedia's About Template]]. | ||
<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.
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
| Line | optional |
Examples
Code | Result |
---|---|
{{Disambiguation}} |
![]() |
{{Disambiguation|Disambig Page}} |
![]() |
{{Disambiguation|Disambig Page|Page Label|topic=this particular topic}} |
![]() |
Dependencies
For this template to work properly, you need the following:
- The
{{Hatnote}}
base template. - The
.hatnote
class, found in MediaWiki:Common.css.
Source
Roughly based on Wikipedia's About Template.