Template:Disambiguation/cat: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
m (50 revisions imported)
 
(29 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{#switch:{{{1|}}}
{{#switch:{{lc:{{{1|}}}}}
| split = [[Category:Disambiguation pages in need of being split]]
| airport
| clean up
| airports = [[Category:Airport disambiguation]]
| clean-up
| callsign
| cleanup = [[Category:Disambiguation pages in need of cleanup]]
| airports
| airport = [[Category:Airport disambiguation]]
| bird = [[Category:Bird common name disambiguation pages]]
| call sign
| call sign
| call signs
| call signs
Line 8: Line 12:
| broadcast call signs
| broadcast call signs
| callsign = [[Category:Broadcast call sign disambiguation pages]]
| callsign = [[Category:Broadcast call sign disambiguation pages]]
| caselaw = [[Category:Case law disambiguation pages]]
| chinese char
| chinese-char
| chinesechar
| chinese character
| chinese = [[Category:Disambiguation pages with Chinese character titles]]
| churches
| churches
| church building
| church building
| church buildings
| church buildings
| church = [[Category:Church building disambiguation pages]]
| church = [[Category:Church building disambiguation pages]]
| fish = [[Category:Fish common name disambiguation pages]]
| geo
| geodis
| geodis
| geography
| geography
| geographical
| geographical
| place name
| place names
| place name
| place name
| place names
| place names
| place
| place
| places
| places = [[Category:Place name disambiguation pages]]
| geo = [[Category:Place name disambiguation pages]]
| county = [[Category:County name disambiguation pages]]
| uscounty = [[Category:United States county disambiguation pages]]
| township = [[Category:Township name disambiguation pages]]
| name
| name
| names
| names
| human name
| human name
| human names
| human names
| hn
| hndis
| hndis = [[Category:Human name disambiguation pages]]
| hn = [[Category:Human name disambiguation pages]]
| surname = [[Category:Surnames]]
| surnames = [[Category:Disambiguation pages with surname-holder lists]]
| surname = [[Category:Disambiguation pages with surname-holder lists]]
| given names
| given name = [[Category:Given names]]
| given names =[[Category:Disambiguation pages with given-name-holder lists]]
| given name = [[Category:Disambiguation pages with given-name-holder lists]]
| hospital name
| hospital name
| hospital names
| hospital names
| hospitals
| hospital
| hospitals = [[Category:Lists of ambiguous hospital names]]
| hospital = [[Category:Hospital disambiguation pages]]
| latin name
| math
| latin names
| latin = [[Category:Latin name disambiguation pages]]
| letter-number
| letter number = [[Category:Letter-number combination disambiguation pages]]
| mathdab
| maths
| maths
| mathematics
| mathematics
| mathematical
| mathematical
| mathdab = [[Category:Mathematical disambiguation]]
| math = [[Category:Mathematics disambiguation pages]]
| numberdis
| number
| numbers
| numbers
| ambiguous number
| ambiguous number
| ambiguous numbers
| ambiguous numbers
| numberdis = [[Category:Lists of ambiguous numbers]]
| number = [[Category:Lists of ambiguous numbers]]
| plant
| plants
| plants = [[Category:Plant common names]]
| plant = [[Category:Plant common name disambiguation pages]]
| road
| roaddis
| roads
| roads
| roaddis = [[Category:Lists of roads sharing the same title]]
| road = [[Category:Road disambiguation pages]]
| schooldis
| school
| schools
| schools
| educational institution
| educational institution
Line 58: Line 76:
| university
| university
| universities
| universities
| schooldis = [[Category:Educational institution disambiguation]]
| school = [[Category:Educational institution disambiguation pages]]
| tndis = [[Category:Title and name disambiguation pages]]
| political
| party = [[Category:Political party disambiguation pages]]
| genus = [[Category:Genus disambiguation pages]]
| ship = [[Category:Ship disambiguation pages]]
| = <!-- No value fed, is also valid input -->
| = <!-- No value fed, is also valid input -->
| #default = <!-- <div style="text-align: center;">This disambiguation box is using an invalid category parameter "{{{1|}}}" and needs fixing. <small>([[:Category:Wikipedia disambig or set index box parameter needs fixing|learn more]])</small></div> -->[[Category:Wikipedia disambig or set index box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| #default = <!-- <div style="text-align: center;">This disambiguation box is using an invalid category parameter "{{{1|}}}" and needs fixing. <small>([[:Category:Wikipedia disambig or set index box parameter needs fixing|learn more]])</small></div> -->[[Category:Wikipedia disambig or set index box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
}}
{{Documentation}}
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
</noinclude>

Latest revision as of 21:39, 13 November 2017

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.