Module:Month

local p = {}

local monthData = mw.loadData( 'Module:Month/data' ) local monthAliases = monthData[1] local monthNumbers = monthData[2]

function p.month( frame ) local month = frame.args[1] local monthAlias = monthAliases[string.lower( month )] if monthAlias ~= nil then return monthAlias end return month end

function p.monthNo( frame ) local month = frame.args[1] local monthNumber = monthNumbers[string.lower( month )] if monthNumber ~= nil then return monthNumber end return month end

return p