Jump to content

Template:Global maintenance category

From Wikimedia Commons, the free media repository
Template documentation[ view · edit · history · purge ]

This template is for global common categories. For local (language-specific) content use {{Local maintenance category}} (translation may be needed). These two templates were created to replace {{Category scheme Commons maintenance}}.

The template automatically sets the following categories: Maintenance categories and Hidden categories (optional)

Usage

{{Global maintenance category |shortcut= |hidden= |purge= |norandom= |toc= |backlog= |admin= }}

Template parameters

ParameterDescriptionDefaultStatus
shortcut
1
ShortcutSHORTCUT: displays the Commons:Shortcut for the category using “{{Shortcut text}}: SHORTCUT”emptyoptional
hiddenhidden categoryn: prevents from transcluding template {{Hiddencat}}emptyoptional
purgePurge cache linkANYVALUE: template {{purge}} is transcludedemptyoptional
norandomNo random buttonANYVALUE: prevents transcluding of template {{RandomInCategory}}emptyoptional
tocTable of contentsyes: {{CatAutoTOC}} will be transcluded; TEMPLATENAME: if the template exists, it is transcluded as {{TEMPLATENAME}}; ANYVALUE: is simply displayedemptyoptional
backlogbacklogANYVALUE: template {{Backlog}} with parameter admin is transcluded; NUMERICVALUE: transferred to template {{Backlog}} to set threshold and the categorizationemptyoptional
adminbacklog categorizationANYVALLUE: template {{Backlog}} categorizes into Category:Commons admin backlog instead of Category:Commons backlogemptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateData • Commons-specific information

This is for *global* common categories. For local (language-specific) content use {{local maintenance category}} (translation may be needed).

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
backlog categorizationadmin

'''ANYVALLUE''': template {{Backlog}} categorizes into ''Category:Commons admin backlog'' instead of ''Category:Commons backlog''

Suggested values
yes
Stringoptional
backlogbacklog

'''ANYVALUE''': template {{Backlog}} with parameter ''admin'' is transcluded; '''NUMERICVALUE''': transferred to template {{Backlog}} to set threshold and the categorization

Stringoptional
hidden categoryhidden

'''n''': prevents from transcluding template {{Hiddencat}}

Suggested values
n
Lineoptional
No random buttonnorandom

'''ANYVALUE''': prevents transcluding of template {{RandomInCategory}}

Suggested values
yes
Stringoptional
Purge cache linkpurge

'''ANYVALUE''': template {{purge}} is transcluded

Lineoptional
Shortcutshortcut 1

'''SHORTCUT''': displays the [[Commons:Shortcut]] for the category using “{{Shortcut text}}: SHORTCUT”

Page nameoptional
Table of contentstoc

'''yes''': {{CatAutoTOC}} will be transcluded; '''TEMPLATENAME''': if the template exists, it is transcluded as {{TEMPLATENAME}}; '''ANYVALUE''': is simply displayed

Stringoptional

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Relies on:
{{Hiddencat}}, {{Shortcut text}}, {{Purge}} and {{Mbox}}

Examples

{{Global maintenance category|COM:COM|hidden=yes|purge=yes|norandom=|toc=yes|backlog=13|admin=yes}}

renders as:


{{Global maintenance category|COM:COM|hidden=n|purge=|norandom=yes|toc=agree|backlog=yes|admin=}}

renders as:

 Agree

{{Global maintenance category|toc=CategoryTOC|backlog=13}}

renders as:

Localization

العربية ∙ Boarisch ∙ беларуская (тарашкевіца) ∙ বাংলা ∙ català ∙ Deutsch ∙ Ελληνικά ∙ English ∙ español ∙ suomi ∙ français ∙ galego ∙ हिन्दी ∙ hrvatski ∙ magyar ∙ Bahasa Indonesia ∙ italiano ∙ 日本語 ∙ 한국어 ∙ latviešu ∙ македонски ∙ മലയാളം ∙ Bahasa Melayu ∙ မြန်မာဘာသာ ∙ Nederlands ∙ polski ∙ português ∙ português do Brasil ∙ русский ∙ slovenščina ∙ svenska ∙ Türkçe ∙ українська ∙ Tiếng Việt ∙ 中文

This template makes use of {{Autotranslate}} and the translate extension.