API:Změna obsahu wiki

From mediawiki.org
This page is a translated version of the page API:Changing wiki content and the translation is 61% complete.
Outdated translations are marked like this.

Změnu obsahu wiki přes API lze provést pomocí několika různých modulů.

Podrobné informace o každém modulu naleznete v příslušné podsekci. Zápisové moduly obecně vyžadují metodu POST, kde čtecí moduly obvykle používají metody GET. Výjimky jsou uvedeny na jednotlivých stránkách.

Načítání modulů

Načítání modulů
Modul Funkce
Changeauthenticationdata Change authentication data for the current user.
Checktoken Check the validity of a token from action=query&meta=tokens.
Clientlogin Log in to the wiki using the interactive flow.
Compare Zjistí rozdíl mezi 2 stránkami.
Rozbalení šablon Rozbalí všechny šablony ve wikitextu.
Feedcontributions Vrátí kanál příspěvků uživatele.
Feedrecentchanges Returns a recent changes feed.
Feedwatchlist Returns a watchlist feed.
Help Zobrazuje nápovědu k uvedeným modulům.
Linkaccount Link an account from a third-party provider to the current user.
Přihlášení Přihlaste se a získejte ověřovací soubory cookie.
Odhlášení Log out and clear session data.
Otevřené vyhledávání Vyhledávání na wiki pomocí protokolu OpenSearch.
Paraminfo Obtain information about API modules.
Parse Zanalyzuje obsah a vrátí výstup analyzátoru.
Dotazy Načítání dat z MediaWiki a o ní.
Removeauthenticationdata Remove authentication data for the current user.
Rsd Export an RSD (Really Simple Discovery) schema.
Stashedit Připraví úpravu ve sdílené mezipaměti.
Tokeny Získá tokeny pro akce upravující data.
Unlinkaccount Remove a linked third-party account from the current user.

Zápis modulů

Zápis modulů
Modul Funkce
Blok Blokování uživatele.
Clearhasmsg Vymaže příznak hasmsg pro aktuálního uživatele.
Createaccount Vytvoření nového uživatelského účtu.
Mazání Mazání stránky
Úpravy Založení a editace stránek.
Emailuser Pošle uživateli e-mail.
Filerevert Vrátí soubor na starou verzi.
Imagerotate Otočí jeden nebo více obrázků.
Import Importuje stránku z jiné wiki nebo ze souboru XML.
Managetags Perform management tasks relating to change tags.
Mergehistory Merge page histories.
Přesun Move a page.
Možnosti Change preferences of the current user.
Kontrola Patrol a page or revision.
Ochrana Změnit úroveň zamčení stránky.
Čištění Purge the cache for the given titles.
Resetpassword Send a password reset email to a user.
Revisiondelete Delete and undelete revisions.
Vracení zpět Undo the last series of edits to a page by the last user.
Setnotificationtimestamp Update the notification timestamp for watched pages.
Tag Add or remove change tags from individual revisions or log entries.
Unblock Unblock a user.
Obnovení Restore revisions of a deleted page.
Nahrávání Upload a file, or get the status of pending uploads.
Userrights Change a user's group membership.
Sledování Add or remove pages from the current user's watchlist.

Possible errors

Some wikis restrict the use of these modules to certain groups of users, or disallow it altogether. All aforementioned modules can return the following errors:

Code Info
noapiwrite Editing of this wiki through the API is disabled.
writeapidenied You're not allowed to edit this wiki through the API.