Template:Badge/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m 1 revision imported |
(No difference)
|
Latest revision as of 00:35, 2 August 2024
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