「モジュール:Effective protection expiry」の版間の差分

2版 をインポートしました
template>K-iczn
(en:Module:Effective protection expiry 2016年7月16日 (土) 02:37‎(UTC)より)
(2版 をインポートしました)
 
(4人の利用者による、間の7版が非表示)
14行目: 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( '第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)
33行目: 34行目:
)
)
else
else
error('internal error in Module:Effective protection expiry; malformed expiry timestamp')
error('[[モジュール:Effective protection expiry]]のエラー; 有効期限のタイムスタンプの書式が不正です')
end
end
end
end