Template:Draft categories
![]() | This template is used onmany pagesand changes may be widely noticed. Test changes in the template's/sandboxor/testcasessubpages, or in your ownuser subpage.Consider discussing changes on thetalk pagebefore changing this template. |
![]() | This template usesLua: |
This template can be used when non-article pages like drafts anduser pageshave categories meant for articles. The categories will be displayed but the page will not be added to the categories. If the page is moved to mainspace then the categories will automatically work as normal but the template should be removed.
Usage
[change source]Wrap categories in this code:
{{Draft categories|
...
}}
Sort keys and leading colons are allowed in the categories. Only use this template around a list of categories and not around a whole page or transclusion. {{Suppress categories}} can be used for that.
Tracking category
[change source]The categoryCategory:Articles using draft categories( 3 )tracks pages that are using the template in themain namespace.This template should be removed from those articles.
Example
[change source]{{Draft categories|
[[Category:Star Wars characters|]]
[[Category:Star Wars]]
[[Category:Star Wars lists|Characters]]
[[:Category:Lists of Disney characters]]
[[:Category:Lists of fictional military personnel|Star Wars]]
}}
The output looks similar to the real display of categories on normal pages. The above produces:
TemplateData
[change source]TemplateData for Draft categories
Stores and displays article categories in drafts without adding them to the category
Parameter | Description | Type | Status | |
---|---|---|---|---|
Categories | 1 | no description
| Content | required |
Notes
[change source]{{:en:User:Tol/Template/Used by TolBot|task=4}}