Modul:Chronik: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 32: Zeile 32:
local data = {
local data = {
-- Erstmal das Startdatum schreiben
["Startdatum"] = sd,
["Startdatum"] = sd,
["Startjahr"] = get_year(sd),
["Startjahr"] = get_year(sd),
Zeile 39: Zeile 40:
local ed=nil
local ed=nil
if #d > 0 then
if len(d) == 2 then
-- War eine Zeitspanne angegeben gibt es ein Endatum
ed=human_to_form_date(d[1])
ed=human_to_form_date(d[1])
data["Enddatum"] = ed
data["Enddatum"] = ed