Difference between revisions of "Template:Maintenance category"
(Creation (as this is needed)) |
m (Updating) |
||
Line 10: | Line 10: | ||
* These categories also serve to aggregate members of several lists or sub-categories into a larger, more efficient list (''discriminated by classifications'').</div>{{#ifeq:{{{tracking_category|}}}|no||{{Category other|{{{category|[[Category:Tracking categories]]}}}}}}}|{{#if:{{Yesno|{{{hidden|}}}}}|__HIDDENCAT__ | * These categories also serve to aggregate members of several lists or sub-categories into a larger, more efficient list (''discriminated by classifications'').</div>{{#ifeq:{{{tracking_category|}}}|no||{{Category other|{{{category|[[Category:Tracking categories]]}}}}}}}|{{#if:{{Yesno|{{{hidden|}}}}}|__HIDDENCAT__ | ||
<div>This is a '''[[:Category:Hidden categories|hidden category]]'''. It is not shown on its member pages, unless the corresponding user preference (appearance → show hidden categories) is set.</div>}}}}{{#if:{{Yesno|{{{empty|}}}}}|{{Possibly empty category|hide=true}} | <div>This is a '''[[:Category:Hidden categories|hidden category]]'''. It is not shown on its member pages, unless the corresponding user preference (appearance → show hidden categories) is set.</div>}}}}{{#if:{{Yesno|{{{empty|}}}}}|{{Possibly empty category|hide=true}} | ||
− | <div><span class="sysop-show" style="font-size:15px;">'''Administrators: Please do not delete this category even if it is empty!'''</span> This category may be empty occasionally or even most of the time. {{{empty_text|}}}</div> | + | <div><span class="sysop-show" style="font-size:15px;">'''Administrators: Please do not delete this category even if it is empty!'''</span> This category may be empty occasionally or even most of the time. {{{empty_text|}}}</div>}} |
|imageright={{#if:{{{shortcut|{{{shortcut1|}}}}}}|{{Shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} | |imageright={{#if:{{{shortcut|{{{shortcut1|}}}}}}|{{Shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} | ||
}}<includeonly>{{#ifeq: {{lc:{{{nocat|false}}}}}|false|{{Single namespace|category}}{{#if:{{{desc|}}}{{{1|}}}|<br /><div style="text-align: left;">{{{alt|{{{ALTTEXT|'''Description''':}}}}}} {{{desc|{{{1|}}}}}}</div>}}|<!-- Category suppressed -->}}</includeonly><noinclude>{{Documentation}}<!-- Please add categories to the /doc sub-page, not here. --></noinclude> | }}<includeonly>{{#ifeq: {{lc:{{{nocat|false}}}}}|false|{{Single namespace|category}}{{#if:{{{desc|}}}{{{1|}}}|<br /><div style="text-align: left;">{{{alt|{{{ALTTEXT|'''Description''':}}}}}} {{{desc|{{{1|}}}}}}</div>}}|<!-- Category suppressed -->}}</includeonly><noinclude>{{Documentation}}<!-- Please add categories to the /doc sub-page, not here. --></noinclude> |
Latest revision as of 17:08, 9 March 2023
This is a maintenance category, used for the maintenance of BTW. It is not part of the encyclopedia and contains non-article pages, or groups articles by status rather than subject. Do not include this category in content categories. |
Usage[edit]
This template should be placed at the top of categories used in the maintenance of BTW, rather than as part of the wiki — for example, at the top of Category:BattleTechWiki_administration.
Parameters[edit]
The following descriptions assume the template is transcluded on a page in the Category namespace.
|container=true/yes | Causes the template to add the page (the category) to Category:Container categories and include a {{Container category}} style message. To inhibit self-categorisation, set |container_category=no . |
|tracking=true/yes | Causes the template to add the page (the category) to Category:Tracking categories and include a {{Tracking category}} style message. To inhibit self-categorisation, set |tracking_category=no . |
|purpose= | To add a short explanation of the tracking category after the message, use |purpose=Short explanation. The |tracking= parameter must be set to true or yes to display. |
|desc= | Text supplied will be placed below the template with a boldfaced header of "Description:". The word "Description" can be replaced by something else, using |alt=Something else . |
|hidden=true/yes | Causes the template to hide the page (the category), add it to Category:Hidden categories and to include a {{Hidden category}} style message. Using |tracking=false/no or |tracking=true/yes , in addition, will give slightly different messages in the box. |
|empty=true/yes | Includes a {{Possibly empty category}} style message. In addition, to add a short explanation of the empty category after the message, use |empty_text=Short explanation. |
|shortcut1= | Enables a shortcut to the category to be displayed by the template. Multiple shortcuts are supported: from |shortcut1= , up to |shortcut5= . |
Examples[edit]
Code
{{Maintenance category |shortcut=BTW:CN |hidden=true |tracking=false |purpose=This category tracks pages tagged with {{tl|Citation needed}}.<!-- This text will not display since "tracking" is set to "false"--> |desc=Category for articles (and other pages, such as portals and mainspace-intended templates) tagged as needing or more citations for verification, using the {{tlx|Citation needed}} template. Does not include discussion pages tagged with {{tlx|Talkfact}}. }}
This is a maintenance category, used for the maintenance of BTW. It is not part of the encyclopedia and contains non-article pages, or groups articles by status rather than subject. Do not include this category in content categories.
This is a hidden category. It is not shown on its member pages, unless the corresponding user preference (appearance → show hidden categories) is set. |
Description: Category for articles (and other pages, such as portals and mainspace-intended templates) tagged as needing or more citations for verification, using the
{{Citation needed}}
template.