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=editwarning
(main | editwarning)
- This module requires read rights.
- Source: EditWarning
- License: GPL-3.0-or-later
Deletes or adds articles/sections of a user to the EditWarning Lock table based on the article id and/or section id
Parameters:
- articleid
Article ID of the page you want to lock. (e.g. 56)
- This parameter is required.
- Type: integer
- section
Section ID of the article you want to lock. (e.g. 3)
- Type: integer
- ewaction
'lock' will add an entry. 'unlock' will remove entry
- This parameter is required.
- user
Valid User that the lock entry is related to (e.g. Admin)
- This parameter is required.
Examples:
- Deletes the lock entry of user 'Admin' with article number 1 (Main_Page)
- api.php?action=editwarning&ewaction=lock&articleid=1&user=Admin [open in sandbox]
- Set a lock entry for user 'Admin' with article number 56 (Person:Sebastian_Schmid)
- api.php?action=editwarning&ewaction=unlock&articleid=56&user=Admin [open in sandbox]
- Deletes the lock entry of section 3 of user 'Admin' with article number 1 (Main_Page)
- api.php?action=editwarning&ewaction=lock§ion=3&articleid=1&user=Admin [open in sandbox]
- Set a lock entry for section 3 of user 'Admin' with article number 56 (Person:Sebastian_Schmid)
- api.php?action=editwarning&ewaction=unlock§ion=3&articleid=56&user=Admin [open in sandbox]