2,367
个编辑
更改
模板:二维码
,无编辑摘要
<onlyinclude><div>{{ #ifeq:{{{showText|}}}|是| <p>{{{text}}}</p>|}}
<div class="myqrcode myqrcode-{{ #if:{{{style|}}}|{{{style}}}|normal}}">
<p>http://cloud.iotxx.com/tool/qrcode?text={{{text}}}&n=a.png</p>
<p>{{ #if:{{{tips|}}}|{{{tips}}}|}}</p>
</div></div></onlyinclude>
<noinclude>
<templatedata>
{
"params": {
"text": {
"label": "二维码内容",
"description": "待生成二维码的内容",
"required": true,
"example": "例如淘宝链接;或者当前文章网址(使用魔法字):{{fullurl:{{FULLPAGENAMEE}}}}"
},
"showText": {
"label": "显示二维码内容?",
"description": "设置是否显示二维码文本内容。",
"type": "boolean",
"default": "否",
"autovalue": "否",
"suggested": true
},
"tips": {
"label": "提示语",
"description": "设置额外显示的提示语,提示语不会出现在二维码中,可留空。",
"suggested": true
},
"style": {
"label": "样式",
"description": "设置二维码显示样式",
"example": "right:右侧浮动(该样式下,请不要再显示二维码内容。),left:左侧浮动,normal:常规",
"suggested": true
}
},
"description": "在Wiki中插入动态的二维码,一般用语插入购买链接,方便用户手机扫码",
"paramOrder": [
"text",
"showText",
"tips",
"style"
]
}
</templatedata>
</noinclude>
<div class="myqrcode myqrcode-{{ #if:{{{style|}}}|{{{style}}}|normal}}">
<p>http://cloud.iotxx.com/tool/qrcode?text={{{text}}}&n=a.png</p>
<p>{{ #if:{{{tips|}}}|{{{tips}}}|}}</p>
</div></div></onlyinclude>
<noinclude>
<templatedata>
{
"params": {
"text": {
"label": "二维码内容",
"description": "待生成二维码的内容",
"required": true,
"example": "例如淘宝链接;或者当前文章网址(使用魔法字):{{fullurl:{{FULLPAGENAMEE}}}}"
},
"showText": {
"label": "显示二维码内容?",
"description": "设置是否显示二维码文本内容。",
"type": "boolean",
"default": "否",
"autovalue": "否",
"suggested": true
},
"tips": {
"label": "提示语",
"description": "设置额外显示的提示语,提示语不会出现在二维码中,可留空。",
"suggested": true
},
"style": {
"label": "样式",
"description": "设置二维码显示样式",
"example": "right:右侧浮动(该样式下,请不要再显示二维码内容。),left:左侧浮动,normal:常规",
"suggested": true
}
},
"description": "在Wiki中插入动态的二维码,一般用语插入购买链接,方便用户手机扫码",
"paramOrder": [
"text",
"showText",
"tips",
"style"
]
}
</templatedata>
</noinclude>