Template:Userbox/doc
Appearance
Usage
This template displays a customizable userbox using Module:Userbox.
To use it, call the template with the appropriate parameters. All parameters are optional unless otherwise noted.
Basic Example
{{#invoke:userbox|userbox
| id = '''MOD'''
| id-c = linear-gradient(to bottom, #8f0000, #5a0000)
| id-fc = #fff
| info = This user is a '''moderator''' and may be ''data-mining your contributions'', btw.
| info-c = linear-gradient(to bottom, #8f0000, #5a0000)
| info-fc = #fff
| border-c = #6a0000
}}
Parameters
id- Text or image shown on the left side of the userbox (typically short)
id-c- Background color (or gradient) of the ID box
id-fc- Font color of the ID box
info- Main text content of the userbox
info-c- Background color (or gradient) of the info box
info-fc- Font color of the info box
border-c- Border color of the userbox
id-op,info-op,border-op- Optional inline styles (e.g. shadows, transitions)
nocat- If set to
true, disables automatic categorization
Advanced Styling
You can apply CSS gradients, shadows, and more advanced styles using the -op parameters. For example:
| info-op = box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
See also
Font color of the info box
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id | Text or image shown on the left side of the userbox (typically short)
| Unknown | optional |
| id-c | id-c | Background color (or gradient) of the ID box.
| Unknown | optional |
| info | info | Main text content of the userbox.
| Unknown | optional |
| info-fc | info-fc | no description
| Unknown | optional |
| id-op | id-op | Optional inline styles (e.g. shadows, transitions) | Unknown | optional |
| info-op | info-op | Optional inline styles (e.g. shadows, transitions) | Unknown | optional |
| border-op | border-op | Optional inline styles (e.g. shadows, transitions) | Unknown | optional |