Template:Distinguish/doc: Difference between revisions

From Space Station 14 Wiki
defaultloadout-wikigg>Mr Pie 5
No edit summary
defaultloadout-wikigg>Mr Pie 5
Line 43: Line 43:
! Code !! Result
! Code !! Result
|-
|-
| <code><nowiki>{{Distinguish|Page One}}</nowiki></code> || {{Distinguish|Page One}}
| <code><nowiki>{{Distinguish|Special:Uncategorizedpages}}</nowiki></code> || {{Distinguish|Special:Uncategorizedpages}}
|-
|-
| <code><nowiki>{{Distinguish|Page One|Page Two}}</nowiki></code> || {{Distinguish|Page One|Page Two}}
| <code><nowiki>{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles}}</nowiki></code> || {{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles}}
|-
|-
| <code><nowiki>{{Distinguish|Page One|Page Two|Page Three}}</nowiki></code> || {{Distinguish|Page One|Page Two|Page Three}}
| <code><nowiki>{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}}</nowiki></code> || {{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}}
|-
|-
| <code><nowiki>{{Distinguish|Page One{{!}}Page 1}}</nowiki></code> (Custom link label) || {{Distinguish|Page One{{!}}Page 1}}
| <code><nowiki>{{Distinguish|Special:Uncategorizedpages{{!}}Page 1}}</nowiki></code> (Custom link label) || {{Distinguish|Special:Uncategorizedpages{{!}}Page 1}}
|-
|-
| <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 [[Special:Uncategorizedpages]]}}</nowiki></code> || {{Distinguish|text = Page 1, another name for [[Special:Uncategorizedpages]]}}
|}
|}



Revision as of 22:35, 20 April 2024

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|Special:Uncategorizedpages}}
Not to be confused with Special:Uncategorizedpages.
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles}}
{{Distinguish|Special:Uncategorizedpages|Special:Uncategorizedfiles|Special:Uncategorizedcategories}}
{{Distinguish|Special:Uncategorizedpages{{!}}Page 1}} (Custom link label)
Not to be confused with Page 1.
{{Distinguish|text = Page 1, another name for [[Special:Uncategorizedpages]]}}
Not to be confused with Page 1, another name for Special:Uncategorizedpages.

Dependencies

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

Source

Roughly based on Wikipedia's Distinguish Template.