Template:VisualDataButton

From Visual Data Wiki
Revision as of 08:05, 9 July 2024 by 127.0.0.1 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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!!

A parser function to print a button with value or data submitted to a (javascript) callback

Template parameters

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