Template:Disambiguation/cat/doc: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (update transclusion count)
(update)
Line 1: Line 1:
{{documentation subpage}}
{{Documentation subpage}}
{{high-risk| 150,000+ }}
{{high-risk| 165,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|Disambiguation/cat}} sub-template.
This is the {{tl|Disambiguation/cat}} sub-template.
Line 13: Line 13:
{{tl|Dabcat}} redirects here, and is used by {{tl|Disambiguation cleanup}}.
{{tl|Dabcat}} redirects here, and is used by {{tl|Disambiguation cleanup}}.


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


Line 20: Line 20:
*airport: for [[:Category:Airport disambiguation]]
*airport: for [[:Category:Airport disambiguation]]
*callsign: for [[:Category:Broadcast call sign 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]]
*chinese: for [[:Category:Disambiguation pages with Chinese character titles]]
*church: for [[:Category:Church building disambiguation pages]]
*church: for [[:Category:Church building disambiguation pages]]
Line 44: Line 45:
This list is usually not complete, since we add new categories to this template every now and then.
This list is usually not complete, since we add new categories to this template every now and then.


=== Error reporting ===
== 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.
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.


<includeonly>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Wikipedia metatemplates]]
[[Category:Wikipedia metatemplates]]
}}</includeonly>

</includeonly>

Revision as of 21:36, 7 December 2015

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.