• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Draft categories

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
This page will be placed in the following categories if it is moved to the article namespace.
Categories:
    Template documentation[view] [edit] [history] [purge]
    This template uses Lua:
    • Module:String

    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.

    Contents

    • 1 Usage
    • 2 Tracking category
    • 3 Example
    • 4 TemplateData
    • 5 Notes

    Usage

    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

    The category Category:Articles using draft categories ( 0 ) tracks pages that are using the template in the main namespace. This template should be removed from those articles.

    Example

    {{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:

    This page will be placed in the following categories if it is moved to the article namespace.
    Categories:
    • Star Wars characters
    • Star Wars
    • Star Wars lists
    • Lists of Disney characters
    • Lists of fictional military personnel

    TemplateData

    This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

    TemplateData for Draft categories

    Stores and displays article categories in drafts without adding them to the category

    Template parameters

    This template prefers block formatting of parameters.

    ParameterDescriptionTypeStatus
    Categories1

    no description

    Example
    [[Category:Example 1]]
    Contentrequired

    Notes

    User:Tol/Template/Used by TolBot

    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.
    Add categories to the /doc subpage. Subpages of this template.
    Retrieved from "https://moasspedia.org/w/index.php?title=Template:Draft_categories&oldid=14813"
    Categories:
    • Templates based on the String Lua module
    • Draft namespace templates
    • Wikipedia categorization
    • Templates using TemplateData
    Last edited on 20 October 2021, at 14:49

    MOASSpedia

    Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
    • This page was last edited on 20 October 2021, at 14:49.
    • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
    • Privacy policy
    • About MOASSpedia
    • Disclaimers
    • Desktop