Module:Effective protection expiry: Difference between revisions
Content added Content deleted
Enwikipedia>Cenarium m (Protected "Module:Effective protection expiry": Highly visible page: looks ready for deploy in protection banner ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
Enwikipedia>Cenarium (handles special pages) |
||
Line 21: | Line 21: | ||
if rawExpiry == 'infinity' then |
if rawExpiry == 'infinity' then |
||
return 'infinity' |
return 'infinity' |
||
elseif rawExpiry == '' then |
|||
return 'unknown' |
|||
else |
else |
||
local year = mw.ustring.sub( rawExpiry, 1, 4 ) |
local year = mw.ustring.sub( rawExpiry, 1, 4 ) |