16,040
回編集
bsd>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))) |
細 (1版 をインポートしました) |
||
17行目: | 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( '第1引数にはedit、move、create、upload、autoreviewのどれかを指定してください', 2 ) | ||
end | end | ||
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) | local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) | ||
34行目: | 34行目: | ||
) | ) | ||
else | else | ||
error(' | error('[[モジュール:Effective protection expiry]]のエラー; 有効期限のタイムスタンプの書式が不正です') | ||
end | end | ||
end | end |