Template:Badge
Jump to navigation
Jump to search
{{{1}}}
Template loop detected: Template:Badge/doc
This template is used to style text as a badge.
Usage
{{Badge|Lando's favourite ship}}
gives Lando's favourite ship
{{Badge|Lando's favourite ship|color=#666}}
gives Lando's favourite ship
{{Badge|Lando's favourite ship|bg=#d0817d}}
gives Lando's favourite ship
{{Badge|Lando's favourite ship|bg=#d0817d|color=#222}}
gives Lando's favourite ship
TemplateData
Style text as a badge
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | Text in the badge | String | required |
Background color | bg | Background color of the badge (HEX/RGB(A)/HSL(A)) | String | optional |
Color | color | Color of the text on the badge
| String | optional |
HTML class | class | Additional HTML class | String | optional |
See also
- {{Transit}} - used for transit lines