(Page créée avec « <span class="template-badge {{#if:{{yesno|{{{inverted|}}}}}|template-badge--inverted}} {{{class|}}}" {{#if:{{{bg|}}}|style="background:{{{bg}}};"}}>{{{1}}}</span><templatestyles src="Template:Badge/styles.css"/><noinclude>{{/doc}}</noinclude> ») |
(Aucune différence)
|
Version actuelle datée du 1 mai 2023 à 10:05
{{{1}}}
This documentation is transcluded from Modèle:Badge/doc. Changes can be proposed in the talk 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 |