MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=delete
- Ta modul zahteva pravice branja.
- This module requires write rights.
- Ta modul sprejema samo zahtevke POST.
- Source: MediaWiki
- License: GPL-2.0-or-later
Izbriše stran.
- title
Naslov strani za izbris. Ni ga mogoče uporabiti skupaj z pageid.
- pageid
ID strani za izbris. Ni ga mogoče uporabiti skupaj s title.
- Vtipkajte: celo število
- reason
Reason for the deletion. If not set, an automatically generated reason will be used.
- tags
Change tags to apply to the entry in the deletion log.
- Values (separate with | or alternative):
- deletetalk
Izbris pogovorne strani, če obstaja.
- Type: boolean (details)
- watch
- Opuščeno.
Add the page to the current user's watchlist.
- 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
- Privzeto: preferences
- unwatch
- Opuščeno.
Remove the page from the current user's watchlist.
- Type: boolean (details)
- oldimage
The name of the old image to delete as provided by action=query&prop=imageinfo&iiprop=archivename.
- token
A "csrf" token retrieved from action=query&meta=tokens
- Ta parameter je obvezen.
- Izbriši stran Main Page.
- api.php?action=delete&title=Main%20Page&token=123ABC [open in sandbox]
- Izbris Glavne strani z razlogom Priprava za prestavitev.
- api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move [open in sandbox]