模板:VisualDataButton

来自KemalWiki
127.0.0.1留言2024年12月9日 (一) 13:16的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索
{{VisualDataButton
|label = 
|value = 
|callback = 
|schema = 
|edit-page = 
|target-slot = 
|icon = 
}}

Attention! VisualEditor won't handle the template correctly if it contains new lines!!

A parser function to print a button with value or data submitted to a (javascript) callback

模板参数[编辑模板数据]

参数描述类型状态
labellabel

button label

默认值
示例值
字符串必需
labelvalue

button value

默认值
示例值
字符串可选
callbackcallback

(javascript) callback function

默认值
示例值
字符串必需
schemaschema

schema name

默认值
示例值
字符串可选
edit-pageedit-page

title of the page holding the data to edit (with edit action)

默认值
示例值
字符串可选
target-slottarget-slot

target slot for article metadata, could be jsondata or main

默认值
示例值
字符串可选
iconicon

icon name (Mediawiki's OOUI)

默认值
示例值
字符串可选