Modul:Chronik: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
(Namenskonvention für Modul-Importe)
Keine Bearbeitungszusammenfassung
Zeile 19: Zeile 19:
local ds = ''
local ds = ''
if not com.isEmpty(data['Starttag']) then
if not com.isEmpty(data['Starttag']) then
ds = '[[' .. data['Starttag'] .. ']]'
ds = '[[' .. data['Starttag'] .. ']] '
end
end
if not year then
if not year then
ds = ds .. ' [[' .. data['Startjahr'] .. ']]'
ds = ds .. '[[' .. data['Startjahr'] .. ']]'
end
end
if data['Enddatum'] then
if data['Enddatum'] then
ds = ds .. " - [[" .. data['Endtag'] .. "]]"
ds = ds .. "- [[" .. data['Endtag'] .. "]]"
if not year then
if not year then
ds = ds .. " [[" .. data['Endjahr'] .. "]]"
ds = ds .. "[[" .. data['Endjahr'] .. "]]"
end
end
end
end