Module:Effective protection expiry: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
end |
end |
||
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) |
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) |
||
if rawExpiry == 'infinity' then |
|||
⚫ | |||
return 'infinity' |
|||
⚫ | |||
else |
|||
local day = mw.ustring.sub( rawExpiry, 7, 8 ) |
|||
local year = mw.ustring.sub( rawExpiry, 1, 4 ) |
|||
⚫ | |||
⚫ | |||
return year .. '-' .. month .. '-' .. day |
|||
end |
|||
end |
end |
||