Template:Distinguish/doc: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Karmaworks
No edit summary
defaultloadout-wikigg>Karmaworks
No edit summary
Line 53: Line 53:
| <code><nowiki>{{Distinguish|text = Page 1, another name for [[Page One]]}}</nowiki></code> || {{Distinguish|text = Page 1, another name for [[Page One]]}}
| <code><nowiki>{{Distinguish|text = Page 1, another name for [[Page One]]}}</nowiki></code> || {{Distinguish|text = Page 1, another name for [[Page One]]}}
|}
|}
== Dependencies ==
== Dependencies ==
This template requires the {{tl|Hatnote}} metatemplate.
For this template to work properly, you need the following:
 
* The {{tl|Hatnote}} base template.
* The <code>.hatnote</code> class, found in [[MediaWiki:Common.css]].
== Source ==
== Source ==
Roughly based on [https://en.wikipedia.org/wiki/Template:Distinguish Wikipedia's Distinguish Template].
Roughly based on [https://en.wikipedia.org/wiki/Template:Distinguish Wikipedia's Distinguish Template].
__NOTOC__
__NOTOC__

Revision as of 21:21, 12 April 2024

Summary

This hatnote template is meant to be used to indicate possible alternatives to what the reader wants to find.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Alternative1

The alternative page.

Example
Alternative Page
Page namesuggested
Second Alternative2

A second alternative page.

Example
Second Alternative Page
Page nameoptional
Third Alternative3

A third alternative page.

Example
Third Alternative Page
Page nameoptional
Alternative Texttext

Instead of using pages, you can provide a full alternative text. This parameter overrides other provided parameters.

Example
the alternative page, [[Alternative Page]]
Lineoptional

Examples

Code Result
{{Distinguish|Page One}}
Not to be confused with Page One.
{{Distinguish|Page One|Page Two}}
Not to be confused with Page One or Page Two.
{{Distinguish|Page One|Page Two|Page Three}}
Not to be confused with Page One, Page Two or Page Three.
{{Distinguish|Page One{{!}}Page 1}} (Custom link label)
Not to be confused with Page 1.
{{Distinguish|text = Page 1, another name for [[Page One]]}}
Not to be confused with Page 1, another name for Page One.

Dependencies

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

Source

Roughly based on Wikipedia's Distinguish Template.