Difference between revisions of "Template:Disambiguation/cat"

From LIMSWiki
Jump to navigationJump to search
(Created template as necessary for disambigs.)
 
m (Corrected)
Line 78: Line 78:
| genus      = [[Category:Genus disambiguation pages]]
| genus      = [[Category:Genus disambiguation pages]]
|            = <!-- No value fed, is also valid input -->
|            = <!-- No value fed, is also valid input -->
| #default  = <!-- <div style="text-align: center;">This disambiguation box is using an invalid category parameter "{{{1|}}}" and needs fixing. <small>([[:Category:Wikipedia disambig or set index box parameter needs fixing|learn more]])</small></div> -->[[Category:Wikipedia disambig or set index box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| #default  = <!-- <div style="text-align: center;">This disambiguation box is using an invalid category parameter "{{{1|}}}" and needs fixing. <small>([[:Category:LIMSwiki disambig or set index box parameter needs fixing|learn more]])</small></div> -->[[Category:LIMSwiki disambig or set index box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
}}<noinclude>



Revision as of 22:33, 2 March 2015


[edit] [purge] Template documentation

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:LIMSwiki 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.