Template:Disambiguation/cat/doc: Difference between revisions

m
31 revisions imported
(Adding: "{{dabcat}} redirects here, and is used by {{disambig-cleanup}}.")
m (31 revisions imported)
 
(20 intermediate revisions by 13 users not shown)
Line 1:
{{documentationDocumentation subpage}}
{{high-risk| 100165,000+ }}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
This is the {{tl|disambigDisambiguation/cat}} sub-template.
 
Do not use this template directly, use {{tl|disambigDisambiguation}} or {{tl|disambig-Disambiguation cleanup}} instead.
 
This template is called from {{tlf|disambigDisambiguation}} and {{tlf|disambig-Disambiguation cleanup}}. It handles some of the categorization logic for those templates.
 
For more documentation see {{tl|disambigDisambiguation}} and {{tl|disambig-Disambiguation cleanup}}.
 
{{tl|dabcatDabcat}} redirects here, and is used by {{tl|disambig-Disambiguation cleanup}}.
 
=== Parameters ===
 
=== 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):
 
*mathairport: for [[:Category:MathematicalAirport disambiguation]]
*schoolbird: for [[:Category:EducationalBird institutioncommon name disambiguation pages]]
*callsign: for [[:Category:Broadcast call sign disambiguation pages]]
*caselaw: for [[:Category:Case law disambiguation pages]]
*chinese: for [[:Category:Disambiguation pages with Chinese character titles]]
*church: for [[:Category:Church building disambiguation pages]]
*fish: for [[:Category:Fish common name disambiguation pages]]
*genus: for [[:Category:Genus disambiguation pages]]
*geo: for [[:Category:Place name disambiguation pages]]
*given name: [[:Category:Disambiguation pages with given-name-holder lists]]
*hn: for [[:Category:Human name disambiguation pages]]
*surnamehospital: for [[:Category:SurnamesHospital disambiguation pages]]
*given namelatin: for [[:Category:GivenLatin name disambiguation namespages]]
*geoletter number: for [[:Category:PlaceLetter-number namecombination disambiguation pages]]
*airportmath: for [[:Category:AirportMathematics disambiguation pages]]
*hospital: for [[:Category:Lists of ambiguous hospital names]]
*road: for [[:Category:Lists of roads sharing the same title]]
*school: for [[:Category:Educational institution disambiguation]]
*math: for [[:Category:Mathematical disambiguation]]
*number: for [[:Category:Lists of ambiguous numbers]]
*plant: for [[:Category:Plant common namesname disambiguation pages]]
*callsignpolitical: for [[:Category:BroadcastPolitical call signparty disambiguation pages]]
*road: for [[:Category:Road disambiguation pages]]
*school: for [[:Category:Educational institution disambiguation pages]]
*ship: for [[:Category:Ship disambiguation pages]]
*surname: for [[:Category:Disambiguation pages with surname-holder lists]]
 
*cleanup: for [[:Category:Disambiguation pages in need of cleanup]]
*split: for [[:Category:Disambiguation pages in need of being split]]
 
This list is usually not complete, since we add new categories to this template every now and then.
 
=== Error reporting ===
If/when an invalid parameter is fed to this template it printsdisplays 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.
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
If/when an invalid parameter is fed to this template it prints 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.
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[Category:Wikipedia metatemplates]]
}}</includeonly>
 
</includeonly>