MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=sfautoedit

(main | sfautoedit)
  • This module requires read rights.
  • This module requires write rights.

This module is used to remotely create or edit pages using SemanticAs used in this context, it refers to re-using data from web pages that would otherwise not be available anywhere other than the single web page it is published on. A Semantic Wiki like this one, is enhanced Wiki software (like this in-line glossary function) that is far more complex and sophisticated, with advanced data collection, display and reporting methods. It is able to make relationships in the presentation of data to the user in ways regular Internet applications cannot. Forms.

Add "template-name[field-name]=field-value" to the query string parameter, to set the value for a specific field. To set values for more than one field use "&", or rather its URL encoded version "%26": "template-name[field-name-1]=field-value-1%26template-name[field-name-2]=field-value-2". See the first example below.

In addition to the query parameter, any parameter in the URL of the form "template-name[field-name]=field-value" will be treated as part of the query. See the second example.

Parameters:
form

The form to use.

target

The target page.

query

The query string.

preload

The name of a page to preload

Example:
With query parameter: api.php?action=sfautoedit&form=form-name&target=page-name&query=template-name[field-name-1]=field-value-1%26template-name[field-name-2]=field-value-2
api.php?Without query parameter: api.php?action=sfautoedit&form=form-name&target=page-name&template-name[field-name-1]=field-value-1&template-name[field-name-2]=field-value-2