82.367
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 16: | Zeile 16: | ||
-- Wenn das Lemma eine Jahreszahl ist, merken | -- Wenn das Lemma eine Jahreszahl ist, merken | ||
year = nil | local year = nil | ||
if c.istJahreszahl(frame) == "true" then | if c.istJahreszahl(frame) == "true" then | ||
year = titlename | year = titlename | ||
end | end | ||
data_date = dateParsing(frame, args[1], year) | local data_date = dateParsing(frame, args[1], year) | ||
local all_data=merge_tables(data, data_date) | |||
return tableToString( | return tableToString(all_data) .. ': ' .. args[2] | ||
end | end | ||
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 sd=human_to_form_date(s) | local sd=human_to_form_date(s) | ||
local ed=human_to_form_date(s) | local ed=human_to_form_date(s) | ||