模板:Info/doc

< 模板:Info
info>公的驱逐舰2019年8月30日 (五) 01:17的版本 (Created page with " <templatedata> { "params": { "1": { "aliases": [ "text" ], "label": "text", "description": "Text to be placed within the main body.", "example": "Hi, th...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Meta template for creating a variety of informational templates. Can also be used on its own.

模板参数

此模板首选参数换行的代码块格式。

参数描述类型状态
text1text

Text to be placed within the main body.

示例值
Hi, this is a info box!
字符串必需
widthwidth

width of the template. Use CSS units; % often used.

默认值
80%
示例值
100px, 50%;
字符串可选
colorcolor

Color of the left bar. Use CSS color.

默认值
#1e90ff
示例值
red, #6527CB, rgb(245,135,38) (rgba not recommended)
字符串可选
leftimageleftimage

An image to be placed to the left of the info box. Internal file link recommended, although external URL could be accepted.

默认值
[[image:Icon-info.png|50px|link=]]
示例值
[[image:Disambig gray.svg|50px|link=]]
文件推荐
text-styletext-style

Additional text styles, applicable to the text argument.

字符串可选