This is a documentation subpage for Modèle:Badge.It contains usage information, categories, and other content that is not part of the original template page.
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|inverted=true}}
gives Lando's favourite ship
{{Badge|Lando's favourite ship|bg=#d0817d}}
gives Lando's favourite ship
{{Badge|Lando's favourite ship|bg=#d0817d|inverted=true}}
gives Lando's favourite ship
TemplateData
Style text as a badge
Paramètre | Description | Type | État | |
---|---|---|---|---|
Text | 1 | Text in the badge | Chaîne | obligatoire |
Background color | bg | Background color of the badge (HEX/RGB(A)/HSL(A)) | Chaîne | facultatif |
Invert color | inverted | Dark text and light background color
| Booléen | facultatif |
HTML class | class | Additional HTML class | Chaîne | facultatif |
See also
- {{Transit}} - used for transit lines