Помош со Извршникот на МедијаВики
Ова е самосоздадена документациска страница за извршникот на МедијаВики.
Документација и примери: https://www.mediawiki.org/wiki/API
action=protect
- За овој модул се потребни права на читање.
- За овој модул се потребни права на пишување.
- Овој модул прифаќа само POST-барања.
- Извор: MediaWiki
- Лиценца: GPL-2.0+
Смени го степенот на заштита на страница.
- title
Наслов на страница што се (од)заштитува. Не може да се користи заедно со pageid.
- pageid
Назнака на страница што се (од)заштитува. Не може да се користи заедно со title.
- Тип: цел број
- 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.
- Овој параметар е задолжителен.
- Одделувајте ги вредностите со |. Највеќе допуштени вредности: 50 (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.
- Одделувајте ги вредностите со |. Највеќе допуштени вредности: 50 (500 за ботови).
- По основно: infinite
- reason
Причиина за (од)заштитување
- По основно: (празно)
- tags
Change tags to apply to the entry in the protection log.
- Вредности (одделете ги со |):
- 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.
- Тип: булов (подробно)
- watch
- Застарен.
If set, add the page being (un)protected to the current user's watchlist.
- Тип: булов (подробно)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- Една вредност: watch, unwatch, preferences, nochange
- По основно: preferences
- token
Шифра „csrf“ добиена од action=query&meta=tokens
- Овој параметар е задолжителен.
- Заштити страница
- api.php?action=protect&title=Main%20Page&token=123ABC&protections=edit=sysop|move=sysop&cascade=&expiry=20070901163000|never [open in sandbox]
- 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 [open in sandbox]
- Unprotect a page by setting no restrictions.
- api.php?action=protect&title=Main%20Page&token=123ABC&protections=&reason=Lifting%20restrictions [open in sandbox]