Modul:Jahrestag: Unterschied zwischen den Versionen

Aus FürthWiki

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 30: Zeile 30:
md = 12
md = 12
end
end
-- Der md (month-down-button) verlinkt zum nächsten Tag der existiert
     t=t..'<th>[['
     t=t..'<th>[['
     if day ~= 0 then
     if day ~= 0 then
     mds = day..'. '..months[md]
     mds = day..'. '..months[md]
     if not mw.title.new(mds).exists then
     for i = 0, 2 do
    mds = tostring(day-1)..'. '..months[md]
      mds = tostring(day-i)..'. '..months[md]
    if mw.title.new(mds).exists then
    break
    end
     end
     end
     t=t..mds
     t=t..mds
Zeile 48: Zeile 53:
mu = 1
mu = 1
end
end
-- Der mu (month-up-button) verlinkt zum nächsten Tag der existiert
     t=t..'<th>[['
     t=t..'<th>[['
     if day ~= 0 then
     if day ~= 0 then
     mus = day..'. '..months[mu]
     mus = day..'. '..months[mu]
     if not mw.title.new(mus).exists then
     for i = 0, 2 do
     mus = tostring(day-1)..'. '..months[mu]
     mus = tostring(day-i)..'. '..months[mu]
    if mw.title.new(mus).exists then
    break
    end
     end
     end
     t=t..mus
     t=t..mus
82.367

Bearbeitungen