Template:Disambiguation/cat/doc: Difference between revisions

m
31 revisions imported
m (moved Template:Disambig/cat/doc to Template:Disambiguation/cat/doc: expand name, per discussion)
m (31 revisions imported)
 
(16 intermediate revisions by 11 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.
 
Line 20 ⟶ 19:
 
*airport: for [[:Category:Airport disambiguation]]
*molformbird: for [[:Category:MolecularBird formulacommon 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 namesname disambiguation pages]]
*genus: for [[:Category:Genus disambiguation pages]]
*geo: for [[:Category:Place name disambiguation pages]]
*given name: [[:Category:GivenDisambiguation namespages 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]]
*molform: for [[:Category:Molecular formula disambiguation pages]]
*number: for [[:Category:Lists of ambiguous numbers]]
*plant: for [[:Category:Plant common namesname disambiguation pages]]
*political: for [[:Category:Political party disambiguation pages]]
*road: for [[:Category:ListsRoad ofdisambiguation roads sharing the same titlepages]]
*school: for [[:Category:Educational institution disambiguation pages]]
*surnameship: for [[:Category:SurnamesShip disambiguation pages]]
*surname: for [[:Category:Disambiguation pages with surname-holder lists]]
 
*cleanup: for [[:Category:Disambiguation pages in need of cleanup]]
Line 45 ⟶ 46:
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>