Modul:Chronik: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 19: Zeile 19:
year = titlename
year = titlename
     end
     end
     date = dateParsing(args[1], year)
     date = dateParsing(frame, args[1], year)
      
      
return date .. ': ' .. args[2]
return date .. ': ' .. args[2]
end
end


function dateParsing(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
x=frame:expandTemplate{'SmwDatum', args[1]}
x=frame:expandTemplate{'SmwDatum', args[1]}
82.367

Bearbeitungen