Modul:NewsArtikel: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 144: Zeile 144:
table.insert(out, '[[Kategorie:News:Veröffentlicht]]')
table.insert(out, '[[Kategorie:News:Veröffentlicht]]')
if monat then
if monat then
-- table.insert(out, '[[Kategorie:Archiv-News/' .. monat .. ']]')
  local sy, sm, sd = datum:match('^(%d%d%d%d)%-(%d%d)%-(%d%d)')
local sortKey = string.format('%s. %s %s', d, mname, y)
  if sy then
table.insert(out, '[[Kategorie:Archiv-News/' .. monat .. '|' .. sortKey .. ']]')
    local smi = tonumber(sm)
    local smname = monate[smi] or sm
    local sortKey = string.format('%s. %s %s', sd, smname, sy)
    table.insert(out, '[[Kategorie:Archiv-News/' .. monat .. '|' .. sortKey .. ']]')
  else
    table.insert(out, '[[Kategorie:Archiv-News/' .. monat .. ']]')
  end
end
end
else
else