MedijaViki API pagalba

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.
  • Šaltinis: MediaWiki
  • Licencija: GPL-2.0-or-later

Kurti ir redaguoti puslapius.

Parametrai:
title

Redaguotino puslapio pavadinimas. Negali būti naudojamas kartu su pageid.

pageid

Redaguotino puslapio ID. Negali būti naudojamas kartu su title.

Type: integer
section

Sekcijos numeris. 0 - viršutinei sekcijai, new - naujai sekcijai.

sectiontitle

Naujo skyriaus pavadinimas.

text

Puslapio turinys.

summary

Keitimo santrauka. Taip pat sekcijos pavadinimas, kai section=new ir sectiontitle yra nenustatytas.

tags

Change tags to apply to the revision.

Values (separate with | or alternative):
minor

Šį redagavimą žymėti kaip nežymų pakeitimą.

Type: boolean (details)
notminor

Nesmulkus pakeitimas.

Type: boolean (details)
bot

Pažymėti šį pakeitimą kaip roboto pakeitimą.

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.

Type: timestamp (allowed formats)
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).

Type: timestamp (allowed formats)
recreate

Override any errors about the page having been deleted in the meantime.

Type: boolean (details)
createonly

Neredaguoti puslapio jei jis jau egzistuoja.

Type: boolean (details)
nocreate

Parodyti klaidą, jei puslapis neegzistuoja.

Type: boolean (details)
watch
Deprecated.

Pridėti puslapį į dabartinio vartotojo stebimųjų sąrašą.

Type: boolean (details)
unwatch
Deprecated.

Pašalinti puslapį iš dabartinio naudotojo stebimųjų sąrašo.

Type: boolean (details)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

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

Automatiškai išspręsti peradresavimus.

Type: boolean (details)
contentformat

Content serialization format used for the input text.

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

Naujam turiniui taikomas turinio modelis.

One of the following values: css, javascript, json, sanitized-css, text, unknown, 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.
captchaword

Atsakyti į CAPTCHA

captchaid

CAPTCHA ID iš prieš tai buvusios užklausos