Module:Effective protection expiry:修订间差异
删除的内容 添加的内容
enwiki>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)) |
IdleTap-bot(留言 | 贡献) 导入自求闻百科 |
||
| (未显示另一用户的1个中间版本) | |||
第14行:
pagename = title.prefixedText
if action == 'autoreview' then
return 'unknown'
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 )
第25行 ⟶ 第24行:
return 'unknown'
else
local year
local month = mw.ustring.sub( rawExpiry, 5, 6 )
local day = mw.ustring.sub( rawExpiry, 7, 8 )
return year .. '-' .. month .. '-' .. day
end
end
| |||