Difference between revisions of "Template:Disambiguation/doc"
(updated number of transclusions) |
m (1 revision: For {{Disambiguation}}.) |
(No difference)
|
Latest revision as of 14:36, 5 September 2014
Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127. This is the {{Disambiguation}} template.
Important: Please do not subst: this 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.
Contents
Page title fix
In the event that the page title is causing an error, such as what happened at ***, add the parameter: <code class="nowrap">|page-title = page title
</code> . Thus, the *** page would use the syntax: {{Disambiguation|page-title = ***}}
.
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:
- {{Airport disambiguation}} for airports – Category:Airport disambiguation
- {{Call sign disambiguation}} – Category:Broadcast call sign disambiguation pages
- {{Chinese title disambiguation}} – Category:Disambiguation pages with Chinese character titles
- {{Geodis}} for place names – Category:Place name disambiguation pages
- {{Hndis}} for people's names – Category:Human name disambiguation pages
- {{Hndis-cleanup}}
- {{Hospital disambiguation}} for hospitals or medical centers – Category:Hospital disambiguation pages
- {{Letter disambiguation}} – adds a Latin letter navbox, does not auto-categorize
- {{Letter-NumberCombDisambig}} – Category:Letter-number combination disambiguation pages
- {{Mathematical disambiguation}} for mathematics titles – Category:Mathematical disambiguation
- {{Numberdis}} for numbers – Category:Lists of ambiguous numbers
- {{School disambiguation}} for educational institutions – Category:Educational institution disambiguation pages
- {{Species Latin name disambiguation}} – Category:Latin name disambiguation pages
- {{Wikipedia disambiguation}} for ambiguous titles and shortcuts in the Wikipedia namespace – Category:Wikipedia disambiguation pages
See also WP:SIA which includes a list of templates for set index articles.
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 if the disambiguation page has several items of that type.
-
{{Disambiguation|human name}}
: for Category:Human name disambiguation pages (note that you must instead add the category separately if it needs a different sort key) -
{{Disambiguation|given name}}
: Category:Disambiguation pages with given-name-holder lists -
{{Disambiguation|surname}}
: for Category:Disambiguation pages with surname-holder lists -
{{Disambiguation|airport}}
: for Category:Airport disambiguation -
{{Disambiguation|callsign}}
: for Category:Broadcast call sign disambiguation pages -
{{Disambiguation|chinese}}
: for Category:Disambiguation pages with Chinese character titles -
{{Disambiguation|church}}
: for Category:Church building disambiguation pages -
{{Disambiguation|fish}}
: for Category:Fish common name disambiguation pages -
{{Disambiguation|genus}}
: for Category:Genus disambiguation pages -
{{Disambiguation|geo}}
: for Category:Place name disambiguation pages -
{{Disambiguation|hospital}}
: for Category:Hospital disambiguation pages -
{{Disambiguation|latin}}
: for Category:Latin name disambiguation pages -
{{Disambiguation|letter number}}
: for Category:Letter-number combination disambiguation pages -
{{Disambiguation|math}}
: for Category:Mathematical disambiguation -
{{Disambiguation|number}}
: for Category:Lists of ambiguous numbers -
{{Disambiguation|plant}}
: for Category:Plant common name disambiguation pages -
{{Disambiguation|political}}
: for Category:Political party disambiguation pages -
{{Disambiguation|road}}
: for Category:Lists of roads sharing the same title -
{{Disambiguation|school}}
: for Category:Educational institution disambiguation pages -
{{Disambiguation|split}}
: for Category:Disambiguation pages in need of being split
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.
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".
Template use
Place template at the foot of the disambiguation page after all of the disambiguation content but before any categories (see below) or interlanguage links, as per WP:DCAT.
TemplateData
Disambiguation
<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 }, "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 } }
} </templatedata>
See also
- Wikipedia:Hatnote
- {{Disambiguation needed}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article, see Wikipedia:OTHERUSES for more.
- {{WikiProject Disambiguation}} – for disambig talkpages
- {{Other uses}} - for linking to disambiguation pages in articles