Template:VisualDataButton: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
(No difference)

Latest revision as of 20:14, 22 December 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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
labellabel

button label

Default
Example
Stringrequired
labelvalue

button value

Default
Example
Stringoptional
callbackcallback

(javascript) callback function

Default
Example
Stringrequired
schemaschema

schema name

Default
Example
Stringoptional
edit-pageedit-page

title of the page holding the data to edit (with edit action)

Default
Example
Stringoptional
target-slottarget-slot

target slot for article metadata, could be jsondata or main

Default
Example
Stringoptional
iconicon

icon name (Mediawiki's OOUI)

Default
Example
Stringoptional