Jump to content

Template:Disambiguation: Difference between revisions

From NixOS Wiki
Created page with "<noinclude> {{DISPLAYTITLE:Template:disambiguation}} {{Template}} '''A 'disambiguation' box used to share helpful hints.''' ====Usage==== {{ic|<nowiki>{{disambiguation|Not to be confused with <em>another page</em>.}}</nowiki>}} ====Example==== {{disambiguation|Not to be confused with <em>another page</em>.}}</noinclude><includeonly>{{META Message |border = #DADADA |signal = link= |heading = Disambiguation |message..."
 
DoggoBit (talk | contribs)
m Fix padding
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly>{{Notice
{{DISPLAYTITLE:Template:disambiguation}}
  |color=var(--color-base)
{{Template}}
  |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