Module:Effective protection expiry: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
local subString = require('Module:String').sub
local p = {}
 
Line 19 ⟶ 18:
error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )
end
local expiryrawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename)
local year = mw.ustring.sub( rawExpiry, 1, 4 )
return expiry
local month = mw.ustring.sub( rawExpiry, 5, 6 )
local day = mw.ustring.sub( rawExpiry, 7, 8 )
return year .. '-' .. month .. '-' .. day
end
 
Anonymous user