Module:Effective protection level: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Fixing content model)
(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.ext.FlaggedRevs.getStabilitySettings(title).autoreview
local level = mw.getCurrentFrame():callParserFunction('PENDINGCHANGELEVEL', pagename)
if level == 'review' then
if level == 'review' then
return 'reviewer'
return 'reviewer'