Jump to content

Template:Disambiguation: Difference between revisions

From NixOS Wiki
Sdht0 (talk | contribs)
Add proper sections
DoggoBit (talk | contribs)
m Fix padding
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{DISPLAYTITLE:Template:disambiguation}}{{Template}}
<includeonly>{{Notice
 
  |color=var(--color-base)
== About ==
  |background=var(--background-color-neutral-subtle)
A ''disambiguation'' box used to share helpful hints.
  |borderColor=var(--border-color-muted)
 
  |small=yes
== Usage ==
  |icon=
{{ic|<nowiki>{{disambiguation|Not to be confused with <em>another page</em>.}}</nowiki>}}
  |'''Disambiguation:''' {{{message|Not to be confused with [[{{{1}}}]]{{#if:{{{2|}}}|, {{{2}}}|}}.}}}
 
}}{{#ifeq:{{{category|yes}}}|yes|[[Category:Disambiguated articles]]|}}</includeonly><noinclude>{{Documentation}}</noinclude>
== Example ==
{{disambiguation|Not to be confused with <em>another page</em>.}}</noinclude><includeonly>{{META Message
|border = #DADADA
|signal          = [[Image:Breeze-preferences-other.png|link=]]
|heading        = Disambiguation
|message        = {{{1}}}
}}</includeonly>

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