Template:Userbox-level/doc

From Kerbal Space Program Wiki
< Template:Userbox-level
Revision as of 12:36, 6 June 2015 by Murph (talk | contribs) (Import from Wikipedia (CC BY-SA license))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Usage

{{userbox-level
| level   = 0|1|2|3|4|5 (optional)
| id      = id text or image
| id-s    = id text size (optional)
| id-op   = id other parameter (CSS) (optional)
| info    = info text
| info-s  = info text size (optional)
| info-lh = info text line CSS height (optional)
| info-op = info other parameter (CSS) (optional)
| usercategory  = user category (optional)
| usercategory2 = user category (optional)
}}

Also note that the 0, 3 & 5 levels have a choice of two different colour schemes which can be specified by using the a or b suffix, for example level = 3b.

Examples

{{userbox-level
| id    = awk
| info  = This user is a '''AWK''' user. 
}}
awk This user is a AWK user.
{{userbox-level
| level = 1
| id    = awk
| id-s  = 10
| info  = This user is a '''beginning AWK''' programmer.
}}
awk-1 This user is a beginning AWK programmer.
{{userbox-level
| level = 2
| id    = awk
| id-s  = 10
| info  = This user is a '''intermediate AWK''' programmer.
}}
awk-2 This user is a intermediate AWK programmer.
{{userbox-level
| level = 3
| id    = awk
| id-s  = 10
| info  = This user is a '''advanced AWK''' programmer.
}}
awk-3 This user is a advanced AWK programmer.
{{userbox-level
| level = 3b
| id    = awk
| id-s  = 10
| info  = This user is a '''advanced AWK''' programmer.
}}
awk-3 This user is a advanced AWK programmer.
{{userbox-level
| level = 4
| id    = awk
| id-s  = 10
| info  = This user is a '''expert AWK''' programmer.
}}
awk-4 This user is a expert AWK programmer.
{{userbox-level
| level = 5
| id    = awk
| id-s  = 10
| info  = This user is a '''expert AWK''' programmer.
}}
awk-5 This user is a expert AWK programmer.
{{userbox-level
| level = 5b
| id    = awk
| id-s  = 10
| info  = This user is a '''expert AWK''' programmer.
}}
awk-5 This user is a expert AWK programmer.


Template Data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Userbox-level

<TemplateData>{ "description": "This template can be used to quickly create a userbox for display on a user's user page without having to know HTML or Wikitable syntax.", "params": {

 "level": {
   "label": "level",
   "description": "0|1|2|3|4|5",
   "type": "string",
   "default": "14",
   "required": false
 },"level-br": {
   "label": "level-br",
   "description": "",
   "type": "string",
   "default": "14",
   "required": false
 },"id": {
   "label": "id",
   "description": "id text or image",
   "type": "string",
   "default": "14",
   "required": false
 },"id-s": {
   "label": "id-s",
   "description": "id text size in points",
   "type": "string",
   "default": "14",
   "required": false
 },"info": {
   "label": "info",
   "description": "info text and/or image",
   "type": "string",
   "default": "",
   "required": false
 },"info-lh": {
   "label": "info-lh",
   "description": "info text line CSS height",
   "type": "string",
   "default": "1.25em",
   "required": false
 },"info-op": {
   "label": "info-op",
   "description": "info other CSS parameters",
   "type": "string",
   "default": "",
   "required": false
 },"info-s": {
   "label": "info-s",
   "description": "info text size in points",
   "type": "string",
   "default": "8",
   "required": false
 },"nocat": {
   "label": "nocat",
   "description": "block page category declarations",
   "type": "string",
   "default": "false",
   "required": false
 },"usercategory": {
   "label": "usercategory",
   "description": "user category (optional)",
   "type": "string",
   "default": "",
   "required": false
 },"usercategory2": {
   "label": "usercategory2",
   "description": "user category (optional)",
   "type": "string",
   "default": "",
   "required": false
 },"usercategory3": {
   "label": "usercategory3",
   "description": "user category (optional)",
   "type": "string",
   "default": "",
   "required": false
 }

}}</TemplateData>

See also