Module:Effective protection expiry: Difference between revisions
handles special pages
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))) |
(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 ) |