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=protect

(main | protect)
  • 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+

Change the protection level of a page.

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

Típus: egész
protections

List of protection levels, formatted action=level (e.g. edit=sysop).

Note: Any actions not listed will have restrictions removed.

Ez a paraméter kötelező.
Separate values with |. Maximum number of values is 50 (500 for bots).
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.

Separate values with |. Maximum number of values is 50 (500 for bots).
Default: infinite
reason

Reason for (un)protecting.

Default: (empty)
tags

Change tags to apply to the entry in the protection log.

Értékek (elválasztó: |):
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.

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

If set, add the page being (un)protected to 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
token

A "csrf" token retrieved from action=query&meta=tokens

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