Jump to content

Template:Userbox/doc: Difference between revisions

From VassarWiki
m updating template data
template data
 
Line 53: Line 53:
"description": "Handful of characters / small image to go in the square on the left.",
"description": "Handful of characters / small image to go in the square on the left.",
"required": true
"required": true
},
"id-text-color": {
"label": "ID text color"
},
"info-text-color": {
"label": "Info text color"
}
}
},
},
Line 61: Line 67:
"background-color",
"background-color",
"border-color",
"border-color",
"categories"
"categories",
"id-text-color",
"info-text-color"
],
],
"description": "Meta-template, used to create userbox templates"
"description": "Meta-template, used to create userbox templates"
Line 75: Line 83:
| border-color = #C2637A
| border-color = #C2637A
| id-color    = #C2637A
| id-color    = #C2637A
| info-color  = #fff
}}
}}
</pre>
</pre>
Line 83: Line 90:
| border-color = #C2637A
| border-color = #C2637A
| id-color    = #C2637A
| id-color    = #C2637A
| info-color  = #fff
}}
}}

Latest revision as of 01:33, 4 May 2026

Meta-template, used to create userbox templates

Template parameters

ParameterDescriptionTypeStatus
IDID id icon

Handful of characters / small image to go in the square on the left.

Unknownrequired
Descriptiondescription info

Sentence-long description on the right

Unknownrequired
ID colorid-color icon-color square-color

Hexcode for the color of the smaller rectangle on the left

Default
#fff
Unknownoptional
Background colorbackground-color Info color info-color

Hexcode for the background color

Default
#eee
Unknownoptional
Border colorborder-color border

Hexcode for border color

Default
#aaa
Unknownoptional
Categoriescategories category

Wikilinks for categories, to auto-populate when using template (don't put Category:Userboxes here!)

Example
[[Category:Class of 2026]]
Unknownoptional
ID text colorid-text-color

no description

Unknownoptional
Info text colorinfo-text-color

no description

Unknownoptional

Example

{{Userbox
| id       = '26
| info     = This user is in the class of 2026.
| border-color = #C2637A
| id-color     = #C2637A
}}
'26 This user is in the class of 2026.