Jump to content

Template:Badge/doc

From Meta, a Wikimedia project coordination wiki

This template displays a badge with colored background.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
color1

Number of the background color, see list on the template page

Suggested values
0 1 2 3 4 5 6
Default
0
Numbersuggested
text2

Text displayed on the badge

Contentrequired
languagelang

MediaWiki language code of the badge text, used to mark the text language machine-readably

Example
en
Lineoptional

Example

[edit]
code output
{{badge|1|Hello}} Hello
{{badge|2|Hello}} Hello
{{badge|3|Hello}} Hello
{{badge|4|Hello}} Hello
{{badge|5|Hello}} Hello
{{badge|6|Hello}} Hello
{{badge|0|Hello}} Hello