Template:Disambiguation/doc: Difference between revisions
From Space Station 14 Wiki
defaultloadout-wikigg>Mr Pie 5 →Examples: Removed two redlinks. Not sure what to do about the first one yet though. |
defaultloadout-wikigg>Mr Pie 5 |
||
Line 38: | Line 38: | ||
| <code><nowiki>{{Disambiguation}}</nowiki></code> || {{Disambiguation|topic=Example}} | | <code><nowiki>{{Disambiguation}}</nowiki></code> || {{Disambiguation|topic=Example}} | ||
|- | |- | ||
| <code><nowiki>{{Disambiguation| | | <code><nowiki>{{Disambiguation|Special:Random|topic=Example}}</nowiki></code> || {{Disambiguation|Special:Random|topic=Example}} | ||
|- | |- | ||
| <code><nowiki>{{Disambiguation| | | <code><nowiki>{{Disambiguation|Special:Random|Page Label|topic=this particular topic}}</nowiki></code> || {{Disambiguation|Special:Random|Page Label|topic=this particular topic}} | ||
|} | |} | ||
Revision as of 19:23, 10 May 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|Special:Random|topic=Example}} |
![]() |
{{Disambiguation|Special:Random|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.