Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API

action=edit

(main | edit)
  • Ten moduł wymaga praw odczytu.
  • Ten moduł wymaga praw zapisu.
  • Ten moduł akceptuje tylko żądania POST.

Utwórz i edytuj strony.;

Parametry:
title

Title of the page to edit. Cannot be used together with pageid.

pageid

Page ID of the page to edit. Cannot be used together with title.

section

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

sectiontitle

The title for a new section.

text

Zawartość strony.

summary

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

tags

Change tags to apply to the revision.

Wartości (oddziel za pomocą |):
minor

Drobna zmiana.

notminor

Nie drobna zmiana.

bot

Oznacz tę edycję jako edycję bota.

basetimestamp

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

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).

recreate

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

createonly

Don't edit the page if it exists already.

nocreate

Throw an error if the page doesn't exist.

watch
Przestarzałe.

Dodaj stronę do aktualnej listy obserwacji użytkownika.

unwatch
Przestarzałe.

Usuń stronę z aktualnej listy obserwacji użytkownika.

watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.

Jedna wartość: watch, unwatch, preferences, nochange
Domyślnie: 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.

undoafter

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

redirect

Automatically resolve redirects.

contentformat

Content serialization format used for the input text.

Jedna wartość: text/x-wiki, text/javascript, application/json, text/css, text/plain
contentmodel

Content model of the new content.

Jedna wartość: wikitext, javascript, json, css, text
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.

Ten parametr jest wymagany.
captchaword

Answer to the CAPTCHA

captchaid

CAPTCHA ID from previous request