Difference between revisions of "Template:Disambiguation/doc"

From blackwiki
Jump to navigation Jump to search
(fix)
imported>Funandtrvl
m (update #, ce)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
{{high-risk| 100,000+ }}
+
{{high-risk| 130,000+ }}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
{{dabnav}}
 
{{dabnav}}
Line 10: Line 10:
  
 
=== 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>{{disambig |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>{{disambig |page-title = ***}}</nowiki></code>''' .
  
 
=== Variant templates ===
 
=== Variant templates ===
 +
====Disambiguation====
 +
{{Category see also|Disambiguation message boxes}}
  
 
For disambiguation pages requiring cleanup, use {{tl|disambig-cleanup}}.
 
For disambiguation pages requiring cleanup, use {{tl|disambig-cleanup}}.
  
More specific, alternative templates 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 disambig}} for airports – [[:Category:Airport disambiguation]]
 
* {{tl|Callsigndis}} – [[:Category:Broadcast call sign disambiguation pages]]
 
* {{tl|Callsigndis}} – [[:Category:Broadcast call sign disambiguation pages]]
Line 25: Line 26:
 
** {{tl|Hndis-cleanup}}
 
** {{tl|Hndis-cleanup}}
 
* {{tl|Hospitaldis}} for hospitals or medical centers – [[:Category:Hospital disambiguation pages]]
 
* {{tl|Hospitaldis}} for hospitals or medical centers – [[:Category:Hospital disambiguation pages]]
* {{tl|Letter disambig}} – Adds no special category but adds a Latin letter navbox.
+
* {{tl|Letter disambig}} – 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|Mathdab}} for mathematics titles – [[:Category:Mathematical disambiguation]]
Line 32: Line 33:
 
* {{tl|Schooldis}} for educational institutions – [[:Category:Educational institution disambiguation]]
 
* {{tl|Schooldis}} 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|WP disambig}} for Wikipedia project and help pages associated with a given shortcut or title
+
* {{tl|Wikipedia disambiguation}} for ambiguous titles and shortcuts in the Wikipedia namespace – [[:Category:Wikipedia project disambiguation pages]]
 +
 
 +
====Set index====
 +
{{Category see also|Set index article templates}}
  
 
For [[Wikipedia:Disambiguation#Set index articles|set index articles]]:
 
For [[Wikipedia:Disambiguation#Set index articles|set index articles]]:
Line 45: Line 49:
  
 
=== Parameters ===
 
=== Parameters ===
 
+
Sometimes there isn't a specific disambig 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|disambig}} 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 disambig 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|disambig}} but with one or more parameters telling which categories to use. Up to ten parameters can be fed, and in any order. Like this:
 
  
 
:{{tlc|disambig|school|hospital}}
 
:{{tlc|disambig|school|hospital}}
Line 73: Line 76:
 
* {{tlx|disambig|school}}: for [[:Category:Educational institution disambiguation]]
 
* {{tlx|disambig|school}}: for [[:Category:Educational institution disambiguation]]
 
* {{tlx|disambig|split}}: for [[:Category:Disambiguation pages in need of being split]]
 
* {{tlx|disambig|split}}: for [[:Category:Disambiguation pages in need of being split]]
 
For pages that need clean-up use {{tl|disambig-cleanup}}, it understands the same parameters.
 
  
 
Note that {{tl|disambig}} might not have parameters for all subcategories of [[:Category:Disambiguation pages]], then you have to manually add the category to the disambig page.
 
Note that {{tl|disambig}} might not have parameters for all subcategories of [[:Category:Disambiguation pages]], then you have to manually add the category to the disambig page.
  
=== Alternative names ===
+
=== Redirects ===
 +
The following redirect to this template:
  
For those who can't remember how this template's name is abbreviated, the {{tl|disambiguation}}, {{tl|disamb}} and {{tl|dab}} templates all redirect to {{tl|disambig}}.
+
* {{tl|Dab}}
 +
* {{tl|DAB}}
 +
* {{tl|Disamb}}
 +
* {{tl|Disambiguation}}
  
 
=== 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}}. That template categorises pages into [[:Category:All disambiguation pages]] and [[:Category:All article disambiguation pages]].
+
This template also uses {{tl|disambig/cat}} to handle the categorisation parameters, such as "hospital" and "school".
 
 
This template uses {{tl|disambig/cat}} to handle the categorisation parameters such as "hospital" and "school".
 
  
 
=== See also ===
 
=== See also ===
 
 
* {{tl|dablink}} – Basic article hatnote, see [[Wikipedia:Otheruses templates (example usage)]] for the full hatnote index.
 
* {{tl|dablink}} – Basic article hatnote, see [[Wikipedia:Otheruses templates (example usage)]] for the full hatnote index.
 
* {{tl|dn}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article.
 
* {{tl|dn}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article.

Revision as of 18:37, 24 February 2011

This is the {{disambig}} 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: {{disambig |page-title = ***}} .

Variant templates

Disambiguation

For disambiguation pages requiring cleanup, use {{disambig-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 disambig template (see list above) that fits for a page, or the page has items in more than one of the above classes. Then use {{disambig}} but with one or more parameters telling which categories to use. Up to ten parameters can be fed, and in any order, for example:

{{disambig|school|hospital}}

Only add a parameter if the disambig page has several items of that type.

Note that {{disambig}} 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 {{disambig/cat}} to handle the categorisation parameters, such as "hospital" and "school".

See also