MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=edit

(main | edit)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Iturria: MediaWiki
  • Lizentzia: GPL-2.0-or-later

Orrialdeak sortu eta aldatu.

Parametroak:
title

Orri izenburua aldatzeke. Hurrengoarekin batera ezin da erabili: pageid.

pageid

Ezabatzeko orri edo ID orria. Hurrengoarekin batera ezin da erabili: title.

Type: integer
section

Section number. 0 for the top section, new for a new section.

sectiontitle

Atal berri baten izenburua.

text

Orrialdearen edukia.

summary

Edit summary. Also section title when section=new and sectiontitle is not set.

tags

Aldatu etiketak berrikusketa eskatzeko.

Values (separate with | or alternative):
minor

Markatu edizio hau txikitzat

Type: boolean (details)
notminor

Aldaketa ez-txikiak

Type: boolean (details)
bot

Markatu aldaketa hau bot batek egindakotzat.

Type: boolean (details)
baserevid

ID of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions. Self-conflicts cause the edit to fail unless basetimestamp is set.

Type: integer
basetimestamp

Timestamp of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions&rvprop=timestamp. Self-conflicts are ignored.

Mota: data-zigilua (onartutako formatuak)
starttimestamp

Timestamp when the editing process began, used to detect edit conflicts. An appropriate value may be obtained using curtimestamp when beginning the edit process (e.g. when loading the page content to edit).

Mota: data-zigilua (onartutako formatuak)
recreate

Bitartean ezabatu den orrialdearen inguruko akatsak gainidaztea.

Type: boolean (details)
createonly

Ez aldatu orria jadanik existitzen bada.

Type: boolean (details)
nocreate

Orria ez bada existitzen akatsa bota.

Type: boolean (details)
watch
Zaharkitua.

Orria erabiltzaile honen ikus-zerrendan sartu.

Type: boolean (details)
unwatch
Zaharkitua.

Erabiltzailearen oraingo ikus-zerrendatik orria kendu.

Type: boolean (details)
watchlist

Baldintzarik gabe gehitu edo kendu orria uneko erabiltzaileen jarraipen zerrendatik, erabili hobespenak edo ikuspena ez aldatu.

One of the following values: nochange, preferences, unwatch, watch
Default: preferences
md5

The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.

prependtext

Add this text to the beginning of the page. Overrides text.

appendtext

Add this text to the end of the page. Overrides text.

Use section=new to append a new section, rather than this parameter.

undo

Undo this revision. Overrides text, prependtext and appendtext.

Type: integer
The value must be no less than 0.
undoafter

Undo all revisions from undo to this one. If not set, just undo one revision.

Type: integer
The value must be no less than 0.
redirect

Birbideratzeak automatikoki konpondu.

Type: boolean (details)
contentformat

Sarrera-testuan erabilitako edukien serializazio formatua.

One of the following values: application/json, text/css, text/javascript, text/plain, text/x-wiki
contentmodel

Eduki berriko eduki eredua.

One of the following values: GadgetDefinition, Scribunto, css, javascript, json, sanitized-css, text, wikitext
token

A "csrf" token retrieved from action=query&meta=tokens

The token should always be sent as the last parameter, or at least after the text parameter.

This parameter is required.