Module:Effective protection expiry: Difference between revisions
Module:Effective protection expiry (view source)
Revision as of 14:29, 23 February 2022
, 23 February 2022Changed protection settings for "Module:Effective protection expiry": used in the mediawiki interface / match Module:Effective protection level ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))
m (سطح محافظت «module:Effective protection expiry» را تغییر داد: الگوهای حساس ([ویرایش=تنها کاربران تأییدشدهٔ پایدار و مدیران] (بیپایان) [انتقال=تنها کاربران تأییدشدهٔ پایدار و مدیران] (بیپایان))) |
m (Changed protection settings for "Module:Effective protection expiry": used in the mediawiki interface / match Module:Effective protection level ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))) |
||
Line 17: | Line 17: | ||
return stabilitySettings and stabilitySettings.expiry or 'unknown' | 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( ' | error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 ) | ||
end | end | ||
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) | local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) | ||
Line 34: | Line 34: | ||
) | ) | ||
else | else | ||
error(' | error('internal error in Module:Effective protection expiry; malformed expiry timestamp') | ||
end | end | ||
end | end |