Modul:Jahrestag: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 24: Zeile 24:
'</th>'
'</th>'
t=t..Woche(1)..
t=t..Woche(1, month)..
Woche(8)..
Woche(8, month)..
Woche(15)..
Woche(15, month)..
Woche(22)
Woche(22, month)
if contains({'April', 'Juni', 'September', 'November'}, month) then
if contains({'April', 'Juni', 'September', 'November'}, month) then
Zeile 47: Zeile 47:
end  
end  


function Woche(d)
function Woche(d, month)
t = '<tr>'
t = '<tr>'
for i=d, d+6 do
for i=d, d+6 do
     t=t..'<td align="right">'..i..'</td>'
     t=t..'<td align="right">[['..i..'. '..month..'</td>'
end
end
t = t..'</tr>'
t = t..'</tr>'