Template:Userbox: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{|class="userbox" style="width:250px;display:inline-table;border-collapse:separate!important;float:{{{float|none}}};background:{{{bg color|#276caf}}};border:1px solid {{{border color|#0a00ff}}}" cellpadding="0" cellspacing="0" | <includeonly>{|class="userbox" style="width:250px;height:50px;display:inline-table;border-collapse:separate!important;float:{{{float|none}}};background:{{{bg color|#276caf}}};border:1px solid {{{border color|#0a00ff}}}" cellpadding="0" cellspacing="0" | ||
|style="width:45px;height:45px;background:{{{image bg color|#1a3170}}} | |style="width:45px;height:45px;background:{{{image bg color|#1a3170}}};border:2px solid {{{bg color|#276caf}}}"|[[File:{{{1|BTD6 achievement HiddenIcon.png}}}|45x45px|link=]] | ||
|style="font-size:80%;padding:0 2px;line-height:1.25em;color:{{{text color|#000000}}}"|{{{2|This user is using the default userbox for some unfathomable reason.}}} | |style="font-size:80%;padding:0 2px;line-height:1.25em;background:none;border:none;color:{{{text color|#000000}}}"|{{{2|This user is using the default userbox for some unfathomable reason.}}} | ||
|}</includeonly><noinclude>{{/doc}}</noinclude> | |}</includeonly><noinclude>{{/doc}}</noinclude> | ||
Latest revision as of 14:10, 6 November 2024
Customizable rectangles to display on your userpage. Colors can be specified with a hexadecimal code (must include the "#") or the name of a CSS-supported color (e.g. "pink" or "mauve"). Please avoid using variables for colors (e.g. "var(--bg-primary)"), since userboxes are designed to be theme-agnostic.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | 1 | The image to display in the box.
| File | required |
| Text | 2 | The text to display in the userbox.
| String | required |
| Background color | bg color | The primary background color of the userbox.
| String | optional |
| Image background color | image bg color | The color of the background behind the userbox's image.
| String | optional |
| Border color | border color | The color of the userbox's border.
| String | optional |
| Text color | text color | The color of the text in the userbox.
| String | optional |
| Float | float | If specified, the userbox becomes a floating element. Should not be used in a userbox tower.
| String | optional |
Example usage
{{userbox|BTD6 round HeroIconQuincy.png|This user is a son of Quincy.|bg color=#323232|image bg color=#404040|border color=#c1c1c1|text color=#ffffff|float=right}}
| This user is a son of Quincy. |