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

(main | protect)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo richiede i diritti di scrittura.
  • Questo modulo accetta solo richieste POST.
  • Fonte: MediaWiki
  • Licenza: GPL-2.0-or-later

Modifica il livello di protezione di una pagina.

Parametri specifici:
Sono disponibili altri parametri generali.
title

Titolo della pagina da (s)proteggere. Non può essere usato insieme a pageid.

pageid

ID della pagina da (s)proteggere. Non può essere usato insieme con title.

Type: integer
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.

This parameter is required.
Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
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.

Separa i valori con | o alternativa.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
Default: infinite
reason

Reason for (un)protecting.

Predefinito: (vuoto)
tags

Modifica etichette da applicare all'elemento del registro delle protezioni.

Valori (separati da | o alternativa):
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.

Tipo: booleano (dettagli)
watch
Deprecato.

If set, add the page being (un)protected to the current user's watchlist.

Tipo: booleano (dettagli)
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

Uno dei seguenti valori: nochange, preferences, unwatch, watch
Default: preferences
token

Un token "csrf" recuperato da action=query&meta=tokens

This parameter is required.