Modul:Chronik: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 27: Zeile 27:
function dateParsing(frame, s, year)
function dateParsing(frame, s, year)
-- 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('1. Dezember 2013 - 12. Dezember 2013', '-')
local d=split('1. Dezember 2013', '-')
local sd=human_to_form_date(d[0])
local sd=human_to_form_date(d[0])
Zeile 34: Zeile 34:
["Startjahr"] = get_year(sd),
["Startjahr"] = get_year(sd),
["Starttag"] = get_monthday(sd),
["Starttag"] = get_monthday(sd),
["jabba"] = #d,
}
}
Zeile 42: Zeile 43:
data["Endjahr"] = get_year(ed)
data["Endjahr"] = get_year(ed)
data["Endtag"] = get_monthday(ed)
data["Endtag"] = get_monthday(ed)
data["jabba"] = #d
end
end
return data
return data
82.367

Bearbeitungen