Modul:ArtikelDesTages: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Die Seite wurde neu angelegt: „local p = {} local artikel = { "Anleitungen", "Projekte", "Downloads", "FAQ", "Neuigkeiten", "Über das Wiki", "Geschichte", "Technik", "Glossar", "Tipps und Tricks" } function p.main(frame) local tag = tonumber(frame:preprocess("{{CURRENTDAY}}")) local monat = tonumber(frame:preprocess("{{CURRENTMONTH}}")) local jahr = tonumber(frame:preprocess("{{CURRENTYEAR}}")) local wert = jahr * 10000 + mon…“ |
Keine Bearbeitungszusammenfassung |
||
| Zeile 2: | Zeile 2: | ||
local artikel = { | local artikel = { | ||
" | "Saison 2019/20" | ||
} | } | ||
Version vom 3. September 2026, 10:14 Uhr
Die Dokumentation für dieses Modul kann unter Modul:ArtikelDesTages/Doku erstellt werden
local p = {}
local artikel = {
"Saison 2019/20"
}
function p.main(frame)
local tag = tonumber(frame:preprocess("{{CURRENTDAY}}"))
local monat = tonumber(frame:preprocess("{{CURRENTMONTH}}"))
local jahr = tonumber(frame:preprocess("{{CURRENTYEAR}}"))
local wert = jahr * 10000 + monat * 100 + tag
local index = (wert % #artikel) + 1
local titel = artikel[index]
return string.format(
"[[%s|%s]]",
titel,
titel
)
end
return p