Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=visualeditoredit
- Tento modul je interní nebo nestabilní. Jeho funkčnost se může bez předchozího upozornění změnit.
- Tento modul vyžaduje oprávnění ke čtení.
- Tento modul vyžaduje oprávnění k zápisu.
- Tento modul přijímá pouze požadavky POST.
- Zdroj: VisualEditor
- Licence: MIT
Save an HTML5 page to MediaWiki (converted to wikitext via the Parsoid service).
- paction
Akce, která se má provést.
- This parameter is required.
- Jedna z následujících hodnot: diff, save, serialize, serializeforcache
- page
Stránka, na níž budou provedeny změny.
- This parameter is required.
- token
Token typu „csrf“ získaný pomocí action=query&meta=tokens.
- This parameter is required.
- wikitext
The wikitext to act with.
- section
The section on which to act.
- sectiontitle
Název nové sekce.
- basetimestamp
Při ukládání toto nastavte na časové razítko revize, která se editovala. Slouží k detekci editačních konfliktů.
- Type: timestamp (allowed formats)
- starttimestamp
Při ukládání toto nastavte na čas, kdy byla stránka načtena. Slouží k detekci editačních konfliktů.
- Type: timestamp (allowed formats)
- oldid
Číslo revize, které se má použít (výchozí: poslední revize). Pro novou stránku použijte „0“.
- Type: integer
- minor
Označit jako malou editaci.
- watchlist
Bezpodmínečně přidat nebo odstranit stránku ze sledovaných stránek aktuálního uživatele, použít nastavení nebo neměnit sledování.
- html
HTML, které bude posláno do Parsoidu namísto wikitextu.
- etag
ETag, který se má poslat.
- summary
Shrnutí editace.
- captchaid
Identifikátor Captcha (při ukládání s Captcha reakcí).
- captchaword
Odpověď na Captcha (při ukládání s Captcha reakcí).
- cachekey
Použít výsledek předchozího požadavku serializeforcache s tímto klíčem. Přepíše html.
- nocontent
Omit the HTML content of the new revision in the response.
- Type: boolean (details)
- returnto
Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.
- Typ: název stránky
- Přijímá neexistující stránky
- returntoquery
URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.
- Implicitní hodnota: (prázdné)
- returntoanchor
URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.
- Implicitní hodnota: (prázdné)
- useskin
Apply the selected skin to the parser output. May affect the following properties: text, langlinks, headitems, modules, jsconfigvars, indicators.
- Jedna z následujících hodnot: apioutput, citizen, fallback
Značky, které chcete použít pro tuto editaci.
- Hodnoty oddělujte pomocí | nebo alternativou.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- plugins
Plugins associated with the API request.
- Hodnoty oddělujte pomocí | nebo alternativou.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- data-{plugin}
Arbitrary data sent by a plugin with the API request.
- This is a templated parameter. When making the request, {plugin} in the parameter's name should be replaced with values of plugins.