Jump to content

Template:Userbox: Difference between revisions

From VassarWiki
1.1 line height
Documentation template
Line 2: Line 2:
<tr>
<tr>
<td style="background:{{{id-c|#eee}}}; width:46px; text-align:center; padding:2px; font-size:1.2em;">'''{{{id|}}}'''</td>
<td style="background:{{{id-c|#eee}}}; width:46px; text-align:center; padding:2px; font-size:1.2em;">'''{{{id|}}}'''</td>
<td style="background:{{{info-c|#fff}}}; font-size:0.85em; padding:2px 5px; line-height:1.1;">{{{info|}}}</td>
<td style="background:{{{info-c|#fff}}}; font-size:0.85em; padding:2px 5px; line-height:1.15;">{{{info|}}}</td>
</tr>
</tr>
</table><noinclude>{{Userbox/doc}}</noinclude>
</table><noinclude>{{Documentation}}</noinclude>

Revision as of 19:36, 9 April 2026

'

Documentation[edit documentation]

For more general help using templates, see VassarWiki:Templates.

Meta-template, used to create userbox templates

Template parameters[Edit template data]

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.