Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

{{{1}}}<templatestyles src="Template:Badge/styles.css"/>

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template loop detected: Template:SC/Badge/doc
The above text is transcluded from Template:SC/Badge/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:SC/Badge/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