پودمان:Effective protection expiry: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
جز
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))
جز (۱ نسخه واردشده) |
en.wikipedia>Xaosflux جز (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))) |
||
خط ۱۷: | خط ۱۷: | ||
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) | ||
خط ۳۴: | خط ۳۴: | ||
) | ) | ||
else | else | ||
error(' | error('internal error in Module:Effective protection expiry; malformed expiry timestamp') | ||
end | end | ||
end | end |