Jump to content

Template:Disambiguation: Difference between revisions

From NixOS Wiki
DoggoBit (talk | contribs)
No edit summary
DoggoBit (talk | contribs)
m Fix padding
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
   |color=var(--color-base)
   |color=var(--color-base)
   |background=var(--background-color-neutral-subtle)
   |background=var(--background-color-neutral-subtle)
   |padding=10px
   |borderColor=var(--border-color-muted)
  |small=yes
   |icon=⤧
   |icon=⤧
   |'''Disambiguation:''' {{{message|Not to be confused with [[{{{1}}}]], the {{#if:{{{2|}}}|, the {{{2}}}|}}.}}}
   |'''Disambiguation:''' {{{message|Not to be confused with [[{{{1}}}]]{{#if:{{{2|}}}|, {{{2}}}|}}.}}}
}}{{#ifeq:{{{category|yes}}}|yes|[[Category:Disambiguated articles]]|}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}{{#ifeq:{{{category|yes}}}|yes|[[Category:Disambiguated articles]]|}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 21:01, 14 June 2025

Template Documentation [edit source| uses| help]

Sometimes a single word or phrase can be used to refer to many different things. In these cases we might need to differentiate between different terms using this template.

⤧︎
Disambiguation: Not to be confused with Template:Notice.

Usage

It is simply sufficient to include this template, along with the name of the page that sounds similar. The notice above can be crafted by:

{{Disambiguation|Template:Notice}}

If the disambiguation is particularly complex, you might need to override the message altogether:

{{Disambiguation|message=This refers to the disambiguation template. For a notice see [[Template:Notice]], and for a note see [[Template:Note]]}}
⤧︎
Disambiguation: This refers to the disambiguation template. For a notice see Template:Notice, and for a note see Template:Note