Template:Badge/doc: Difference between revisions

Template page
No edit summary
 
m (1 revision imported: New Files)
 
(No difference)

Latest revision as of 11:54, 24 March 2024

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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

Text in the badge

Stringrequired
Background colorbg

Background color of the badge (HEX/RGB(A)/HSL(A))

Stringoptional
Invert colorinverted

Dark text and light background color

Default
false
Example
true
Booleanoptional
HTML classclass

Additional HTML class

Stringoptional

See also

  • {{Transit}} - used for transit lines


🍪 We use cookies to keep session information to provide you a better experience.