(Page créée avec « {{Documentation}} This template is used to style text as a badge. ==Usage== <code><nowiki>{{Badge|Lando's favourite ship}}</nowiki></code> gives {{Badge|Lando's favourite ship}} <code><nowiki>{{Badge|Lando's favourite ship|inverted=true}}</nowiki></code> gives {{Badge|Lando's favourite ship|inverted=true}} <code><nowiki>{{Badge|Lando's favourite ship|bg=#d0817d}}</nowiki></code> gives {{Badge|Lando's favourite ship|bg=#d0817d}} <code><nowiki>{{Badge|Lando's... ») |
(Aucune différence)
|
Version du 1 mai 2023 à 10:05
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