“模板:Resize/TemplateData”的版本间的差异
跳到导航
跳到搜索
(创建页面,内容为“==TemplateData== {{TemplateData header}} <templatedata>{ "description": "Template to aid switching the font-size used for a text string. Two forms {{resize|<size>|…”) |
(没有差异)
|
2020年4月8日 (三) 11:27的最新版本
TemplateData
这是用于新版-{zh-cn:可视化编辑器;zh-tw:視覺化編輯器;}-及其他工具的-{zh-cn:模板数据;zh-tw:模板資料}--{zh-cn:文档;zh-tw:文件;}-。
Resize-{zh-cn:模板数据;zh-tw:模板資料}-
<templatedata>{
"description": "Template to aid switching the font-size used for a text string. Two forms <span style="font-size:<size>;"><text> and <text> are possible.",
"params": {
"1": {
"label": "Size/Text",
"description": "Specifies a css font size e.g. '80%', '1.2em', 'x-large', 'larger'. In the one parameter version the first parameter is the text and the font size is '90%'.",
"type": "string",
"required": true
},
"2": {
"label": "Text when size is given",
"description": "The text to display in the two parameter version.",
"type": "string",
"required": false
}
}
} </templatedata>