Plantilla:VisualDataButton
{{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
| Parámetro | Descripción | Tipo | Estado | |
|---|---|---|---|---|
| label | label | button label
| Cadena | obligatorio |
| label | value | button value
| Cadena | opcional |
| callback | callback | (javascript) callback function
| Cadena | obligatorio |
| schema | schema | schema name
| Cadena | opcional |
| edit-page | edit-page | title of the page holding the data to edit (with edit action)
| Cadena | opcional |
| target-slot | target-slot | target slot for article metadata, could be jsondata or main
| Cadena | opcional |
| icon | icon | icon name (Mediawiki's OOUI)
| Cadena | opcional |