MediaWiki API súgó

Ez egy automatikusan generált MediaWiki API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/API

action=edit

(main | edit)
  • Ez a modul olvasási jogot igényel.
  • Ez a modul írási jogot igényel.
  • Ez a modul csak POST kéréseket fogad el.
  • Forrás: MediaWiki
  • Licenc: GPL-2.0+

Lapok létrehozása és szerkesztése.

Paraméterek:
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.

Típus: egész
section

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

sectiontitle

Az új szakasz címe.

text

Page content.

summary

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

tags

Change tags to apply to the revision.

Értékek (elválasztó: |):
minor

Apró változtatás.

Típus: logikai (részletek)
notminor

Non-minor edit.

Típus: logikai (részletek)
bot

Szerkesztés megjelölése botszerkesztésként.

Típus: logikai (részletek)
basetimestamp

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

Típus: időbélyeg (engedélyezett formátumok)
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).

Típus: időbélyeg (engedélyezett formátumok)
recreate

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

Típus: logikai (részletek)
createonly

Ne szerkeszd a lapot, ha már létezik.

Típus: logikai (részletek)
nocreate

Throw an error if the page doesn't exist.

Típus: logikai (részletek)
watch
Elavult.

Add the page to the current user's watchlist.

Típus: logikai (részletek)
unwatch
Elavult.

Remove the page from the current user's watchlist.

Típus: logikai (részletek)
watchlist

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

A következő értékek egyike: watch, unwatch, preferences, nochange
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.

Típus: egész
undoafter

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

Típus: egész
redirect

Automatically resolve redirects.

Típus: logikai (részletek)
contentformat

Content serialization format used for the input text.

A következő értékek egyike: text/x-wiki, text/javascript, application/json, text/css, text/plain
contentmodel

Content model of the new content.

A következő értékek egyike: 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.

Ez a paraméter kötelező.
A lap eredeti címe: „https://hu.opensuse.org/Speciális:ApiHelp