m (E00a555c-1e5d-4eb3-b26b-5be8dc16c657 moved page DevOps:Doc/FlexForm/1.0.0/edit to edit without leaving a redirect: Text replacement - "1.0.0" to "1.0")
m (Text replacement - "1.0.0" to "1.0")
Line 30: Line 30:
  
 
* You can have multiple _edit's in a form all doing different tasks.
 
* You can have multiple _edit's in a form all doing different tasks.
* If you have more than 5 edits to one singe page in the wiki, consider [[DevOps:Doc/FlexForm/1.0.0/create]] to speed-up the process.
+
* If you have more than 5 edits to one singe page in the wiki, consider [[DevOps:Doc/FlexForm/1.0/create]] to speed-up the process.
 
* If you omit value, then the value of the form will be used (so what a user has filled in).
 
* If you omit value, then the value of the form will be used (so what a user has filled in).
 
===Links===
 
===Links===
 
https://www.mediawiki.org/wiki/Multi-Content_Revisions
 
https://www.mediawiki.org/wiki/Multi-Content_Revisions

Revision as of 11:14, 24 March 2022

Name

_edit

Type

_edit

Synopsis

Using a form to edit pages that have content with templates.

Description

How to edit pages in the wiki with FlexForm

Parameters

_edit

target = Target page ( title or page id ) that needs to be edited

template = Name of the template on the target page that needs to be edited

formfield = Name of the field in the template. Field in the form should have the same name

usefield = [optional] If the field in the form differs from the template variable name, you can use "usefield" to let _edit know what other field from the form it should use

value = [optional] Don't read the value from the form field, but use this value explicitly

mwslot = [optional] Name of content slot to use

Example

<_edit target="pageid" template="template" formfield="formfield" />

Note

  • You can have multiple _edit's in a form all doing different tasks.
  • If you have more than 5 edits to one singe page in the wiki, consider create to speed-up the process.
  • If you omit value, then the value of the form will be used (so what a user has filled in).

Links

https://www.mediawiki.org/wiki/Multi-Content_Revisions

ws-page-props