User:Willscrlt/meta/cat
From Meta, a Wikimedia project coordination wiki
User:Willscrlt/meta/cat automatically inserts category links for each project to which Willscrlt contributes. It uses parser functions, variables, and other advanced template tricks to dynamically determine the current project and the standard categories that should be used on that project.
As-is, this template probably is not particularly useful to other people, but the logic used to determine the current project and which categories to use might be quite useful to others as a starting point for developing other templates. You are welcome to copy this template and adapt it however you like, but please do not edit this template, because it could break many other templates.
Contents |
[edit] Usage
Copy the following text into the bottom of a page above any interwikis:
<!-- Transclude my standard categories or override them -->
{{{{ns:user}}:Willscrlt/meta/cat}}
<!-- Enter any additional categories below -->
[edit] Attributes
- CatOverride
- Omit '
CatOverride' or set it to 'N' (or blank) to display my default categories - Set '
CatOverride' to 'Y' to suppress all default categories - Set '
CatOverride' to anything else to override default categories with entered text - Example:
{{{{ns:user}}:Willscrlt/meta/cat|CatOverride=[[Category:Examples|*]]}}
- Type
- Set '
Type' to 'T' or 'Template' for templates- Categorizes templates under Category:Templates by User:Willscrlt if it exists locally
- Otherwise categorizes templates under Category:User:Willscrlt if it exists locally
- Set '
Type' to 'U' or 'User' for ordinary user pages- Categorizes pages under Category:User:Willscrlt if it exists locally
- This is the default if '
Type' is omitted, blank, or unrecognized
- Example:
{{{{ns:user}}:Willscrlt/meta/cat|Type=Template}}
[edit] See also
[edit] Version information
v1.1.0 (23:23, 21 December 2008 (UTC)) — This is the most current version available.
This template is used on multiple WikiMedia Foundation Projects. Unless it is horribly broken and causing major disruptions, please do not edit this template. The master template is located at m:User:Willscrlt/meta/cat and is manually distributed to other projects by its creator, Willscrlt (Talk).
- History
- v1.1.x Added the '
Type' attribute - v1.0.x Initial version