Template:Badge/doc

模板页面
Template:Badge invokes Template:Badge/styles.css using TemplateStyles.

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

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
Text1

Text in the badge

字符串必需
Background colorbg

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

字符串可选
Invert colorinverted

Dark text and light background color

默认值
false
示例值
true
布尔可选
HTML classclass

Additional HTML class

字符串可选

See also

  • {{Transit}} - used for transit lines


我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。