模板:Badge

来自星际公民中文百科

{{{1}}}

Template documentation[view][edit][history][purge]
This documentation is transcluded from 模板:Badge/doc. Changes can be proposed in the talk page.

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

Debug data: