编辑“
模板:VisualDataForm
”
跳转到导航
跳转到搜索
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
<noinclude> <pre> {{VisualDataForm |schemas = |title = |action = |overwrite-existing-article-on-create = |view = |layout = |callback = |edit-page = |preload = |preload-data = |return-page = |return-url = |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 = |selected-schema = }} </pre> <b>Attention!</b> VisualEditor won't handle the template correctly if it contains new lines!! <templatedata> { "description": "A parser function to enclose one or more schemas in a form", "params": { "schemas": { "label": "schemas", "description": "one more schema name, comma separated", "type": "string", "required": true, "default": "", "example": "" }, "title": { "label": "title", "description": "title of the form (or the panel if a form containing multiple schemas)", "type": "string", "required": true, "default": "", "example": "" }, "action": { "label": "action", "description": "form action, can be create or edit", "type": "string", "required": true, "default": "create", "example": "" }, "overwrite-existing-article-on-create": { "label": "overwrite existing article on create", "description": "boolean", "type": "boolean", "required": false, "default": false, "example": "" }, "view": { "label": "view", "description": "display mode of the form, can be inline or popup", "type": "string", "required": true, "default": "inline", "example": "" }, "layout": { "label": "layout", "description": "form layout with multiple schemas, can be tabs or booklet", "type": "string", "required": true, "default": "tabs", "example": "" }, "callback": { "label": "callback", "description": "(javascript) callback function called on submit", "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": "" }, "preload": { "label": "preload", "description": "page name with preload wikitext", "type": "string", "required": false, "default": "", "example": "" }, "preload-data": { "label": "preload data", "description": "page name with preload json data", "type": "string", "required": false, "default": "", "example": "" }, "return-page": { "label": "return-page", "description": "return page", "type": "string", "required": false, "default": "", "example": "" }, "return-url": { "label": "return-page", "description": "return page", "type": "string", "required": false, "default": "", "example": "" }, "popup-size": { "label": "popup-size", "description": "popup-size, possible values: small, medium, large, larger full", "type": "string", "required": false, "default": "medium", "example": "" }, "css-class": { "label": "css-class", "description": "css-class to be attached to the form", "type": "string", "required": false, "default": "", "example": "" }, "pagename-formula": { "label": "pagename-formula", "description": "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", "type": "string", "required": false, "default": "", "example": "" }, "edit-freetext": { "label": "edit-freetext", "description": "whether the form allows to edit freetext", "type": "boolean", "required": false, "default": "0", "example": "" }, "edit-categories": { "label": "edit-categories", "description": "whether the form allows to edit categories", "type": "boolean", "required": false, "default": "0", "example": "" }, "edit-content-model": { "label": "edit-content-model", "description": "whether the form allows to edit the content model", "type": "boolean", "required": false, "default": "0", "example": "" }, "target-slot": { "label": "target-slot", "description": "target slot for article metadata, could be jsondata or main", "type": "string", "required": false, "default": "", "example": "" }, "edit-target-slot": { "label": "edit target-slot", "description": "edit target slot", "type": "boolean", "required": false, "default": "0", "example": "" }, "default-categories": { "label": "default-categories", "description": "default categories (comma separated)", "type": "string", "required": false, "default": "", "example": "" }, "default-content-model": { "label": "default-content-model", "description": "default content model", "type": "string", "required": false, "default": "wikitext", "example": "" }, "layout-align": { "label": "layout-align", "description": "default align for the OO.ui.FieldLayout, possible values are left right top inline", "type": "string", "required": false, "default": "top", "example": "" }, "popup-help": { "label": "popup-help", "description": "corresponds to helpinline set to false in the OO.ui.FieldLayout", "type": "boolean", "required": false, "default": "0", "example": "" }, "submit-button-text": { "label": "submit-button-text", "description": "text of the submit button", "type": "string", "required": false, "default": "submit", "example": "" }, "validate-button-text": { "label": "validate-button-text", "description": "text of the validate button", "type": "string", "required": false, "default": "validate", "example": "" }, "selected-schema": { "label": "selected schema", "description": "selected schema (when using form with multiple schemas)", "type": "string", "required": false, "default": "", "example": "" } } } </templatedata> </noinclude> <includeonly>{{#visualdataform:{{{schemas}}}|title = {{{title|}}}|action = {{{action|create}}}|overwrite-existing-article-on-create = {{{overwrite-existing-article-on-create|}}}|view = {{{view|inline}}}|layout = {{{layout|tabs}}}|callback = {{{callback|}}}|edit-page = {{{edit-page|}}}|preload = {{{preload|}}}|preload-data = {{{preload-data|}}}|return-page = {{{return-page|}}}|return-url = {{{return-url|}}}|popup-size = {{{popup-size|medium}}}|css-class = {{{css-class|}}}|pagename-formula = {{{pagename-formula|}}}|edit-freetext = {{{edit-freetext|}}}|edit-categories = {{{edit-categories|}}}|edit-content-model = {{{edit-content-model|}}}|target-slot = {{{target-slot|}}}|edit-target-slot = {{{edit-target-slot|}}}|default-categories = {{{default-categories|}}}|default-content-model = {{{default-content-model|wikitext}}}|layout-align = {{{layout-align|top}}}|popup-help = {{{popup-help|}}}|submit-button-text = {{{submit-button-text|submit}}}|validate-button-text = {{{validate-button-text|validate}}}|selected-schema = {{{selected-schema|}}} }} </includeonly>
摘要:
请注意,所有对KemalWiki的贡献均被视为依照知识共享署名-非商业性使用-相同方式共享发表(详情请见
KemalWiki:著作权
)。如果您不希望您的文字作品被随意编辑和分发传播,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
查看
阅读
编辑源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息