模板:Info/doc:修订间差异

info>公的驱逐舰
(Created page with " <templatedata> { "params": { "1": { "aliases": [ "text" ], "label": "text", "description": "Text to be placed within the main body.", "example": "Hi, th...")
 
小无编辑摘要
 
(未显示另一用户的1个中间版本)
第1行: 第1行:


<templatedata>
<poem>
{
{
"params": {
"params": {
第47行: 第47行:
"format": "block"
"format": "block"
}
}
</templatedata>
</poem>
<includeonly>[[Category:Meta templates]]</includeonly>

2020年4月24日 (五) 10:05的最新版本

{
"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"
}