Template:SC/Badge/doc
More actions
- This template doesn't have any documentation yet! Help out by writing some. There may also be documentation on Wikia Templates which can be copied.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:SC/Badge/doc/doc. (View all subpages of this page.)
This template is used to style text as a badge.
Usage
{{Badge|Lando's favourite ship}} gives Template:Badge
{{Badge|Lando's favourite ship|color=#666}} gives Template:Badge
{{Badge|Lando's favourite ship|bg=#d0817d}} gives Template:Badge
{{Badge|Lando's favourite ship|bg=#d0817d|color=#222}} gives Template:Badge
TemplateData
<templatedata> { "params": { "1": { "label": "Text", "description": "Text in the badge", "type": "string", "required": true }, "bg": { "label": "Background color", "description": "Background color of the badge (HEX/RGB(A)/HSL(A))", "type": "string" }, "class": { "label": "HTML class", "description": "Additional HTML class", "type": "string" }, "color": { "label": "Color", "description": "Color of the text on the badge", "example": "#000", "type": "string" } }, "description": "Style text as a badge", "paramOrder": [ "1", "bg", "color", "class" ], "format": "inline" } </templatedata>
See also
- {{Transit}} - used for transit lines