Difference between revisions of "Module:Effective protection level"

use FlaggedRevs' Lua library instead of calling the parser
>Hashar
m (21 revisions imported from w:en:Module:Effective_protection_level)
>Jackmcbarn
(use FlaggedRevs' Lua library instead of calling the parser)
Line 14: Line 14:
pagename = title.prefixedText
pagename = title.prefixedText
if action == 'autoreview' then
if action == 'autoreview' then
local level = mw.getCurrentFrame():callParserFunction('PENDINGCHANGELEVEL', pagename)
local level = mw.ext.FlaggedRevs.getStabilitySettings(title).autoreview
if level == 'review' then
if level == 'review' then
return 'reviewer'
return 'reviewer'
Anonymous user