Modul:Jahrestag: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 9: Zeile 9:
day = rtrim(ma[0])
day = rtrim(ma[0])
month = ltrim(ma[1])
month = ltrim(ma[1])
months=getMonthList()
for i, v in ipairs(months) do
if v == month then
month_nr = i
end
end
t = '<table class="wikitable monatsbox">'..
t = '<table class="wikitable monatsbox">'..
'<tr>'..
'<tr>'..
     '<th>◄</th>'..
     '<th>[['..months[month_nr-1]..'|]]</th>'..
     '<th colspan="5">[[:Kategorie:'..month..'|'..month..']]</th>'..
     '<th colspan="5">[[:Kategorie:'..month..'|'..month..']]</th>'..
     '<th>►</th>'..
     '<th>[['..months[month_nr+1]..'|]]</th>'..
'</th>'
'</th>'
t = t..'<tr>'
t = t..'<tr>'
for i=1, 7 do
for i=1, 7 do