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 | ||
local sy, sm, sd = datum:match('^(%d%d%d%d)%-(%d%d)%-(%d%d)') | |||
if sy then | |||
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 | ||