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/Special:MyLanguage/API:Main_page
action=spamregex
(main | spamregex)
- 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: Regular Expression Spam Block
- Licence: GPL-2.0-or-later
Add entries to SpamRegex or remove already blocked entries from it.
Parametry:
- do
What to do? Either add or delete.
- This parameter is required.
- Jedna z následujících hodnot: add, delete
- modes
Block modes, i.e. should the phrase we're trying to block be blocked in page content (text), edit summaries (summary) or both?
- Hodnoty (oddělené | nebo alternativou.): summary, text
- phrase
The spam phrase to be blocked or removed from SpamRegex.
- This parameter is required.
- reason
Reason for adding an entry to SpamRegex. Mandatory when adding entries, not used when deleting.
- token
Token typu „csrf“ získaný pomocí action=query&meta=tokens.
- This parameter is required.
Příklady:
- Add the phrase "FooBar" with the reason "Cross-wiki spam" to SpamRegex, blocking it both in page text as well as in edit summaries
- api.php?action=spamregex&do=add&phrase=FooBar&reason=Cross-wiki%20spam&modes=summary|text&token=123ABC [otevřít v pískovišti]
- Remove the phrase "Test, just a test" from SpamRegex
- api.php?action=spamregex&do=delete&phrase=Test,%20just%20a%20test&token=123ABC [otevřít v pískovišti]