Anonymous user
Module:Effective protection expiry: Difference between revisions
Module:Effective protection expiry (view source)
Revision as of 21:28, 10 December 2015
, 8 years agono edit summary
No edit summary |
No edit summary |
||
Line 19:
end
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename)
if rawExpiry == 'infinity' then
local year = mw.ustring.sub( rawExpiry, 1, 4 )▼
return 'infinity'
local month = mw.ustring.sub( rawExpiry, 5, 6 )▼
else
return year .. '-' .. month .. '-' .. day
end
end
|