(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... ») |
Aucun résumé des modifications |
||
| Ligne 52 : | Ligne 52 : | ||
==See also== | ==See also== | ||
<includeonly>[[Category:Formatting and function templates|{{PAGENAME}}]]</includeonly> | <includeonly>[[Category:Formatting and function templates|{{PAGENAME}}]]</includeonly> | ||
Version actuelle datée du 1 mai 2023 à 17:47
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 |