Difference between revisions of "Template:Disambiguation/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mandarax
m (Reverted edits by 187.59.40.74 (talk) to last version by Sodabottle)
imported>Lmatt
m (bypassed redirects)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
{{High-risk| 130,000+ }}
 
{{High-risk| 130,000+ }}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
 
{{Dabnav}}
 
{{Dabnav}}
 
This is the {{tl|Disambiguation}} template.
 
This is the {{tl|Disambiguation}} template.
Line 19: Line 18:
  
 
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 do exist, for disambiguation pages or set index articles 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|Call sign disambiguation}} – [[:Category:Broadcast call sign disambiguation pages]]
* {{tl|Disambig-Chinese-char-title}} – [[:Category:Disambiguation pages with Chinese character titles]]
+
* {{tl|Chinese title disambiguation}} – [[:Category:Disambiguation pages with Chinese character titles]]
 
* {{tl|Geodis}} for place names – [[:Category:Place name disambiguation pages]]
 
* {{tl|Geodis}} for place names – [[:Category:Place name disambiguation pages]]
 
* {{tl|Hndis}} for people's names – [[:Category:Human name disambiguation pages]]
 
* {{tl|Hndis}} for people's names – [[:Category:Human name disambiguation pages]]
 
** {{tl|Hndis-cleanup}}
 
** {{tl|Hndis-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 navbox, does not auto-categorize
 
* {{tl|Letter-NumberCombDisambig}} – [[:Category:Letter-number combination disambiguation pages]]
 
* {{tl|Letter-NumberCombDisambig}} – [[:Category:Letter-number combination disambiguation pages]]
* {{tl|Mathdab}} for mathematics titles – [[:Category:Mathematical disambiguation]]
+
* {{tl|Mathematical disambiguation}} for mathematics titles – [[:Category:Mathematical disambiguation]]
* {{tl|MolFormDisambig}} – [[:Category:Molecular formula disambiguation pages]] and [[:Category:Molecular formulas]]
+
* {{tl|Molecular formula disambiguation}} – [[:Category:Molecular formula disambiguation pages]] and [[:Category:Molecular formulas]]
 
* {{tl|Numberdis}} for numbers – [[:Category:Lists of ambiguous numbers]]
 
* {{tl|Numberdis}} for numbers – [[:Category:Lists of ambiguous numbers]]
* {{tl|Schooldis}} for educational institutions – [[:Category:Educational institution disambiguation]]
+
* {{tl|School disambiguation}} for educational institutions – [[:Category:Educational institution disambiguation]]
 
* {{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|Wikipedia disambiguation}} for ambiguous titles and shortcuts in the Wikipedia namespace – [[:Category:Wikipedia project disambiguation pages]]
Line 40: Line 39:
 
For [[Wikipedia:Disambiguation#Set index articles|set index articles]]:
 
For [[Wikipedia:Disambiguation#Set index articles|set index articles]]:
  
* {{tl|SIA}} for any set index article – [[:Category:Set indices]]
+
* {{tl|Set index article}} for any set index article – [[:Category:Set indices]]
 
* {{tl|Mountainindex}} for mountain names – [[:Category:Set indices on mountains]]
 
* {{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|Roadindex}} for roads, streets, or highways – [[:Category:Lists of roads sharing the same title]]
Line 51: Line 50:
 
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.
 
Only add a parameter if the disambiguation page has several items of that type.
Line 94: Line 93:
 
=== See also ===
 
=== See also ===
 
* {{tl|Dablink}} – Basic article hatnote, see [[Wikipedia:HATTEST]] for the full hatnote index.
 
* {{tl|Dablink}} – Basic article hatnote, see [[Wikipedia:HATTEST]] for the full hatnote index.
* {{tl|Dn}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article, see [[Wikipedia:OTHERUSES]] for more.
+
* {{tl|Disambiguation needed}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article, see [[Wikipedia:OTHERUSES]] for more.
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
 
[[Category:Disambiguation message boxes| ]]
 
[[Category:Disambiguation message boxes| ]]
  

Revision as of 00:56, 26 January 2012

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.

Page title fix

In the event that the page title is causing an error, such as what happened at ***, add the parameter: |page-title = page title . 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 do exist, for disambiguation pages or set index articles whose entries are limited exclusively to items of a particular type:

Set index

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.

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