Modul:Effective protection expiry: Unterschied zwischen den Versionen
Modul:Effective protection expiry (Quelltext anzeigen)
Version vom 10. Dezember 2015, 22:28 Uhr
, vor 10 Jahrenkeine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 19: | Zeile 19: | ||
end | end | ||
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) | local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) | ||
local year = mw.ustring.sub( rawExpiry, 1, 4 ) | if rawExpiry == 'infinity' then | ||
return 'infinity' | |||
else | |||
local year = mw.ustring.sub( rawExpiry, 1, 4 ) | |||
local month = mw.ustring.sub( rawExpiry, 5, 6 ) | |||
local day = mw.ustring.sub( rawExpiry, 7, 8 ) | |||
return year .. '-' .. month .. '-' .. day | |||
end | |||
end | end | ||