Template:Userbox: Difference between revisions
Appearance
color variables |
border-color; categories |
||
| Line 1: | Line 1: | ||
<table style="border:1px solid #aaa; margin:2px; width:238px; height:50px;"> | <table style="border:1px solid {{{border-color|#aaa}}}; margin:2px; width:238px; height:50px;"> | ||
<tr> | <tr> | ||
<td style="background:{{{id-color|#eee}}}; width:46px; text-align:center; padding:2px; font-size:1.2em;">'''{{{id|}}}'''</td> | <td style="background:{{{id-color|#eee}}}; width:46px; text-align:center; padding:2px; font-size:1.2em;">'''{{{id|}}}'''</td> | ||
<td style="background:{{{info-color|#fff}}}; font-size:0.85em; padding:2px 5px; line-height:1.15;">{{{info|}}}</td> | <td style="background:{{{info-color|#fff}}}; font-size:0.85em; padding:2px 5px; line-height:1.15;">{{{info|}}}</td> | ||
</tr> | </tr>{{{categories}}} | ||
</table><noinclude>{{Documentation}}</noinclude> | </table><noinclude>{{Documentation}}</noinclude> | ||
Revision as of 21:20, 9 April 2026
{{{categories}}}
| ' |
Documentation[edit documentation]
For more general help using templates, see VassarWiki:Templates.
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 |
| ID text color | id-text-color | no description | Unknown | optional |
| Info text color | info-text-color | no description | Unknown | optional |
Example
{{Userbox
| id = '26
| info = This user is in the class of 2026.
| border-color = #C2637A
| id-color = #C2637A
}}
{{{categories}}}
| '26 | This user is in the class of 2026. |