The _create
and _edit
tags share a lot of functionality but they do not always share the same attribute names or their intended usage may differ slightly. By presenting these attributes side by side, this table may help you on your way more quickly.
_create | _edit | comments |
---|---|---|
Can be used to create new pages Can be used to edit existing pages Cannot be used to edit a selection of fields on a page |
Cannot be used to create new pages Can be used to edit existing pages, including select fields |
|
mwwrite page title, optionally in conjunction with mwoption or mwleadingzero
|
target page id or page title | |
specific to page creation:
|
x | |
mwfollow
|
x, but you can set mwreturn in the form tag
|
|
mwfields allows for multiple fields (comma-separated) |
formfield allows for single fields only |
|
x | usefield
|
|
mwslot
|
mwslot
| |
mwformat
|
format
|
wiki or json |
mwtemplate
|
template
|
template name or JSON configuration |
x | value
|
can be used to set the value explicitly, without reading it from a form field. |