Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Global maintenance category/doc: Difference between revisions

Template page
expanded
documenting new parameter
Line 31: Line 31:
|4type=string
|4type=string
|4stat=optional
|4stat=optional
|5=toc
|5label-en=table of contents
|5d-en=if set to {{Var|yes}}, will transclude {{T|CatAutoTOC|incl=3}}; value can be set to any template name or include a template for display
|5d-td-en=if set to yes, will transclude {{T|CatAutoTOC|incl=2|link=no}}


|name=Global maintenance category
|name=Global maintenance category

Revision as of 20:50, 28 July 2026

This 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: Category:Maintenance categories Category:Hidden categories, via {{Hiddencat}} (unless hidden=n)

Usage

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

Template parameters

ParameterDescriptionDefaultStatus
shortcut
1
shortcutshortcut=pagename - adds a shortcut box. Leave out the brackets.emptyoptional
hiddenhidden categoryhidden=n prevents it from adding {{Hiddencat}}.emptyoptional
purgepurge linkAdds {{Purge}} if providedemptyoptional
norandomflag to suppress random in category buttonemptyoptional
toctable of contentsif set to yes, will transclude {{CatAutoTOC}}; value can be set to any template name or include a template for displayemptyoptional
<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 TemplateDataCommons-specific information

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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
hidden categoryhidden

“n” prevents it from adding {{Hiddencat}}.

Lineoptional
norandom

flag to suppress random in category button

Stringoptional
purge linkpurge

Adds {{purge}} if provided

Lineoptional
shortcutshortcut 1

Adds a shortcut box. Leave out the brackets.

Page nameoptional
table of contentstoc

if set to yes, will transclude &#123;&#123;CatAutoTOC&#125;&#125;

Unknownoptional

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

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.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.