82.367
Bearbeitungen
Keine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 5: | Zeile 5: | ||
function p.Eintrag(frame) | function p.Eintrag(frame) | ||
args = frame.args | local args = frame.args | ||
title = mw.title.getCurrentTitle() | local title = mw.title.getCurrentTitle() | ||
titlename = title.text | local titlename = title.text | ||
fulltitle = title.fullText | local fulltitle = title.fullText | ||
data = { | local data = { | ||
["Beschreibung"] = args[2], | ["Beschreibung"] = args[2], | ||
["Thema"] = "Ereignis", | ["Thema"] = "Ereignis", | ||
| Zeile 29: | Zeile 29: | ||
-- 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{title='SmwDatum', args={[1]=s}} | --x=frame:expandTemplate{title='SmwDatum', args={[1]=s}} | ||
sd=human_to_form_date(s) | local sd=human_to_form_date(s) | ||
ed=human_to_form_date(s) | local ed=human_to_form_date(s) | ||
local data = { | |||
["Startdatum"] = sd, | ["Startdatum"] = sd, | ||
["Startjahr"] = get_year(sd), | ["Startjahr"] = get_year(sd), | ||