Modul:Jahrestag: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
(Der Monat muß sich nicht selbst kategorisieren)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
local p = {}
local p = {}
local c = require( "Module:Common" )
local str = require( "Module:String" )
local arr = require( "Modul:Array" )


function p.Kalender( frame )
function p.Kalender( frame )
Zeile 6: Zeile 7:
args = pf.args
args = pf.args
pt = mw.title.getCurrentTitle().text
pt = mw.title.getCurrentTitle().text
ma=split(pt, '.')
ma=str.split(pt, '.')
if #ma == 0 then
if #ma == 0 then
day = 0
day = 0
month = ma[0]
month = ma[0]
else
else
day = rtrim(ma[0])
day = str.rstrip(ma[0])
month = ltrim(ma[1])
month = str.lstrip(ma[1])
end
end
Zeile 83: Zeile 84:
a=6
a=6
if d == 29 then
if d == 29 then
if contains({'April', 'Juni', 'September', 'November'}, month) then
if arr.contains({'April', 'Juni', 'September', 'November'}, month) then
a=1
a=1
elseif month == 'Februar' then
elseif month == 'Februar' then
82.367

Bearbeitungen