Difference between revisions of "Template:Disambiguation/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sevensegment
imported>Seventyfiveyears
(info is redundant there)
 
(129 intermediate revisions by 88 users not shown)
Line 1: Line 1:
{{Barad}}
+
<noinclude>{{pp-vandalism|small=yes}}</noinclude>{{Documentation subpage}}
{{High-risk| 130,000+ }}
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{High-use| 189183 }}
 +
{{Nosubst}}
 
{{Dabnav}}
 
{{Dabnav}}
 +
{{Shortcut|Template:Dab|Template:Disambig}}
 
This is the {{tl|Disambiguation}} template.
 
This is the {{tl|Disambiguation}} template.
  
'''<big>Important: Please do not [[Wikipedia:Substitution|subst:]] this template.</big>'''
+
This is a general-purpose template, to be placed at the bottom of any article that exists to help readers find other articles with the same or similar names. This concept is called ''[[Wikipedia:Disambiguation|disambiguation]]'' and is used with many common words, such as ''[[Cross (disambiguation)|cross]]'', ''[[Life (disambiguation)|life]]'' and ''[[work]]''. This template automatically adds articles to the [[:Category:Disambiguation pages]].
  
This is a general-purpose template, to be placed at the bottom of any article that exists to help readers find other articles with the same or similar names. This concept is called ''[[Wikipedia:Disambiguation|disambiguation]]'' and is used with many common words, such as ''[[Cross (disambiguation)|cross]]'', ''[[Life (disambiguation)|life]]'' and ''[[work]]''. This template automatically adds articles to the [[:Category:Disambiguation pages]].  
+
== Page title fixes ==
 +
This template will automatically detect incomplete disambiguation present in page titles. If the title includes anything other than (disambiguation) in parentheses, it is assumed to be the article type. For example, this template on the page [[1st Division (France)]] would produce the text "This disambiguation page lists France articles associated with the title '''1st Division'''". If the page title contains parentheses that are not used for disambiguation (such as [[Everything You Always Wanted to Know About Sex* (*But Were Afraid to Ask)]]), set {{para|ignore_parentheses|yes}}. If you wish to manually specify the article type, use the {{para|type}} parameter.
  
=== Page title fix ===
+
==Variant templates==
In the event that the page title is causing an error, such as <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=%2A%2A%2A&oldid=171348746 what happened]</span> at ''[[***]]'', add the parameter: '''<code>{{para|page-title |<var> page title</var>}}</code>''' . Thus, the [[***]] page would use the syntax: '''<code><nowiki>{{Disambiguation|page-title = ***}}</nowiki></code>''' .
+
===Disambiguation===
 
 
===Variant templates===
 
====Disambiguation====
 
 
{{Category see also|Disambiguation message boxes}}
 
{{Category see also|Disambiguation message boxes}}
  
 
For disambiguation pages requiring cleanup, use {{tl|Disambiguation cleanup}}.
 
For disambiguation pages requiring cleanup, use {{tl|Disambiguation cleanup}}.
  
More specific and alternative templates do exist, for disambiguation pages or set index articles whose entries are limited exclusively to items of a particular type:
+
More specific and alternative templates exist for disambiguation pages whose entries are limited exclusively to items of a particular type:
* {{tl|Airport disambig}} for airports – [[:Category:Airport disambiguation]]
+
* {{tl|Airport disambiguation}} for airports – [[:Category:Airport disambiguation]]
* {{tl|Callsigndis}} – [[:Category:Broadcast call sign disambiguation pages]]
+
* {{tl|Biology disambiguation}} – [[:Category:Biology disambiguation pages]]
* {{tl|Disambig-Chinese-char-title}} – [[:Category:Disambiguation pages with Chinese character titles]]
+
* {{tl|Call sign disambiguation}} – [[:Category:Broadcast call sign disambiguation pages]]
* {{tl|Geodis}} for place names – [[:Category:Place name disambiguation pages]]
+
* {{tl|Caselaw disambiguation}} – [[:Category:Case law disambiguation pages]]
* {{tl|Hndis}} for people's names – [[:Category:Human name disambiguation pages]]
+
* {{tl|Chinese title disambiguation}} – [[:Category:Disambiguation pages with Chinese character titles]]
** {{tl|Hndis-cleanup}}
+
* {{tl|Genus disambiguation}} – [[:Category:Genus disambiguation pages]]
 +
* {{tl|Human name disambiguation}} – [[:Category:Human name disambiguation pages]]
 +
** {{tl|Human name disambiguation cleanup}}
 
* {{tl|Hospital disambiguation}} for hospitals or medical centers – [[:Category:Hospital disambiguation pages]]
 
* {{tl|Hospital disambiguation}} for hospitals or medical centers – [[:Category:Hospital disambiguation pages]]
* {{tl|Letter disambig}} – adds a Latin letter navbox, does not auto-categorize
+
* {{tl|Letter disambiguation}} – adds a Latin letter , does not auto-categorize
* {{tl|Letter-NumberCombDisambig}} – [[:Category:Letter-number combination disambiguation pages]]
+
* {{tl|Letter-number combination disambiguation}} – [[:Category:Letter-number combination disambiguation pages]]
* {{tl|Mathdab}} for mathematics titles – [[:Category:Mathematical disambiguation]]
+
* {{tl|Mathematical disambiguation}} for mathematics titles – [[:Category:Mathematics disambiguation pages]]
* {{tl|MolFormDisambig}} – [[:Category:Molecular formula disambiguation pages]] and [[:Category:Molecular formulas]]
+
* {{tl|Military unit disambiguation}} – [[:Category:Military units and formations disambiguation pages]]
* {{tl|Numberdis}} for numbers – [[:Category:Lists of ambiguous numbers]]
+
* {{tl|Number disambiguation}} – [[:Category:Lists of ambiguous numbers]]
* {{tl|Schooldis}} for educational institutions – [[:Category:Educational institution disambiguation]]
+
* {{tl|Phonetics disambiguation}} – [[:Category:Linguistics disambiguation pages]]
 +
* {{tl|Place name disambiguation}} – [[:Category:Place name disambiguation pages]]
 +
* {{tl|Road disambiguation}} – [[:Category:Road disambiguation pages]]
 +
* {{tl|School disambiguation}} for educational institutions – [[:Category:Educational institution disambiguation pages]]
 
* {{tl|Species Latin name disambiguation}} – [[:Category:Latin name disambiguation pages]]
 
* {{tl|Species Latin name disambiguation}} – [[:Category:Latin name disambiguation pages]]
* {{tl|Wikipedia disambiguation}} for ambiguous titles and shortcuts in the Wikipedia namespace – [[:Category:Wikipedia project disambiguation pages]]
+
* {{tl|Station disambiguation}} for railway and public transport stations – [[:Category:Station disambiguation pages]]
 
+
* {{tl|Synagogue disambiguation}} for synagogues – [[:Category:Synagogue disambiguation pages]]
====Set index====
+
* {{tl|Wikipedia disambiguation}} for ambiguous titles and shortcuts in the Wikipedia namespace – [[:Category:Wikipedia disambiguation pages]]
{{Category see also|Set index article templates}}
 
 
 
For [[Wikipedia:Disambiguation#Set index articles|set index articles]]:
 
  
* {{tl|SIA}} for any set index article – [[:Category:Set indices]]
+
'''Note:''' A set index article (SIA) is ''not'' a disambiguation page; it is a list article about a set of items ''of a specific type'' that ''also'' share the same (or similar) name. [[Wikipedia:Set index articles]] includes templates for SIAs.
* {{tl|Mountainindex}} for mountain names – [[:Category:Set indices on mountains]]
 
* {{tl|Roadindex}} for roads, streets, or highways – [[:Category:Lists of roads sharing the same title]]
 
* {{tl|Shipindex}} for ship names – [[:Category:Set indices on ships]]
 
* {{tl|Sportindex}} for sport names – [[:Category:Set indices on sports]]
 
* {{tl|Surname}} for people's surnames – [[:Category:Surnames]]
 
* {{tl|Given name}} for people's given names – [[:Category:Given names]]
 
  
=== Parameters ===
+
== Parameters ==
 
Sometimes there isn't a specific disambiguation template (see list above) that fits for a page, or the page has items in more than one of the above classes. Then use {{tl|Disambiguation}} but with one or more parameters telling which categories to use. Up to ten parameters can be fed, and in any order, for example:
 
Sometimes there isn't a specific disambiguation template (see list above) that fits for a page, or the page has items in more than one of the above classes. Then use {{tl|Disambiguation}} but with one or more parameters telling which categories to use. Up to ten parameters can be fed, and in any order, for example:
  
:{{tlc|disambiguation|school|hospital}}
+
:{{tlc|Disambiguation|school|hospital}}
 
 
Only add a parameter if the disambiguation page has several items of that type.
 
  
* {{tlx|Disambiguation|human name}}: for [[:Category:Human name disambiguation pages]] (note that you must instead add the category separately if it needs a different [[WP:SORT|sort key]])
+
Only add a parameter from this list if the disambiguation page has several items of that type:
* {{tlx|Disambiguation|given name}}: [[:Category:Given names]]
+
* {{tlx|Disambiguation|human name}}: for [[:Category:Human name disambiguation pages]]
* {{tlx|Disambiguation|surname}}: for [[:Category:Surnames]]
+
** {{tlx|Disambiguation|hn{{=}}sortkey}} for [[:Category:Human name disambiguation pages]] with a specified [[WP:SORTKEY|sort key]] (e.g. {{tlx|Disambiguation|hn{{=}}Doe, John}})
* {{tlx|Disambiguation|airport}}: for [[:Category:Airport disambiguation]]
+
* {{tlx|Disambiguation|bird}}: for [[:Category:Bird common name disambiguation pages]]
* {{tlx|Disambiguation|callsign}}: for [[:Category:Broadcast call sign disambiguation pages]]
 
* {{tlx|Disambiguation|chinese}}: for [[:Category:Disambiguation pages with Chinese character titles]]
 
 
* {{tlx|Disambiguation|church}}: for [[:Category:Church building disambiguation pages]]
 
* {{tlx|Disambiguation|church}}: for [[:Category:Church building disambiguation pages]]
* {{tlx|Disambiguation|fish}}: for [[:Category:Fish common names]]
+
* {{tlx|Disambiguation|county}}: for [[:Category:County name disambiguation pages]]
 +
** {{tlx|Disambiguation|uscounty}}: for [[:Category:United States county name disambiguation pages]]
 +
* {{tlx|Disambiguation|fish}}: for [[:Category:Fish common name disambiguation pages]]
 
* {{tlx|Disambiguation|genus}}: for [[:Category:Genus disambiguation pages]]
 
* {{tlx|Disambiguation|genus}}: for [[:Category:Genus disambiguation pages]]
 
* {{tlx|Disambiguation|geo}}: for [[:Category:Place name disambiguation pages]]
 
* {{tlx|Disambiguation|geo}}: for [[:Category:Place name disambiguation pages]]
Line 69: Line 63:
 
* {{tlx|Disambiguation|letter number}}: for [[:Category:Letter-number combination disambiguation pages]]
 
* {{tlx|Disambiguation|letter number}}: for [[:Category:Letter-number combination disambiguation pages]]
 
* {{tlx|Disambiguation|math}}: for [[:Category:Mathematical disambiguation]]
 
* {{tlx|Disambiguation|math}}: for [[:Category:Mathematical disambiguation]]
* {{tlx|Disambiguation|molform}}: for [[:Category:Molecular formula disambiguation pages]] and [[:Category:Molecular formulas]]
 
 
* {{tlx|Disambiguation|number}}: for [[:Category:Lists of ambiguous numbers]]
 
* {{tlx|Disambiguation|number}}: for [[:Category:Lists of ambiguous numbers]]
* {{tlx|Disambiguation|plant}}: for [[:Category:Plant common names]]
+
* {{tlx|Disambiguation|plant}}: for [[:Category:Plant common name disambiguation pages]]
 
* {{tlx|Disambiguation|political}}: for [[:Category:Political party disambiguation pages]]
 
* {{tlx|Disambiguation|political}}: for [[:Category:Political party disambiguation pages]]
* {{tlx|Disambiguation|road}}: for [[:Category:Lists of roads sharing the same title]]
+
* {{tlx|Disambiguation|road}}: for [[:Category:Road disambiguation pages]]
* {{tlx|Disambiguation|school}}: for [[:Category:Educational institution disambiguation]]
+
* {{tlx|Disambiguation|school}}: for [[:Category:Educational institution disambiguation pages]]
 +
* {{tlx|Disambiguation|ship}}: for [[:Category:Ship disambiguation pages]]
 +
* {{tlx|Disambiguation|station}}: for [[:Category:Station disambiguation pages]]
 +
* {{tlx|Disambiguation|tndis}}: for [[:Category:Title and name disambiguation pages]]
 +
* {{tlx|Disambiguation|township}}: for [[:Category:Township name disambiguation pages]]
 +
 
 +
These can be added if there are one or more elements in the list (per their category descriptions):
 +
* {{tlx|Disambiguation|airport}}: for [[:Category:Airport disambiguation]]
 +
* {{tlx|Disambiguation|callsign}}: for [[:Category:Broadcast call sign disambiguation pages]]
 +
 
 +
These can be added even if there's only one element in the list, since these types are not actually ambiguous:
 +
 
 +
* {{tlx|Disambiguation|given name}}: [[:Category:Disambiguation pages with given-name-holder lists]]
 +
* {{tlx|Disambiguation|surname}}: for [[:Category:Disambiguation pages with surname-holder lists]]
 +
 
 +
This parameter reflects the title, not the contents:
 +
 
 +
* {{tlx|Disambiguation|chinese}}: for [[:Category:Disambiguation pages with Chinese character titles]]
 +
 
 +
And this parameter reflects a maintenance need, not the contents:
 +
 
 
* {{tlx|Disambiguation|split}}: for [[:Category:Disambiguation pages in need of being split]]
 
* {{tlx|Disambiguation|split}}: for [[:Category:Disambiguation pages in need of being split]]
  
 
Note that {{tl|Disambiguation}} might not have parameters for all subcategories of [[:Category:Disambiguation pages]], then you have to manually add the category to the disambig page.
 
Note that {{tl|Disambiguation}} might not have parameters for all subcategories of [[:Category:Disambiguation pages]], then you have to manually add the category to the disambig page.
  
=== Redirects ===
+
=== Nocat ===
 +
If categorization is not needed on pages that are not in [[WP:MAINSPACE|mainspace]], then the "nocat" parameter may be set equal to "true" or "yes" as follows:
 +
* {{tlx|Disambiguation|nocat{{=}}true}}
 +
* {{tlx|Disambiguation|nocat{{=}}yes}}
 +
 
 +
== Redirects ==
 
The following redirect to this template:
 
The following redirect to this template:
  
 
* {{tl|Disambig}}
 
* {{tl|Disambig}}
 
* {{tl|Dab}}
 
* {{tl|Dab}}
* {{tl|DAB}}
 
 
* {{tl|Disamb}}
 
* {{tl|Disamb}}
  
=== Technical details ===
+
== Technical details ==
 
Internally, this template uses {{tl|Dmbox}}. That template categorises pages into [[:Category:All disambiguation pages]] and [[:Category:All article disambiguation pages]].
 
Internally, this template uses {{tl|Dmbox}}. That template categorises pages into [[:Category:All disambiguation pages]] and [[:Category:All article disambiguation pages]].
  
 
This template also uses {{tl|Disambiguation/cat}} to handle the categorisation parameters, such as "hospital" and "school".
 
This template also uses {{tl|Disambiguation/cat}} to handle the categorisation parameters, such as "hospital" and "school".
  
=== See also ===
+
Other templates and modules used:
* {{tl|Dablink}} – Basic article hatnote, see [[Wikipedia:HATTEST]] for the full hatnote index.
+
* {{tl|Disambiguation page short description}}
* {{tl|Dn}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article, see [[Wikipedia:OTHERUSES]] for more.
+
* {{tl|Template other}}
 +
* {{tl|Title disambig text}}
 +
* {{tl|PAGENAMEBASE}}
 +
* {{tl|Trim}}
 +
* {{tl|Str rep}}
 +
* {{m2|Redirect|isRedirect}}
  
<includeonly>
+
== Template use ==
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
Place template at the foot of the disambiguation page after all of the disambiguation content but before any categories (see below) (interlanguage links to Wikidata), as per the [[WP:DCAT]] guideline.
 +
 
 +
==TemplateData==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
    "description": "Place at the bottom of Disambiguation pages.",
 +
    "params": {
 +
        "1": {
 +
            "label": "1",
 +
            "description": "Used to put the page in a category. Can be one of 'split' (dab pages in need of being split); 'clean up','clean-up','cleanup' (dabs in need of cleanup); 'airports','airport' (airport dabs); 'call sign','call signs','broadcast call sign','broadcast call signs','callsign' (broadcast call sign dabs); 'chinese char','chinese-char','chinesechar','chinese character','chinese' (chinese character dabs); 'churches','church building','church buildings','church' (church building dabs), 'fish' (fish dabs); 'geodis','geography','geographical','place name','place names','place','places','geo' (Place names); 'county'; 'uscounty' (United States county dabs); 'township' (Township name dabs); 'name','names','human name','human names','hn','hndis' (Human name dabs); 'surnames','surname' (surname dabs); 'given names','given name' (given-name dabs), 'hospital name','hospital names','hospitals','hospital' (hospital dabs); 'latin name','latin names','latin' (Latin name dabs); 'letter-number','letter number' (Letter-number combination dabs); 'mathdab','maths','mathematics','mathematical','math' (mathematical dabs); 'numberdis','numbers','ambiguous number','ambiguous numbers','number' (Lists of ambiguous numbers), 'plants','plant' (Plant common name dabs); 'roaddis','roads','road' (road dabs), 'schooldis','schools','educational institution','educational institutions','college','colleges','university','universities','school' (Educational institution dabs); 'political','party' (political party dabs), 'genus' (Genus dabs)",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "2": {
 +
            "label": "2",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "3": {
 +
            "label": "3",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "4": {
 +
            "label": "4",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "5": {
 +
            "label": "5",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "6": {
 +
            "label": "6",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "7": {
 +
            "label": "7",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "8": {
 +
            "label": "8",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "9": {
 +
            "label": "9",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "10": {
 +
            "label": "10",
 +
            "description": "Further category keys, as parameter 1.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "hn": {
 +
            "label": "hn",
 +
            "description": "Human name disambiguation page with its own sort key.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "page-title": {
 +
            "label": "page-title",
 +
            "description": "Page title to use, only useful for special cases when default does not work.",
 +
            "type": "string",
 +
            "default": "(FULLPAGENAME)",
 +
            "required": false
 +
        },
 +
        "nocat": {
 +
            "label": "nocat",
 +
            "description": "Set to 'yes' to prevent categorisation.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "demospace": {
 +
            "label": "demospace",
 +
            "description": "Used for testing.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "ignore_parentheses": {
 +
            "label": "ignore_parentheses",
 +
            "description": "Set to 'yes' to prevent parentheses in the article title from being parsed as incomplete disambiguation.",
 +
            "type": "string",
 +
            "required": false
 +
        },
 +
        "type": {
 +
            "label": "type",
 +
            "description": "Manually specify the article type in the descriptive text ('This disambiguation page lists {{{type}}} articles...')",
 +
            "type": "string",
 +
            "required": false
 +
        }
 +
    }
 +
}
 +
</templatedata>
 +
 
 +
== See also ==
 +
* [[Wikipedia:Hatnote]]
 +
* {{tl|Dablinks}}{{snd}}lists wikilinks on the page that link to disambiguation pages
 +
* {{tl|Disambiguation needed}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article, see [[Wikipedia:OTHERUSES]] for more.
 +
* {{tl|WikiProject Disambiguation}} – for disambig talkpages
 +
* {{tl|Other uses}} – for linking to disambiguation pages in articles
 +
 
 +
<includeonly>{{Sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Disambiguation message boxes| ]]
 
[[Category:Disambiguation message boxes| ]]
 
+
}}</includeonly>
[[af:Sjabloon:Dubbelsinnig]]
 
[[als:Vorlage:Begriffsklärung]]
 
[[am:Template:መንታ]]
 
[[an:Plantilla:Desambig]]
 
[[ang:Template:Disambig]]
 
[[ar:قالب:توضيح]]
 
[[arc:Template:ܕ]]
 
[[arz:قالب:توضيح]]
 
[[ast:Plantilla:Dixebra]]
 
[[az:Şablon:Dəqiqləşdirmə]]
 
[[az:Şablon:دقیقلشدیرمه]]
 
[[bar:Vorlage:Begriffsklärung]]
 
[[bat-smg:Šablonas:Disambig]]
 
[[be-x-old:Шаблён:Неадназначнасьць]]
 
[[bg:Шаблон:Пояснение]]
 
[[bn:Template:দ্ব্যর্থতা নিরসন]]
 
[[br:Patrom:Disheñvelout]]
 
[[bs:Šablon:Čvor]]
 
[[ca:Plantilla:Desambiguació]]
 
[[cdo:Template:Gì-ngiê]]
 
[[co:Template:Disambig]]
 
[[cs:Šablona:Rozcestník]]
 
[[cv:Шаблон:Disambig]]
 
[[cy:Nodyn:Gwahaniaethu]]
 
[[da:Skabelon:Flertydig]]
 
[[de:Vorlage:Begriffsklärung]]
 
[[nv:Template:Dab]]
 
[[el:Πρότυπο:Disambig]]
 
[[eo:Ŝablono:Apartigilo]]
 
[[es:Plantilla:Desambiguación]]
 
[[et:Mall:Täpsustuslehekülg]]
 
[[eu:Txantiloi:Argipen]]
 
[[fa:الگو:ابهام‌زدایی]]
 
[[fi:Malline:Täsmennyssivu]]
 
[[fo:Fyrimynd:Fleiri týdningar]]
 
[[fr:Modèle:Homonymie]]
 
[[frp:Template:Homonimos]]
 
[[fur:Model:Disambig]]
 
[[fy:Berjocht:Neibetsjuttings]]
 
[[ga:Teimpléad:Idirdhealú]]
 
[[gl:Template:Homónimos]]
 
[[he:תבנית:פירושונים]]
 
[[hi:Template:बहुविकल्पी शब्द]]
 
[[hr:Predložak:Razdvojba]]
 
[[ht:Template:Menm non]]
 
[[hu:Sablon:Egyért]]
 
[[hy:Template:Երկիմաստ]]
 
[[ia:Patrono:Disambiguation]]
 
[[id:Templat:Disambig]]
 
[[io:Template:Homonimo]]
 
[[is:Snið:Aðgreining]]
 
[[it:Template:Disambigua]]
 
[[ja:Template:Aimai]]
 
[[jv:Cithakan:Disambig]]
 
[[ka:თარგი:მრავალმნიშვნელოვანი]]
 
[[kk:Үлгі:Disambig]]
 
[[kn:ಟೆಂಪ್ಲೇಟು:ದ್ವಂದ್ವ ನಿವಾರಣೆ]]
 
[[ko:틀:Disambig]]
 
[[ksh:Schablon:Disambig]]
 
[[ku:Şablon:Cudakirin]]
 
[[kw:Template:Klerheans]]
 
[[la:Formula:Discretiva]]
 
[[lb:Template:Homonymie]]
 
[[li:Sjabloon:Verdudeliking]]
 
[[lmo:Template:Desambiguació]]
 
[[lmo:Template:Desambiguassiú]]
 
[[ln:Template:Bokokani]]
 
[[lt:Šablonas:Disambig]]
 
[[lv:Veidne:Disambig]]
 
[[map-bms:Template:Disambig]]
 
[[mi:Template:Disambig]]
 
[[mk:Шаблон:Појаснување]]
 
[[ml:Template:Disambig]]
 
[[mo:Template:Дезамбигуйзаре]]
 
[[ms:Templat:Nyahkekaburan]]
 
[[mt:Template:Diżambigwazzjoni]]
 
[[mzn:الگو:گجگجی بایری]]
 
[[nap:Template:Disambiguazzione]]
 
[[nds:Vörlaag:Mehrdüdig Begreep]]
 
[[nds-nl:Sjabloon:Dv]]
 
[[nl:Sjabloon:Dp]]
 
[[nn:Mal:Fleirtyding]]
 
[[no:Mal:Peker]]
 
[[nrm:Template:Page dé frouque]]
 
[[oc:Modèl:Omonimia]]
 
[[os:Шаблон:Disambig]]
 
[[pl:Szablon:Disambig]]
 
[[pt:Predefinição:Desambiguação]]
 
[[qu:Plantilla:Disambig]]
 
[[rmy:Sikavno:Dudalipen]]
 
[[ro:Format:Dezambiguizare]]
 
[[ru:Шаблон:Неоднозначность]]
 
[[scn:Template:Disambigua]]
 
[[sh:Template:Višeznačna odrednica]]
 
[[simple:Template:Disambig]]
 
[[sk:Šablóna:Rozlišovacia stránka]]
 
[[cu:Обраꙁь́ць:Мъногосъмꙑ́слиѥ]]
 
[[sl:Predloga:Razločitev]]
 
[[sq:Stampa:Kthjellim]]
 
[[sr:Шаблон:Вишезначна одредница]]
 
[[su:Citakan:Disambig]]
 
[[sv:Mall:Förgrening]]
 
[[sw:Template:Maana]]
 
[[te:మూస:అయోమయ నివృత్తి]]
 
[[tg:Шаблон:Ибҳомзудоӣ]]
 
[[th:แม่แบบ:แก้กำกวม]]
 
[[tl:Template:Paglilinaw]]
 
[[tr:Şablon:Anlam ayrımı]]
 
[[uk:Шаблон:Disambig]]
 
[[ur:سانچہ:Disambig]]
 
[[uz:Template:Disambig]]
 
[[vec:Template:Disambigua]]
 
[[vi:Tiêu bản:Trang định hướng]]
 
[[vls:Patrôon:Db]]
 
[[vo:Template:Telplänov]]
 
[[yi:מוסטער:באדייטן]]
 
[[wa:Modele:Omonimeye]]
 
[[zh:Template:Disambig]]
 
[[zh-classical:Template:釋義]]
 
[[zh-min-nan:Template:Khu-pia̍t-ia̍h]]
 
[[zh-yue:Template:分流]]
 
</includeonly>
 

Latest revision as of 03:36, 20 November 2020

Template:Pp-vandalism

This is the {{Disambiguation}} template.

This is a general-purpose template, to be placed at the bottom of any article that exists to help readers find other articles with the same or similar names. This concept is called disambiguation and is used with many common words, such as cross, life and work. This template automatically adds articles to the Category:Disambiguation pages.

Page title fixes

This template will automatically detect incomplete disambiguation present in page titles. If the title includes anything other than (disambiguation) in parentheses, it is assumed to be the article type. For example, this template on the page 1st Division (France) would produce the text "This disambiguation page lists France articles associated with the title 1st Division". If the page title contains parentheses that are not used for disambiguation (such as Everything You Always Wanted to Know About Sex* (*But Were Afraid to Ask)), set |ignore_parentheses=yes. If you wish to manually specify the article type, use the |type= parameter.

Variant templates

Disambiguation

For disambiguation pages requiring cleanup, use {{Disambiguation cleanup}}.

More specific and alternative templates exist for disambiguation pages whose entries are limited exclusively to items of a particular type:

Note: A set index article (SIA) is not a disambiguation page; it is a list article about a set of items of a specific type that also share the same (or similar) name. Wikipedia:Set index articles includes templates for SIAs.

Parameters

Sometimes there isn't a specific disambiguation template (see list above) that fits for a page, or the page has items in more than one of the above classes. Then use {{Disambiguation}} but with one or more parameters telling which categories to use. Up to ten parameters can be fed, and in any order, for example:

{{Disambiguation|school|hospital}}

Only add a parameter from this list if the disambiguation page has several items of that type:

These can be added if there are one or more elements in the list (per their category descriptions):

These can be added even if there's only one element in the list, since these types are not actually ambiguous:

This parameter reflects the title, not the contents:

And this parameter reflects a maintenance need, not the contents:

Note that {{Disambiguation}} might not have parameters for all subcategories of Category:Disambiguation pages, then you have to manually add the category to the disambig page.

Nocat

If categorization is not needed on pages that are not in mainspace, then the "nocat" parameter may be set equal to "true" or "yes" as follows:

Redirects

The following redirect to this template:

Technical details

Internally, this template uses {{Dmbox}}. That template categorises pages into Category:All disambiguation pages and Category:All article disambiguation pages.

This template also uses {{Disambiguation/cat}} to handle the categorisation parameters, such as "hospital" and "school".

Other templates and modules used:

Template use

Place template at the foot of the disambiguation page after all of the disambiguation content but before any categories (see below) (interlanguage links to Wikidata), as per the WP:DCAT guideline.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Disambiguation

Place at the bottom of Disambiguation pages.

Template parameters

ParameterDescriptionTypeStatus
11

Used to put the page in a category. Can be one of 'split' (dab pages in need of being split); 'clean up','clean-up','cleanup' (dabs in need of cleanup); 'airports','airport' (airport dabs); 'call sign','call signs','broadcast call sign','broadcast call signs','callsign' (broadcast call sign dabs); 'chinese char','chinese-char','chinesechar','chinese character','chinese' (chinese character dabs); 'churches','church building','church buildings','church' (church building dabs), 'fish' (fish dabs); 'geodis','geography','geographical','place name','place names','place','places','geo' (Place names); 'county'; 'uscounty' (United States county dabs); 'township' (Township name dabs); 'name','names','human name','human names','hn','hndis' (Human name dabs); 'surnames','surname' (surname dabs); 'given names','given name' (given-name dabs), 'hospital name','hospital names','hospitals','hospital' (hospital dabs); 'latin name','latin names','latin' (Latin name dabs); 'letter-number','letter number' (Letter-number combination dabs); 'mathdab','maths','mathematics','mathematical','math' (mathematical dabs); 'numberdis','numbers','ambiguous number','ambiguous numbers','number' (Lists of ambiguous numbers), 'plants','plant' (Plant common name dabs); 'roaddis','roads','road' (road dabs), 'schooldis','schools','educational institution','educational institutions','college','colleges','university','universities','school' (Educational institution dabs); 'political','party' (political party dabs), 'genus' (Genus dabs)

Stringoptional
22

Further category keys, as parameter 1.

Stringoptional
33

Further category keys, as parameter 1.

Stringoptional
44

Further category keys, as parameter 1.

Stringoptional
55

Further category keys, as parameter 1.

Stringoptional
66

Further category keys, as parameter 1.

Stringoptional
77

Further category keys, as parameter 1.

Stringoptional
88

Further category keys, as parameter 1.

Stringoptional
99

Further category keys, as parameter 1.

Stringoptional
1010

Further category keys, as parameter 1.

Stringoptional
hnhn

Human name disambiguation page with its own sort key.

Stringoptional
page-titlepage-title

Page title to use, only useful for special cases when default does not work.

Default
(FULLPAGENAME)
Stringoptional
nocatnocat

Set to 'yes' to prevent categorisation.

Stringoptional
demospacedemospace

Used for testing.

Stringoptional
ignore_parenthesesignore_parentheses

Set to 'yes' to prevent parentheses in the article title from being parsed as incomplete disambiguation.

Stringoptional
typetype

Manually specify the article type in the descriptive text ('This disambiguation page lists {{{type}}} articles...')

Stringoptional

See also