Template:Userbox/doc: Difference between revisions
Appearance
fixing template data |
m updating template data |
||
| Line 4: | Line 4: | ||
"params": { | "params": { | ||
"id-color": { | "id-color": { | ||
"description": "Hexcode for | "description": "Hexcode for the color of the smaller rectangle on the left", | ||
"default": "#fff" | "default": "#fff", | ||
"aliases": [ | |||
"icon-color", | |||
"square-color" | |||
], | |||
"label": "ID color" | |||
}, | }, | ||
" | "border-color": { | ||
"description": " | "description": "Hexcode for border color", | ||
"default": "#aaa", | |||
"aliases": [ | |||
"border" | |||
], | |||
"label": "Border color" | |||
}, | |||
"categories": { | |||
"description": "Wikilinks for categories, to auto-populate when using template (don't put Category:Userboxes here!)", | |||
"example": "[[Category:Class of 2026]]", | |||
"aliases": [ | |||
"category" | |||
], | |||
"label": "Categories" | |||
}, | |||
"description": { | |||
"aliases": [ | |||
"info" | |||
], | |||
"label": "Description", | |||
"description": "Sentence-long description on the right", | |||
"required": true | "required": true | ||
}, | }, | ||
"info-color": | "background-color": { | ||
"description": "Hexcode for | "aliases": [ | ||
"Info color", | |||
"info-color" | |||
], | |||
"label": "Background color", | |||
"description": "Hexcode for the background color", | |||
"default": "#eee" | "default": "#eee" | ||
}, | }, | ||
" | "ID": { | ||
"description": " | "aliases": [ | ||
"id", | |||
"icon" | |||
], | |||
"label": "ID", | |||
"description": "Handful of characters / small image to go in the square on the left.", | |||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "ID", | ||
" | "description", | ||
"id-color", | "id-color", | ||
" | "background-color", | ||
"border-color", | "border-color", | ||
"categories" | "categories" | ||
], | ], | ||
"description": "Meta-template | "description": "Meta-template, used to create userbox templates" | ||
} | } | ||
</templatedata> | </templatedata> | ||
Revision as of 17:27, 28 April 2026
Meta-template, used to create userbox templates
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | ID id icon | Handful of characters / small image to go in the square on the left. | Unknown | required |
| Description | description info | Sentence-long description on the right | Unknown | required |
| ID color | id-color icon-color square-color | Hexcode for the color of the smaller rectangle on the left
| Unknown | optional |
| Background color | background-color Info color info-color | Hexcode for the background color
| Unknown | optional |
| Border color | border-color border | Hexcode for border color
| Unknown | optional |
| Categories | categories category | Wikilinks for categories, to auto-populate when using template (don't put Category:Userboxes here!)
| Unknown | optional |
Example
{{Userbox
| id = '26
| info = This user is in the class of 2026.
| border-color = #C2637A
| id-color = #C2637A
| info-color = #fff
}}
| '26 | This user is in the class of 2026. |