搭建中,开放编辑,欢迎收藏防止迷路。请参考:编辑帮助

全站通知:

模板:Iconbox

来自土豆兄弟(Brotato)WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索


Usage

This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.

{{Iconbox|Acid|size=30px|caption=caption|amount=1|rarity=1}}

Examples

Code Preview
{{Iconbox|Acid}}
{{Iconbox|Acid|amount=1}}
{{Iconbox|Acid|caption=Foobar}}
{{Iconbox|Acid|caption=no}}
Acid
{{Iconbox|Acid|top=Foobar}}
Acid

Foobar
Acid
{{Iconbox|Acid|rarity=-1}}


{{Iconbox|Acid|rarity=1}}
{{Iconbox|Acid|rarity=2}}
{{Iconbox|Acid|rarity=3}}
{{Iconbox|Acid|rarity=4}}
{{Iconbox|Acid|rarity=5}}

{{Iconbox|Acid|rarity=auto}}
{{Iconbox|Acid|nolink=1}}
Acid.png

Acid
{{Iconbox|Acid|image=Tree}}
{{Iconbox|Acid|size=30px}}
{{Iconbox|Acid|size=30px|nobr=1}}
Acid
  Acid
{{Iconbox|Acid|size=30px|nobr=1|top=Foobar}}
Acid
  Foobar  Acid

Other Options

The maxwidth option lets you restrain text that would otherwise be very long:

{{Iconbox|Acid|size=60px|top=This text is quite long but maxwidth restrains it|maxwidth=120px}}

Acid

This text is quite long but maxwidth restrains it
Acid


无描述。

模板参数

参数描述类型状态
Namename1

Name of the character/item/weapon

字符串必填
Rarityrarity

Options: -1, 1, 2, 3, 4, auto

数字推荐
Sizesize

Size with px, eg. "30px"

字符串推荐
Amountamount

Shows a number on the bottom right corner

数字推荐
Image Overrideimage

If not set, uses the image that matches the name

字符串推荐
Caption Overridecaption

If not set, uses the specified name. Always links to the name. Use "no" to hide the caption

字符串推荐
Top Texttop

Shown above the caption

未知推荐
Prevent Line Breaks?nobr

If enabled, removes the line break, putting the icon and text on a single line. Use 1 to enable

布尔值推荐
Max Widthmaxwidth

If set, constrains the box to the specified width. Accepts any valid CSS width (60px, 60%). If not set, uses max-width:initial.

示例
60px
字符串推荐