Template:Disambiguation/doc: Difference between revisions

From Project: Redcap
m (129 revisions: Imported Template:Disambiguation)
 
(Removed Wikipedia-specific stuff)
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-risk|225,000+}}
{{Dabnav}}
{{Dabnav}}
This is the {{tl|Disambiguation}} template.
This is the {{tl|Disambiguation}} template.
Line 10: Line 9:
=== Page title fix ===
=== Page title fix ===
In the event that the page title is causing an error, such as <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=%2A%2A%2A&oldid=171348746 what happened]</span> at ''[[***]]'', add the parameter: '''<code>{{para|page-title |<var> page title</var>}}</code>''' . Thus, the [[***]] page would use the syntax: '''<code><nowiki>{{Disambiguation|page-title = ***}}</nowiki></code>''' .
In the event that the page title is causing an error, such as <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=%2A%2A%2A&oldid=171348746 what happened]</span> at ''[[***]]'', add the parameter: '''<code>{{para|page-title |<var> page title</var>}}</code>''' . Thus, the [[***]] page would use the syntax: '''<code><nowiki>{{Disambiguation|page-title = ***}}</nowiki></code>''' .
===Variant templates===
====Disambiguation====
{{Category see also|Disambiguation message boxes}}
For disambiguation pages requiring cleanup, use {{tl|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:
* {{tl|Airport disambiguation}} for airports – [[:Category:Airport disambiguation]]
* {{tl|Call sign disambiguation}} – [[:Category:Broadcast call sign disambiguation pages]]
* {{tl|Chinese title disambiguation}} – [[:Category:Disambiguation pages with Chinese character titles]]
* {{tl|Geodis}} for place names – [[:Category:Place name disambiguation pages]]
* {{tl|Hndis}} for people's names – [[:Category:Human name disambiguation pages]]
** {{tl|Hndis-cleanup}}
* {{tl|Hospital disambiguation}} for hospitals or medical centers – [[:Category:Hospital disambiguation pages]]
* {{tl|Letter disambiguation}} – adds a Latin letter navbox, does not auto-categorize
* {{tl|Letter-NumberCombDisambig}} – [[:Category:Letter-number combination disambiguation pages]]
* {{tl|Mathematical disambiguation}} for mathematics titles – [[:Category:Mathematical disambiguation]]
* {{tl|Numberdis}} for numbers – [[:Category:Lists of ambiguous numbers]]
* {{tl|School disambiguation}} for educational institutions – [[:Category:Educational institution 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]]


====Set index====
====Set index====
Line 56: Line 33:
* {{tlx|Disambiguation|given name}}: [[:Category:Disambiguation pages with given-name-holder lists]]
* {{tlx|Disambiguation|given name}}: [[:Category:Disambiguation pages with given-name-holder lists]]
* {{tlx|Disambiguation|surname}}: for [[:Category:Disambiguation pages with surname-holder lists]]
* {{tlx|Disambiguation|surname}}: for [[:Category:Disambiguation pages with surname-holder lists]]
* {{tlx|Disambiguation|airport}}: for [[:Category:Airport disambiguation]]
* {{tlx|Disambiguation|callsign}}: for [[:Category:Broadcast call sign disambiguation pages]]
* {{tlx|Disambiguation|chinese}}: for [[:Category:Disambiguation pages with Chinese character titles]]
* {{tlx|Disambiguation|church}}: for [[:Category:Church building disambiguation pages]]
* {{tlx|Disambiguation|fish}}: for [[:Category:Fish common names]]
* {{tlx|Disambiguation|genus}}: for [[:Category:Genus disambiguation pages]]
* {{tlx|Disambiguation|geo}}: for [[:Category:Place name disambiguation pages]]
* {{tlx|Disambiguation|hospital}}: for [[:Category:Hospital disambiguation pages]]
* {{tlx|Disambiguation|latin}}: for [[:Category:Latin name disambiguation pages]]
* {{tlx|Disambiguation|latin}}: for [[:Category:Latin name disambiguation pages]]
* {{tlx|Disambiguation|letter number}}: for [[:Category:Letter-number combination disambiguation pages]]
* {{tlx|Disambiguation|math}}: for [[:Category:Mathematical disambiguation]]
* {{tlx|Disambiguation|number}}: for [[:Category:Lists of ambiguous numbers]]
* {{tlx|Disambiguation|plant}}: for [[:Category:Plant common names]]
* {{tlx|Disambiguation|political}}: for [[:Category:Political party disambiguation pages]]
* {{tlx|Disambiguation|road}}: for [[:Category:Lists of roads sharing the same title]]
* {{tlx|Disambiguation|school}}: for [[:Category:Educational institution disambiguation pages]]
* {{tlx|Disambiguation|split}}: for [[:Category:Disambiguation pages in need of being split]]
* {{tlx|Disambiguation|split}}: for [[:Category:Disambiguation pages in need of being split]]


Line 85: Line 47:


=== Technical details ===
=== Technical details ===
Internally, this template uses {{tl|Dmbox}}. That template categorises pages into [[:Category:All disambiguation pages]] and [[:Category:All article disambiguation pages]].
Internally, this template uses {{tl|Dmbox}}.


This template also uses {{tl|Disambiguation/cat}} to handle the categorisation parameters, such as "hospital" and "school".
This template also uses {{tl|Disambiguation/cat}} to handle the categorisation parameters, such as "hospital" and "school".


=== See also ===
=== See also ===
* [[Wikipedia:Hatnote]]
* [[Template:Hatnote]]
* {{tl|Disambiguation needed}} – 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.
* {{tl|WikiProject Disambiguation}} – for disambig talkpages
* {{tl|WikiProject Disambiguation}} – for disambig talkpages

Latest revision as of 19:26, 26 April 2013

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

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 = ***}} .

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 }}.

This template also uses {{Disambiguation/cat }} to handle the categorisation parameters, such as "hospital" and "school".

See also