편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
14번째 줄: | 14번째 줄: | ||
pagename = title.prefixedText | pagename = title.prefixedText | ||
if action == 'autoreview' then | if action == 'autoreview' then | ||
return 'unknown' | |||
return | |||
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 ) | ||
25번째 줄: | 24번째 줄: | ||
return 'unknown' | return 'unknown' | ||
else | else | ||
local year, month, | local year = mw.ustring.sub( rawExpiry, 1, 4 ) | ||
local month = mw.ustring.sub( rawExpiry, 5, 6 ) | |||
) | local day = mw.ustring.sub( rawExpiry, 7, 8 ) | ||
return year .. '-' .. month .. '-' .. day | |||
end | end | ||
end | end |