Template:ValiCat

Category:Main message boxes
 See also category: InvaliCat.
Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:ValiCat/doc.

Usage


{{ValiCat |1= |2= }}

Template parameters

ParameterDescriptionDefaultStatus
1AdviceIf “+”, replaces second line (“All files contained herein should (…)”) with “Please do not add anything to this category manually. (linebreak) To categorize properly into its subcategories, use template Created with PAGENAME specifying the W3C-validity.”emptyoptional
2HideIf not empty, hides “All files contained herein should be checked with the W3C validator and then stored either in Valid SVG created with PAGENAME or Invalid SVG created with PAGENAME”emptyoptional
3TemplateReplaces PAGENAME as template nameemptyoptional
4Tail textText displayed after “specifying the W3C-validity”emptyoptional
typeMbox typeChanges Mbox type
content
for content issues, issue
delete
for deletion notices, serious
growth
for other “good” notices
honor
for honors such as featured image
issue
for larger issues
legal
for legal disclaimers such as Template:Trademark
license
for licenses
message
for informative messages only
move
for move requests
notice
for informative messages only
protection
for protection notices, message
query
for minor issues
serious
for serious notices
shit
for fun ... or for maintenance affairs
speedy
for speedy deletion notices
stop
for stop and other caution notices, such as frequent issues, serious
style
for cleanup, query
warning
for urgent notices, speedy
emptyoptional
imagerImage on the rightReplaces the standard image File
W3C_Icon.svg on the right. Must be formatted like [[File:W3C_Icon.svg|class=noviewer|48px]]
emptyoptional
styleStyleOverrides/augments default style of the whole message box.emptyoptional
<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

Category:Templates using TemplateData

For categories of the «Category:SVG created with ... templates» for «Category:W3C validation»

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Advice1

If “+”, adds this below the first line: “Please do not add anything to this category manually. (linebreak) To categorize properly into its subcategories, use template Created with PAGENAME specifying the W3C-validity.”

Lineoptional
Hide2

If not empty, hides “All files contained herein should be checked with the W3C validator and then stored either in Valid SVG created with PAGENAME or Invalid SVG created with PAGENAME”

Lineoptional
Template3

Replaces PAGENAME as template name

Lineoptional
Tail text4

Text displayed after “specifying the W3C-validity”

Stringoptional
Image on the rightimager

Replaces the standard image File:W3C_Icon.svg on the right. Must be formatted like [[File:W3C_Icon.svg|class=noviewer|48px]]

Stringoptional
Stylestyle

Overrides/augments default style of the whole message box.

Stringoptional
Mbox typetype

Changes Mbox type. content= for content issues, issue; delete= for deletion notices, serious; growth= for other "good" notices; honor= for honors such as featured image; issue= for larger issues; legal= for legal disclaimers such as Template:Trademark; license= for licenses; message= for informative messages only; move= for move requests; notice= for informative messages only; protection= for protection notices, message; query= for minor issues; serious= for serious notices; shit= for fun ... or for maintenance affairs; speedy= for speedy deletion notices; stop= for stop and other caution notices, such as frequent issues, serious; style= for cleanup, query; warning= for urgent notices, speedy

Suggested values
content delete growth honor issue legal license message move notice protection query serious shit speedy stop style warning
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

Relies on:
{{Mbox}}, {{C}}, {{Conj-or}}, {{Catseealso}}

Examples

Localization

Deutsch  English  +/−

This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:ValiCat/layout.

To add your language to the list of languages supported by this template, please copy the code of Template:ValiCat/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.


Category:Templates using Autotranslate for internationalisation
Category:Main message boxes Category:Templates using Autotranslate for internationalisation Category:Templates using TemplateData