Modul:Jahrestag: Unterschied zwischen den Versionen

fix kal.month_names[
(month_numbers[] von Modul:Kalender)
(fix kal.month_names[)
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 20: Zeile 20:
end
end
month_nr = month_numbers[month]
month_nr = kal.month_numbers[month]


local t='<table class="wikitable monatsbox">'..
local t='<table class="wikitable monatsbox">'..
Zeile 34: Zeile 34:
     t=t..'<th>[['
     t=t..'<th>[['
     if day ~= 0 then
     if day ~= 0 then
     mds = day..'. '..months[md]
     mds = day..'. '..kal.month_names[md]
     for i = 0, 2 do
     for i = 0, 2 do
       mds = tostring(day-i)..'. '..months[md]
       mds = tostring(day-i)..'. '..kal.month_names[md]
     if mw.title.new(mds).exists then
     if mw.title.new(mds).exists then
     break
     break
Zeile 43: Zeile 43:
     t=t..mds
     t=t..mds
     else
     else
     t=t..':Kategorie:'..months[md]
     t=t..':Kategorie:'..kal.month_names[md]
     end
     end
     t=t..'|◄]]</th>'..
     t=t..'|◄]]</th>'..
Zeile 57: Zeile 57:
     t=t..'<th>[['
     t=t..'<th>[['
     if day ~= 0 then
     if day ~= 0 then
     mus = day..'. '..months[mu]
     mus = day..'. '..kal.month_names[mu]
     for i = 0, 2 do
     for i = 0, 2 do
     mus = tostring(day-i)..'. '..months[mu]
     mus = tostring(day-i)..'. '..kal.month_names[mu]
     if mw.title.new(mus).exists then
     if mw.title.new(mus).exists then
     break
     break
Zeile 66: Zeile 66:
     t=t..mus
     t=t..mus
else
else
     t=t..':Kategorie:'..months[mu]
     t=t..':Kategorie:'..kal.month_names[mu]
     end
     end
     t=t..'|►]]</th>'
     t=t..'|►]]</th>'