Modul:Effective protection expiry: Unterschied zwischen den Versionen

K
15 Versionen von wpen:Module:Effective_protection_expiry importiert
(return a yyyy-mm-ddThh:mm:ss timestamp, rather than just yyyy-mm-dd)
K (15 Versionen von wpen:Module:Effective_protection_expiry importiert)
 
(5 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt)
Zeile 14: Zeile 14:
pagename = title.prefixedText
pagename = title.prefixedText
if action == 'autoreview' then
if action == 'autoreview' then
return 'unknown'
local stabilitySettings = mw.ext.FlaggedRevs.getStabilitySettings(title)
return stabilitySettings and stabilitySettings.expiry or 'unknown'
elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then
elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then
error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )
error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )