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
m Reverted edits by 189.40.69.50 (talk) to last revision by Tacsipacsi
add TemplateData
Line 4: Line 4:
|1label-en=shortcut
|1label-en=shortcut
|1d-en=shortcut=''pagename'' - adds a shortcut box. Leave out the brackets.
|1d-en=shortcut=''pagename'' - adds a shortcut box. Leave out the brackets.
  |1d-td-en=Adds a shortcut box. Leave out the brackets.
  |1d-ja=shortcut=''ページ名'' - ショートカット・ボックスを追加します。 Leave out the brackets.
  |1d-ja=shortcut=''ページ名'' - ショートカット・ボックスを追加します。 Leave out the brackets.
  |1d-td-ja=ショートカット・ボックスを追加します。 Leave out the brackets.
|1type=wiki-page-name
|1def=
|1def=
|1stat=optional
|1stat=optional
Line 10: Line 13:
|2=hidden
|2=hidden
|2label-en=hidden category
|2label-en=hidden category
|2d-en=hidden=n - prevents it from adding {{x|HIDDENCAT}}.
|2d-en=<code>hidden=n</code> prevents it from adding {{x|HIDDENCAT}}.
  |2d-ja=hidden=n - {{x|HIDDENCAT}}を追加しません。
  |2d-td-en=“n” prevents it from adding <nowiki>__HIDDENCAT__</nowiki>.
  |2d-ja=<code>hidden=n</code> {{x|HIDDENCAT}}を追加しません。
  |2d-td-ja=「n」<nowiki>__HIDDENCAT__</nowiki>を追加しません。
|2type=line
|2stat=optional
|2stat=optional


|3=purge
|3=purge
|3label-en=purge link
|3label-en=purge link
|3d-en=adds {{tl|purge}} if provided
|3d-en=Adds {{tl|purge}} if provided
  |3d-td-en=Adds <nowiki>{{purge}}</nowiki> if provided
|3type=line
|3stat=optional
|3stat=optional


|name=Global maintenance category
|name=Global maintenance category
|desc-en='''This is for ''global'' common categories. For local (language-specific) content use {{tl|local maintenance category}} (translation may be needed).''' These two templates were created to replace {{tl|Category scheme Commons maintenance}}.
|desc-en='''This is for ''global'' common categories. For local (language-specific) content use {{tl|local maintenance category}} (translation may be needed).''' These two templates were created to replace {{tl|Category scheme Commons maintenance}}.
  |desc-td-en=This is for *global* common categories. For local (language-specific) content use <nowiki>{{local maintenance category}}</nowiki> (translation may be needed).
  |desc-ja='''これは''グローバル用''のコモンズ・カテゴリです。各言語のローカル・コンテンツには、{{tl|local maintenance category}} を利用してください。''' この2つのテンプレートは旧式{{tl|Category scheme Commons maintenance}}の改訂として新しく作成されました。
  |desc-ja='''これは''グローバル用''のコモンズ・カテゴリです。各言語のローカル・コンテンツには、{{tl|local maintenance category}} を利用してください。''' この2つのテンプレートは旧式{{tl|Category scheme Commons maintenance}}の改訂として新しく作成されました。
  |desc-td-ja=これはグローバル用のコモンズ・カテゴリです。各言語のローカル・コンテンツには、<nowiki>{{local maintenance category}}</nowiki> を利用してください。
|namespace=category
|namespace=category
|usergroup=all
|usergroup=all
Line 39: Line 49:
|shorthand=
|shorthand=
|relieson=
|relieson=
|useTemplateData=1
}}<includeonly>
}}<includeonly>
[[Category:Internationalised category header templates|{{PAGENAME}}]]
[[Category:Internationalised category header templates|{{PAGENAME}}]]
</includeonly>
</includeonly>

Revision as of 14:33, 7 August 2020

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:Hidden categories, via the magic word __HIDDENCAT__ (unless hidden=n)

Usage

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

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
<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
purge linkpurge

Adds {{purge}} if provided

Lineoptional
shortcutshortcut 1

Adds a shortcut box. Leave out the brackets.

Page nameoptional

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.