Template:Disambiguation/cat/doc: Difference between revisions
(Updating the doc since this template has been moved. And adding {{high-risk| 100,000+}}.) |
(And here's the reason why this template should not have been moved, and why it needs documentation: Added that this template is also called from {{disambig-cleanup}}.) |
||
Line 5: | Line 5: | ||
This is the {{tl|disambig/cat}} sub-template. |
This is the {{tl|disambig/cat}} sub-template. |
||
Do not use this template directly, use {{tl|disambig}} instead. |
Do not use this template directly, use {{tl|disambig}} or {{tl|disambig-cleanup}} instead. |
||
This template is called from {{tlf|disambig}}. It handles some of the categorization logic for |
This template is called from {{tlf|disambig}} and {{tlf|disambig-cleanup}}. It handles some of the categorization logic for those templates. |
||
For more documentation see {{tl|disambig}}. |
For more documentation see {{tl|disambig}} and {{tl|disambig-cleanup}}. |
||
=== Parameters === |
=== Parameters === |
||
Line 30: | Line 30: | ||
*callsign: for [[:Category:Broadcast call sign disambiguation pages]] |
*callsign: for [[:Category:Broadcast call sign disambiguation pages]] |
||
This list is |
This list is usually not complete, since we add new categories to this template every now and then. |
||
=== Error reporting === |
=== Error reporting === |
Revision as of 20:01, 21 November 2009
Template:Strong for Template:Terminate sentence It contains usage information, categories and other content that is not part of the original template page. |
This template is used on 100,000+ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This is the {{disambig/cat}} sub-template.
Do not use this template directly, use {{disambig}} or {{disambig-cleanup}} instead.
This template is called from {{disambig}} and {{disambig-cleanup}}. It handles some of the categorization logic for those templates.
For more documentation see {{disambig}} and {{disambig-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):
- hn: for Category:Human name disambiguation pages
- surname: for Category:Surnames
- given name: Category:Given names
- geo: for Category:Place name disambiguation pages
- airport: for Category:Airport disambiguation
- 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 names
- callsign: for Category:Broadcast call sign disambiguation pages
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 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.