Plantilla:VisualDataForm

De musiki
Revisión del 14:49 8 abr 2024 de 127.0.0.1 (discusión)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)
{{VisualDataForm
|schemas = 
|title = 
|action = 
|view = 
|layout = 
|callback = 
|edit-page = 
|preload = 
|preload-data = 
|return-page = 
|popup-size = 
|css-class = 
|pagename-formula = 
|edit-freetext = 
|edit-categories = 
|edit-content-model = 
|target-slot = 
|edit-target-slot = 
|default-categories = 
|default-content-model = 
|layout-align = 
|popup-help = 
|submit-button-text = 
|validate-button-text = 
}}

Attention! VisualEditor won't handle the template correctly if it contains new lines!!

A parser function to enclose one or more schemas in a form

[Editar los datos de la plantilla]

Parámetros de la plantilla

ParámetroDescripciónTipoEstado
schemasschemas

one more schema name, comma separated

Predeterminado
Ejemplo
Cadenaobligatorio
titletitle

title of the form (or the panel if a form containing multiple schemas)

Predeterminado
Ejemplo
Cadenaobligatorio
actionaction

form action, can be create or edit

Predeterminado
create
Ejemplo
Cadenaobligatorio
viewview

display mode of the form, can be inline or popup

Predeterminado
inline
Ejemplo
Cadenaobligatorio
layoutlayout

form layout with multiple schemas, can be tabs or booklet

Predeterminado
tabs
Ejemplo
Cadenaobligatorio
callbackcallback

(javascript) callback function called on submit

Predeterminado
Ejemplo
Cadenaopcional
edit-pageedit-page

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

Predeterminado
Ejemplo
Cadenaopcional
preloadpreload

page name with preload wikitext

Predeterminado
Ejemplo
Cadenaopcional
preload datapreload-data

page name with preload json data

Predeterminado
Ejemplo
Cadenaopcional
return-pagereturn-page

return page

Predeterminado
Ejemplo
Cadenaopcional
popup-sizepopup-size

popup-size, possible values: small, medium, large, larger full

Predeterminado
medium
Ejemplo
Cadenaopcional
css-classcss-class

css-class to be attached to the form

Predeterminado
Ejemplo
Cadenaopcional
pagename-formulapagename-formula

formula used to create a new article through the form with the entered data, in the form contacts/<first_name> <last_name>, where <first_name> and <last_name> are the property names of the related schema

Predeterminado
Ejemplo
Cadenaopcional
edit-freetextedit-freetext

whether the form allows to edit freetext

Predeterminado
0
Ejemplo
Lógicoopcional
edit-categoriesedit-categories

whether the form allows to edit categories

Predeterminado
0
Ejemplo
Lógicoopcional
edit-content-modeledit-content-model

whether the form allows to edit the content model

Predeterminado
0
Ejemplo
Lógicoopcional
target-slottarget-slot

target slot for article metadata, could be jsondata or main

Predeterminado
Ejemplo
Cadenaopcional
edit target-slotedit-target-slot

edit target slot

Predeterminado
0
Ejemplo
Lógicoopcional
default-categoriesdefault-categories

default categories (comma separated)

Predeterminado
Ejemplo
Cadenaopcional
default-content-modeldefault-content-model

default content model

Predeterminado
wikitext
Ejemplo
Cadenaopcional
layout-alignlayout-align

default align for the OO.ui.FieldLayout, possible values are left right top inline

Predeterminado
top
Ejemplo
Cadenaopcional
popup-helppopup-help

corresponds to helpinline set to false in the OO.ui.FieldLayout

Predeterminado
0
Ejemplo
Lógicoopcional
submit-button-textsubmit-button-text

text of the submit button

Predeterminado
submit
Ejemplo
Cadenaopcional
validate-button-textvalidate-button-text

text of the validate button

Predeterminado
validate
Ejemplo
Cadenaopcional