模板:VisualDataButton:修订间差异

来自KemalWiki
跳转到导航 跳转到搜索
无编辑摘要
 
无编辑摘要
 
(未显示同一用户的1个中间版本)
(没有差异)

2024年12月9日 (一) 13:17的最新版本

{{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)

默认值
示例值
字符串可选