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/API
action=protect
- 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: MediaWiki
- Licence: GPL-2.0-or-later
ZmÄnit úroveÅ zamÄenà stránky.
- title
Title of the page to (un)protect. Cannot be used together with pageid.
- pageid
ID of the page to (un)protect. Cannot be used together with title.
- Typ: celé ÄÃslo
- protections
List of protection levels, formatted action=level (e.g. edit=sysop). A level of all means everyone is allowed to take the action, i.e. no restriction.
Note: Any actions not listed will have restrictions removed.
- Tento parametr je povinný.
- Hodnoty oddÄlujte pomocà | nebo alternativou. Maximálnà poÄet hodnot je 50 (pro boty 500).
- expiry
Expiry timestamps. If only one timestamp is set, it'll be used for all protections. Use infinite, indefinite, infinity, or never, for a never-expiring protection.
- Hodnoty oddÄlujte pomocà | nebo alternativou. Maximálnà poÄet hodnot je 50 (pro boty 500).
- Implicitnà hodnota: infinite
- reason
Důvod pro odemÄenÃ.
- Implicitnà hodnota: (prázdné)
- tags
Change tags to apply to the entry in the protection log.
- Hodnoty (oddÄlené | nebo alternativou.):
- cascade
Enable cascading protection (i.e. protect transcluded templates and images used in this page). Ignored if none of the given protection levels support cascading.
- Typ: boolean (podrobnosti)
- watch
- Zastaralý.
If set, add the page being (un)protected to the current user's watchlist.
- Typ: boolean (podrobnosti)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- Jedna z následujÃcÃch hodnot: watch, unwatch, preferences, nochange
- Implicitnà hodnota: preferences
- token
Token typu âcsrfâ zÃskaný pomocà action=query&meta=tokens.
- Tento parametr je povinný.
- Zamknout stránku.
- api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never [otevÅÃt v pÃskoviÅ¡ti]
- Unprotect a page by setting restrictions to all (i.e. everyone is allowed to take the action).
- api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=all|move=all&reason=Lifting%20restrictions [otevÅÃt v pÃskoviÅ¡ti]
- Unprotect a page by setting no restrictions.
- api.php?action=protect&title=Main%20Page&token=123ABC&protections=&reason=Lifting%20restrictions [otevÅÃt v pÃskoviÅ¡ti]