Template:Userbox/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "<templatedata> { "params": { "1": { "label": "Image", "description": "The image to display in the box.", "example": "BTD6 app icon.png", "type": "wiki-file-name", "default": "BTD6 achievement HiddenIcon.png", "required": true }, "2": { "label": "Text", "description": "The text to display in the userbox.", "type": "string", "default": "This user is using the default userbox for some unfathomable reason.", "required": true }, "bg..." |
mNo edit summary |
||
| Line 42: | Line 42: | ||
} | } | ||
}, | }, | ||
"description": "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 since userboxes are designed to be theme-agnostic.", | "description": "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.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
Revision as of 04:09, 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 |
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}}
| This user is a son of Quincy. |