模板:VisualDataButton:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
(未显示同一用户的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
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
label | label | button label
| 字符串 | 必需 |
label | value | button value
| 字符串 | 可选 |
callback | callback | (javascript) callback function
| 字符串 | 必需 |
schema | schema | schema name
| 字符串 | 可选 |
edit-page | edit-page | title of the page holding the data to edit (with edit action)
| 字符串 | 可选 |
target-slot | target-slot | target slot for article metadata, could be jsondata or main
| 字符串 | 可选 |
icon | icon | icon name (Mediawiki's OOUI)
| 字符串 | 可选 |