Template:Disambiguation/doc

From CAPipedia

[[Category:Template documentation pages{{#translation:}}]]

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:

Template Category Notes
{{Airport disambiguation}} Category:Airport disambiguation pages for airports
{{Biology disambiguation}} Category:Biology disambiguation pages
{{Call sign disambiguation}} Category:Broadcast call sign disambiguation pages
{{Caselaw disambiguation}} Category:Case law disambiguation pages
{{Chinese title disambiguation}} Category:Disambiguation pages with Chinese character titles
{{Genus disambiguation}} Category:Genus disambiguation pages
{{Hangul title disambiguation}} Category:Disambiguation pages with Hangul titles
{{Human name disambiguation}}
 {{Human name disambiguation cleanup}}
Category:Human name disambiguation pages
{{Hospital disambiguation}} Category:Hospital disambiguation pages for hospitals or medical centers
{{Letter–number combination disambiguation}} Category:Letter–number combination disambiguation pages
{{Mathematical disambiguation}} Category:Mathematics disambiguation pages for mathematics titles
{{Military unit disambiguation}} Category:Military units and formations disambiguation pages
{{Number disambiguation}} Category:Lists of ambiguous numbers
{{Phonetics disambiguation}} Category:Linguistics disambiguation pages
{{Place name disambiguation}} Category:Place name disambiguation pages
{{Road disambiguation}} Category:Road disambiguation pages
{{School disambiguation}} Category:Educational institution disambiguation pages for educational institutions
{{Species Latin name disambiguation}} Category:Species Latin name disambiguation pages
{{Station disambiguation}} Category:Station disambiguation pages for railway and public transport stations
{{Synagogue disambiguation}} Category:Synagogue disambiguation pages for synagogues

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:
{{Disambiguation|human name}} (or name, names, human name, human names, or hndis)
 {{Disambiguation|hn=sortkey}}
for Category:Human name disambiguation pages
 for Category:Human name disambiguation pages with a specified sort key (e.g. {{Disambiguation|hn=Doe, John}})
{{Disambiguation|animal}} for Category:Animal common name disambiguation pages‎
{{Disambiguation|architecture}} for Category:Architectural disambiguation pages‎
{{Disambiguation|biology}} for Category:Biology disambiguation pages‎
{{Disambiguation|bird}} for Category:Bird common name disambiguation pages
{{Disambiguation|building and structure}} (or building, buildings,
structure, structures, or buildings and structures)
Category:Buildings and structures disambiguation pages
{{Disambiguation|church}} (or church building, church buildings, or churches) for Category:Church building disambiguation pages
{{Disambiguation|county}} (or counties)
 {{Disambiguation|uscounty}} (or uscounties)
for Category:County name disambiguation pages
 for Category:United States county name disambiguation pages
{{Disambiguation|culture}} (or language, languages, nationality, nationalities,
language and nationality, languages and nationalities, or cultures)
for Category:Language and nationality disambiguation pages
{{Disambiguation|date time}} (or date, or time) for Category:Date and time disambiguation pages‎
{{Disambiguation|department}} (or departments) for Category:Department name disambiguation pages
{{Disambiguation|district}} (or districts) for Category:District name disambiguation pages
{{Disambiguation|economics}} for Category:Social science disambiguation pages‎
{{Disambiguation|fish}} for Category:Fish common name disambiguation pages
{{Disambiguation|flight number}} (or flight, or flight numbers) for Category:Flight number disambiguation pages‎
{{Disambiguation|genus}} (or genera) for Category:Genus disambiguation pages
{{Disambiguation|geo}} (or geodis, geography, geographical, place name,
place names, place, or places)
for Category:Place name disambiguation pages
{{Disambiguation|hospital}} (or hospital name, hospital names, or hospitals) for Category:Hospital disambiguation pages
{{Disambiguation|ih same title}} (or ihs same title) for Category:Lists of Interstate Highways sharing the same title‎
{{Disambiguation|latin}} (or latin name, or latin names) for Category:Latin name disambiguation pages
{{Disambiguation|letter number}} (or letter-number) for Category:Letter–number combination disambiguation pages
{{Disambiguation|linguistics}} for Category:Linguistics disambiguation pages
{{Disambiguation|math}} (or mathdab, mathematics, mathematical, or maths) for Category:Mathematics disambiguation pages
{{Disambiguation|military}} for Category:Military units and formations disambiguation pages‎
{{Disambiguation|mosque}} (or mosques) for Category:Mosque disambiguation pages
{{Disambiguation|municipality}} (or municipalities) for Category:Municipality name disambiguation pages‎
{{Disambiguation|number}} (or numberdis, ambiguous number, ambiguous numbers, or numbers) for Category:Lists of ambiguous numbers
{{Disambiguation|opus number}} (or opus, or opus numbers) for Category:Opus number disambiguation pages‎
{{Disambiguation|parish}} (or parishes) for Category:Parish name disambiguation pages‎
{{Disambiguation|plant}} (or plants) for Category:Plant common name disambiguation pages
{{Disambiguation|political party}} (or party, parties, political, or political parties) for Category:Political party disambiguation pages
{{Disambiguation|province}} (or provinces) for Category:Province name disambiguation pages
{{Disambiguation|religion}} (or hindu, hindu temple, hindu temples,
religious building, or religious buildings)
for Category:Religious buildings and structures disambiguation pages
(note that hindu, hindu temple, and hindu temples, are only to be used on disambiguation pages about Hindu temples)
{{Disambiguation|road}} (or roaddis, or roads) for Category:Road disambiguation pages
{{Disambiguation|road same title}} (or roads same title) for Category:Lists of roads sharing the same title‎
{{Disambiguation|school}} (or schooldis, education, educational institution,
educational institutions, college, colleges, university, universities, or schools)
for Category:Educational institution disambiguation pages
{{Disambiguation|science}} for Category:Science disambiguation pages
{{Disambiguation|ship}} (or ships) for Category:Ship disambiguation pages
{{Disambiguation|social science}} (or social) for Category:Social science disambiguation pages‎
{{Disambiguation|species latin}} (or species latin name, or species latin names) for Category:Species Latin name disambiguation pages
{{Disambiguation|species latin name abbreviation}} (or species latin name abbr,
species latin name abbrs, or species latin name abbreviations)
for Category:Species Latin name abbreviation disambiguation pages
{{Disambiguation|station}} (or stations) for Category:Station disambiguation pages
{{Disambiguation|synagogue}} (or synagogues) for Category:Synagogue disambiguation pages
{{Disambiguation|taxonomy}} for Category:Taxonomy disambiguation pages
{{Disambiguation|technology and engineering}} (or engineering,
tech, tech and engineering, or technology)
for Category:Technology and engineering disambiguation pages
{{Disambiguation|template}} (or templates) for Category:Template disambiguation pages
{{Disambiguation|temple}} (or buddhist, buddhist temple, buddhist temples, or temples) for Category:Buddhist temple disambiguation pages‎
{{Disambiguation|temple name}} (or temple names) for Category:Temple name disambiguation pages‎
{{Disambiguation|tndis}} for Category:Title and name disambiguation pages
{{Disambiguation|township}} (or townships)
 {{Disambiguation|arkansas township}} (or arkansas townships)
 {{Disambiguation|illinois township}} (or illinois townships)
 {{Disambiguation|indiana township}} (or indiana townships)
 {{Disambiguation|iowa township}} (or iowa townships)
 {{Disambiguation|kansas township}} (or kansas townships)
 {{Disambiguation|michigan township}} (or michigan townships)
 {{Disambiguation|minnesota township}} (or minnesota townships)
 {{Disambiguation|missouri township}} (or missouri townships)
 {{Disambiguation|nebraska township}} (or nebraska townships)
 {{Disambiguation|new jersey township}} (or new jersey townships)
 {{Disambiguation|north carolina township}} (or north carolina townships)
 {{Disambiguation|north dakota township}} (or north dakota townships)
 {{Disambiguation|ohio township}} (or ohio townships)
 {{Disambiguation|oklahoma township}} (or oklahoma townships)
 {{Disambiguation|pennsylvania township}} (or pennsylvania townships)
 {{Disambiguation|south dakota township}} (or south dakota townships)
for Category:Township name disambiguation pages
 for Category:Arkansas township disambiguation pages‎
 for Category:Illinois township disambiguation pages‎
 for Category:Indiana township disambiguation pages‎
 for Category:Iowa township disambiguation pages‎
 for Category:Kansas township disambiguation pages‎
 for Category:Michigan township disambiguation pages‎
 for Category:Minnesota township disambiguation pages‎
 for Category:Missouri township disambiguation pages‎
 for Category:Nebraska township disambiguation pages‎
 for Category:New Jersey township disambiguation pages‎
 for Category:North Carolina township disambiguation pages
 for Category:North Dakota township disambiguation pages‎
 for Category:Ohio township disambiguation pages
 for Category:Oklahoma township disambiguation pages‎
 for Category:Pennsylvania township disambiguation pages‎
 for Category:South Dakota township disambiguation pages
{{Disambiguation|transport route}} (or transport routes) for Category:Transport route disambiguation pages‎
These can be added if there are one or more elements in the list (per their category descriptions):
{{Disambiguation|airport}} (or airports) for Category:Airport disambiguation pages
{{Disambiguation|callsign}} (or call sign, call signs,
broadcast call sign, broadcast call signs, or callsigns)
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:
{{Disambiguation|given name}} (or given names) for Category:Disambiguation pages with given-name-holder lists
{{Disambiguation|surname}} (or surnames) for Category:Disambiguation pages with surname-holder lists
This parameter reflects the title, not the contents:
{{Disambiguation|chinese}} (or chinese char, chinese-char, chinesechar, or chinese character) for Category:Disambiguation pages with Chinese character titles
And these parameters reflect a maintenance need, not the contents:
{{Disambiguation|cleanup}} (or clean up, or clean-up) for Category:Disambiguation pages in need of cleanup
{{Disambiguation|one non-primary topic}} (or non-primary, or non-primary topic) for Category:Disambiguation pages containing one non-primary topic
{{Disambiguation|split}} for Category:Disambiguation pages in need of being split

This list is currently complete as of 28 October 2023 and {{Disambiguation}} has parameters for all subcategories of Category:Disambiguation pages; it is recommended to use this template and its parameters instead of adding that categories' subcategory to the disambiguation page manually.

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 for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Disambiguation in articles based on its TemplateData.

TemplateData for Disambiguation

<templatedata> { "description": "Place at the bottom of Disambiguation pages.", "params": { "1": { "label": "First category key", "description": "Used to put the page in a category. Can be one of 'split' (dab pages in need of being split); 'cleanup','clean up','clean-up' (dabs in need of cleanup); 'one non-primary topic','non-primary','non-primary topic' (dabs without a primary topic); 'functional area'", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ], "suggested": true }, "2": { "label": "Second category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "3": { "label": "Third category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "4": { "label": "Fourth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "5": { "label": "Fifth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "6": { "label": "Sixth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "7": { "label": "Seventh category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "8": { "label": "Eighth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "9": { "label": "Ninth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "10": { "label": "Tenth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "cleanup", "clean up", "clean-up", "one non-primary topic", "non-primary", "non-primary topic", "functional area" ] }, "hn": { "label": "Human name", "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