模板:Info

RavenclawOIer(讨论 | 贡献)2020年3月23日 (一) 21:41的版本 (恢复RavenclawOIer(讨论)的编辑至[[User:info>公的驱逐舰|info>公的驱逐舰]]的最后版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
Icon-info.png
Nothing here (⊙_⊙)
Did you forget text= or 1=?
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

{
"params": {
"1": {
"aliases": [
"text"
],
"label": "text",
"description": "Text to be placed within the main body.",
"example": "Hi, this is a info box!",
"type": "string",
"required": true
},
"width": {
"description": "width of the template. Use CSS units; % often used.",
"example": "100px, 50%;",
"type": "string",
"default": "80%"
},
"color": {
"description": "Color of the left bar. Use CSS color.",
"example": "red, #6527CB, rgb(245,135,38) (rgba not recommended)",
"type": "string",
"default": "#1e90ff"
},
"leftimage": {
"description": "An image to be placed to the left of the info box. Internal file link recommended, although external URL could be accepted.",
"example": "Disambig gray.svg",
"type": "wiki-file-name",
"default": "Icon-info.png",
"suggested": true
},
"text-style": {
"description": "Additional text styles, applicable to the text argument.",
"type": "string"
}
},
"description": "Meta template for creating a variety of informational templates. Can also be used on its own.",
"paramOrder": [
"1",
"width",
"color",
"leftimage",
"text-style"
],
"format": "block"
}