Module:Effective protection expiry: Difference between revisions
No flaggedrevs on this wiki
MusikAnimal (talk | contribs) m (1 revision imported) |
(No flaggedrevs on this wiki) |
||
Line 13:
end
pagename = title.prefixedText
if action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= '
▲ error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )
end
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename)
Line 25 ⟶ 22:
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
|