Template:Userbox-level

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
{{{id}}}{{{info}}}
Documentationview · edit · history · purge ]
This documentation is transcluded from Template:Userbox-level/doc.

No description yet available.

Usage

{{Userbox-level
 |level =
 |id =
 |info =
 |usercategory =
 |nocat =
}}

Template parameters

<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.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
idid

id image or text

Linerequired
id-opid-op

id other CSS parameters

Stringoptional
id-sid-s

id text size in points

Default
14
Numberoptional
infoinfo

info text or image

Contentrequired
info-ainfo-a

info horizontal alignment left/center/right/justify

Default
left
Stringoptional
info-lhinfo-lh

info line height

Default
1.25em
Stringoptional
info-opinfo-op

info other CSS parameters

Stringoptional
info-sinfo-s

info text size in points

Default
8
Numberoptional
Levellevel

Number, “N”, or “x”

Stringrequired
Level Line Break?level-br

Use <br/> instead of “-” in the ID field

Booleanoptional
No Category?nocat

block page category declarations (see WP:NOCAT)

Booleanoptional
User Category 1usercategory

Stringsuggested
User Category 2usercategory2

Stringoptional
User Category 3usercategory3

Stringoptional

Additional information

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

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

Relies on:
{{Userbox}}