Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 06:25, 3 July 2024 by imported>Alistair3149
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [create]
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.
This template currently doesn't have any documentation; you can create it if you know how the template is used. (What is this?)
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