Template:Todocat: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Add notice for administrators, update description
m Testing another fix
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>__HIDDENCAT__
<includeonly>__HIDDENCAT__
{{Mbox|type=notice|text='''This is a maintenance category.''' Administrators: Please do not delete this category as empty! This category may be empty occasionally or even most of the time.}}
{{Mbox
[[Category:Todo|{{#sub:{{ROOTPAGENAME}}|5}}]]</includeonly><noinclude>
| type=notice
The '''todocat''' template is designed to be used on "todo" category pages. It marks the category as hidden, adds a notice for administrators and attributes the correct sort key for alphabetical listing in [[:Category:Todo]].
| text='''This is a maintenance category.'''
 
Administrators: Please do not delete this category as empty! This category may be empty occasionally or even most of the time.
}}
[[Category:Todo|{{#ifeq: {{#sub: {{ROOTPAGENAME}}|0|5}} | {{ROOTPAGENAME: Todo:}} | {{#sub: {{ROOTPAGENAME}}|5}} | {{ROOTPAGENAME}}}}]]</includeonly><noinclude>
{{documentation}}


{{doc}}
[[Category:Todo]]
[[Category:Todo]]
[[Category:Templates]]</noinclude>
[[Category:Templates]]
</noinclude>

Latest revision as of 01:43, 12 July 2026

Template documentation[view] [edit] [history] [purge]

The todocat template is designed to be used on maintenance (aka "todo") category pages. It marks the category as hidden, adds a notice for administrators, and attributes the correct sort key for alphabetical listing in Category:Todo.

Usage

Place at the top of a maintenance category (subcategories of Category:Todo). If the title follows the standard format "todo:something", then the sort key will be the page title without the "todo:" prefix; otherwise, the sort key will be the page title.