Template:Disambiguation/cat: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Protected Template:Dabcat: Will become high-risk. Semi protected for now so User:Kotniski can continue to code it, and in case we forget to fully protect it once we deploy it. ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
(Added {{documentation}}, cleaned up the code for readability, and added {{pp-semi-template|small=yes}} for now.)
Line 1: Line 1:
{{#switch:{{{1|}}}
{{#switch:{{{1|}}}|airport|airports=[[Category:Airport disambiguation]]|geo|geodis|place|places=[[Category:Place name disambiguation pages]]|name|names|hn|hndis=[[Category:Human name disambiguation pages]]|surname=[[Category:Surnames]]|given name=[[Category:Given names]]|hospital|hospitals=[[Category:Lists of ambiguous hospital names]]|math|maths|mathdab=[[Category:Mathematical disambiguation]]|mountain|mountains=[[Category:Disambiguation lists of mountains]]|number|numbers|numberdis=[[Category:Lists of ambiguous numbers]]|road|roads|roaddis=[[Category:Lists of roads sharing the same title]]|school|schools|schooldis=[[Category:Educational institution disambiguation]]}}
| airport
| airports = [[Category:Airport disambiguation]]
| geo
| geodis
| place
| places = [[Category:Place name disambiguation pages]]
| name
| names
| hn
| hndis = [[Category:Human name disambiguation pages]]
| surname = [[Category:Surnames]]
| given name = [[Category:Given names]]
| hospital
| hospitals = [[Category:Lists of ambiguous hospital names]]
| math
| maths
| mathdab = [[Category:Mathematical disambiguation]]
| mountain
| mountains = [[Category:Disambiguation lists of mountains]]
| number
| numbers
| numberdis = [[Category:Lists of ambiguous numbers]]
| road
| roads
| roaddis = [[Category:Lists of roads sharing the same title]]
| school
| schools
| schooldis = [[Category:Educational institution disambiguation]]
}}<noinclude>

{{pp-semi-template|small=yes}}
{{documentation}}
<!-- Add template categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Revision as of 18:41, 5 February 2009


Template:Pp-semi-template

Template documentation

This is the {{Disambiguation/cat}} sub-template.

Do not use this template directly, use {{Disambiguation}} or {{Disambiguation cleanup}} instead.

This template is called from {{Disambiguation}} and {{Disambiguation cleanup}}. It handles some of the categorization logic for those templates.

For more documentation see {{Disambiguation}} and {{Disambiguation cleanup}}.

{{Dabcat}} redirects here, and is used by {{Disambiguation cleanup}}.

Parameters

This template takes one parameter and produces a category assignment dependent on that parameter.

The main parameter value for some of the categories in this template are as follows (some other variants will also work):

This list is usually not complete, since we add new categories to this template every now and then.

Error reporting

If an invalid parameter is fed to this template it displays an error message and categorizes the page into Category:Wikipedia disambig or set index box parameter needs fixing. Thus editors can see when they use an invalid parameter, and if they don't notice it we can easily find and fix such cases by taking a look in that category.