Template:Disambiguation/cat/doc: Difference between revisions

m
31 revisions imported
(→‎Usage: adding new parameter)
m (31 revisions imported)
 
(24 intermediate revisions by 14 users not shown)
Line 1:
{{Documentation subpage}}
{{high-risk| 165,000+ }}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) -->
 
This is the {{tl|dabcatDisambiguation/cat}} metasub-template.
 
Do not use this template directly, use {{tl|Disambiguation}} or {{tl|Disambiguation cleanup}} instead.
It is intended to be used inside the {{tl|disambig}} template.
 
This template is called from {{tlf|Disambiguation}} and {{tlf|Disambiguation cleanup}}. It handles some of the categorization logic for those templates.
=== Usage ===
 
For more documentation see {{tl|Disambiguation}} and {{tl|Disambiguation cleanup}}.
 
{{tl|Dabcat}} redirects here, and is used by {{tl|Disambiguation cleanup}}.
 
== Parameters ==
This template takes one parameter and produces a category assignment dependent on that parameter.
 
RecommendedThe main parameter valuesvalue for some of the categories in this template are as follows (some other variants will also work):
 
*hn: for [[:Category:Human name disambiguation pages]]
*surname: for [[:Category:Surnames]]
*given name: [[:Category:Given names]]
*geo: for [[:Category:Place name disambiguation pages]]
*mountain: for [[:Category:Disambiguation lists of mountains]]
*airport: for [[:Category:Airport disambiguation]]
*hospitalbird: for [[:Category:ListsBird ofcommon ambiguousname hospitaldisambiguation namespages]]
*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 names]]
*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]]
*hospital: for [[:Category:Hospital disambiguation pages]]
*latin: for [[:Category:Latin name disambiguation pages]]
*letter number: for [[:Category:Letter-number combination disambiguation pages]]
*math: for [[:Category:MathematicalMathematics disambiguation pages]]
*roadnumber: for [[:Category:Lists of roadsambiguous sharing the same titlenumbers]]
*plant: for [[:Category:Plant common namesname disambiguation pages]]
*political: for [[:Category:Political party 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]]
 
*mountaincleanup: for [[:Category:Disambiguation listspages in need of mountainscleanup]]
=== Error reporting ===
*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.
If/when an invalid parameter is fed to this template it prints an error message and categorises 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.
 
=== SeeError alsoreporting ===
If/when an invalid parameter is fed to this template it printsdisplays an error message and categorisescategorizes 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||
* {{tl|disambig}}
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
[[Category:Wikipedia metatemplates]]
}}</includeonly>
 
</includeonly>