Modul:Chronik: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 29: Zeile 29:
-- Parses a date down where s is the datestring and year can be nil or string
-- Parses a date down where s is the datestring and year can be nil or string
local d=split(s, '-')
local d=split(s, '-')
if len(d) == 1 then
d=split(s, 'bis')
end
local sds = checkYear(d[0], year)
local sd=human_to_form_date(d[0])
local sd=human_to_form_date(d[0])
Zeile 51: Zeile 55:
end
end
return data
return data
end
function checkYear(s, year)
-- Wenn s nicht auf eine Jahreszahl endet, dann füge diese hinzu
    return s
end
function checkMonth(s, month)
-- Aua
return s
end
end


return p
return p