This module provides a way to retrieve the group required to perform a given action on a page.
Usage
Warning: This module will use up to four expensive parser function calls each time it is ran. It should only be used if the exact effective protection level is necessary. Otherwise, consider using title.protectionLevels instead.
From other modules
To load this module:
local effectiveProtectionLevel = require('Module:Effective protection level')._main
From wikitext
{{#invoke:Effective protection level|action|title}}
Parameters
This module accepts two parameters, which are the same whether invoked in wikitext or through another module. The first is a string containing the action to check, which must be "edit", "create", "move", "upload", or "undelete". The second is optional, and can either be the name of the page to check, or a title returned from the mw.title functions. If the second parameter is omitted, the page being displayed is the one checked against.
Return value
The return value is a string containing the name of the group required to perform the given action. The following are possible return values:
staffsysopcontent-moderatorautoconfirmedemailconfirmed*
If * is returned, an error has occurred.