Template:Color/doc
Template page
More actions
Documentation subpage
This is a documentation subpage for a template. It is not included when the template is used.
Description
This template formats text with custom colors and styles using inline CSS.
Usage
{{Color
| text =
| color =
}}
or
{{Color|text=TEXTHERE|color=COLORHERE}}
Parameters
Basic
| Parameter | Description | Default |
|---|---|---|
| text | The text to display | (empty) |
| color | Text color (name, hex, rgb) | inherit |
| bg | Background color | transparent |
Styling
| Parameter | Description | Default |
|---|---|---|
| weight | Font weight (e.g. bold) | normal |
| style | Font style (e.g. italic) | normal |
| size | Font size (e.g. 120%, 14px) | 100% |
| border | CSS border (e.g. 1px solid black) | none |
| padding | Space inside element (e.g. 3px 6px) | 0 |
| radius | Border radius (rounded corners) | 0 |
Examples
Basic color
Warning!
Warning texts
This is
very important
information.
Custom hexcode colors
Dodecahedron
Tag Style
Building
Role badge
Admin
And plenty more styles!