Difference between revisions of "Template:Disambiguation/doc"
(→See also: genericize) |
imported>NelsonJenkins m (1 revision) |
(No difference)
|
Latest revision as of 01:50, 3 March 2012
40px | This is a documentation subpage for Template:Disambiguation. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
This template is used on 130,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
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:
. Thus, the *** page would use the syntax: |page-title = page title
{{Disambiguation|page-title = ***}}
.
Variant templates
Disambiguation
For disambiguation pages requiring cleanup, use {{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:
- {{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
- {{Molecular formula disambiguation}} – Category:Molecular formula disambiguation pages and Category:Molecular formulas
- {{Numberdis}} for numbers – Category:Lists of ambiguous numbers
- {{School disambiguation}} for educational institutions – Category:Educational institution disambiguation
- {{Species Latin name disambiguation}} – Category:Latin name disambiguation pages
- {{Wikipedia disambiguation}} for ambiguous titles and shortcuts in the Wikipedia namespace – Category:Wikipedia project disambiguation pages
Set index
For set index articles:
- {{Set index article}} for any set index article – Category:Set indices
- {{Mountainindex}} for mountain names – Category:Set indices on mountains
- {{Roadindex}} for roads, streets, or highways – Category:Lists of roads sharing the same title
- {{Shipindex}} for ship names – Category:Set indices on ships
- {{Sportindex}} for sport names – Category:Set indices on sports
- {{Surname}} for people's surnames – Category:Surnames
- {{Given name}} for people's given names – Category:Given names
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:Given names
- {{Disambiguation|surname}}: for Category:Surnames
- {{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 names
- {{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|molform}}: for Category:Molecular formula disambiguation pages and Category:Molecular formulas
- {{Disambiguation|number}}: for Category:Lists of ambiguous numbers
- {{Disambiguation|plant}}: for Category:Plant common names
- {{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
- {{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".
See also
- Wikipedia:Hatnote
- {{Disambiguation needed}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article, see Wikipedia:OTHERUSES for more.