Template:VisualDataButton
Jump to navigation
Jump to search
{{VisualDataButton
|label =
|value =
|callback =
|schema =
|edit-page =
|target-slot =
|icon =
}}
Attention! VisualEditor won't handle the template correctly if it contains new lines!! <templatedata> {
"description": "A parser function to print a button with value or data submitted to a (javascript) callback",
"params": {
"label": {
"label": "label",
"description": "button label",
"type": "string",
"required": true,
"default": "",
"example": ""
},
"value": {
"label": "label",
"description": "button value",
"type": "string",
"required": false,
"default": "",
"example": ""
},
"callback": {
"label": "callback",
"description": "(javascript) callback function",
"type": "string",
"required": true,
"default": "",
"example": ""
},
"schema": {
"label": "schema",
"description": "schema name",
"type": "string",
"required": false,
"default": "",
"example": ""
},
"edit-page": {
"label": "edit-page",
"description": "title of the page holding the data to edit (with edit action)",
"type": "string",
"required": false,
"default": "",
"example": ""
},
"target-slot": {
"label": "target-slot",
"description": "target slot for article metadata, could be jsondata or main",
"type": "string",
"required": false,
"default": "",
"example": ""
},
"icon": {
"label": "icon",
"description": "icon name (Mediawiki's OOUI)",
"type": "string",
"required": false,
"default": "",
"example": ""
}
}
} </templatedata>