Modul:Jahrestag: Unterschied zwischen den Versionen

Aus FürthWiki

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 16: Zeile 16:
end
end
end
end
t = '<table class="wikitable monatsbox">'..
'<tr>'
t = '<table class="wikitable monatsbox">'..
-- Von Januar aus wieder auf Dezember springen
'<tr>'..
md = month_nr-1
    '<th>[['..day..'. '..months[month_nr-1]..'|◄]]</th>'..
if md == 0 then
    '<th colspan="5">[[:Kategorie:'..month..'|'..month..']]</th>'..
md = 12
    '<th>[['..day..'. '..months[month_nr+1]..'|►]]</th>'..
end
'</th>'
    t=t..'<th>[['..day..'. '..months[md]..'|◄]]</th>'..
        '<th colspan="5">[[:Kategorie:'..month..'|'..month..']]</th>'
   
    -- Von Dezember aus wieder auf Januar springen
    mu = month_nr+1
if mu == 13 then
mu = 1
end
    t=t..'<th>[['..day..'. '..months[mu]..'|►]]</th>'..
    '</th>'
-- A weng ungambert, aber funktioniert ;-)
-- A weng ungambert, aber funktioniert ;-)