Template:Disambiguation/doc
This is a documentation subpage for Template:Disambiguation. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be substituted. |
This template adds an automatically generated short description. |
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 |
---|---|---|
{{Road disambiguation}} | Category:Road disambiguation pages |
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|road}} |
for Category:Road disambiguation pages |
Note that {{Disambiguation}} might not have parameters for all subcategories of Category:Disambiguation pages; the category may have to be manually added to the disambiguation 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:
{{Disambiguation|nocat=true}}
{{Disambiguation|nocat=yes}}
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 other}}
- {{Title disambig text}}
- {{PAGENAMEBASE}}
- {{Trim}}
- {{Str rep}}
- {{#invoke:Redirect|isRedirect}}
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
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); '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, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ], "suggested": true }, "2": { "label": "Second category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "3": { "label": "Third category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "4": { "label": "Fourth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "5": { "label": "Fifth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "6": { "label": "Sixth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "7": { "label": "Seventh category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "8": { "label": "Eighth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "9": { "label": "Ninth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "10": { "label": "Tenth category key", "description": "Further category keys, as parameter 1.", "type": "string", "required": false, "suggestedvalues": [ "split", "clean up", "airports", "call sign", "chinese char", "churches", "fish", "places", "uscounty", "township", "name", "surnames", "given names", "hospital names", "latin name", "letter-number", "mathematics", "ambiguous number", "plants", "roads", "schools", "political", "genus" ] }, "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
- {{Dablinks}} – lists wikilinks on the page that link to disambiguation pages
- {{Disambiguation needed}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article.
- {{WikiProject Disambiguation}} – for disambig talkpages
- {{Redirect}} – for linking to disambiguation pages in an article that is the primary topic of a redirect.
- {{Other uses}} – for linking to disambiguation pages in articles