Template:VisualDataButton: Difference between revisions
Appearance
No edit summary |
(No difference)
|
Revision as of 16:33, 9 July 2024
{{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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| label | label | button label
| String | required |
| label | value | button value
| String | optional |
| callback | callback | (javascript) callback function
| String | required |
| schema | schema | schema name
| String | optional |
| edit-page | edit-page | title of the page holding the data to edit (with edit action)
| String | optional |
| target-slot | target-slot | target slot for article metadata, could be jsondata or main
| String | optional |
| icon | icon | icon name (Mediawiki's OOUI)
| String | optional |