Template:Userbox-level

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template 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.


Wikipedia's help about TemplateDataCommons-specific information

Template parameters[Edit template data]

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: the User namespace

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

Relies on:
{{Userbox}}

Example and selftest

{{userbox-level
| level        = 3
| id           = HTML
| id-s         = 9
| info         = This user is an advanced HTML user.
| usercategory = User html-3
}}
HTML-3This user is an advanced HTML user.