Template:Draft categories
Jump to navigation
Jump to search
This page will be placed in the following categories if it is moved to the Article namespace.
Categories:| This template uses Lua: |
This template can be used when non-article pages like drafts and user pages have 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
Wrap categories in this code:
{{Draft categories|1=
...
}}
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.
Example
{{Draft categories|1=
[[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:
This page will be placed in the following categories if it is moved to the Article namespace.
Categories:| The above documentation is transcluded from Template:Draft categories/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |