Module:Lunar calendar

local LunarCalendar = {}

local threeMonths = require('Module:FRCalendar').ThreeMonthsArgs

function LunarCalendar.Year(frame) local parent = mw.getCurrentFrame:getParent local year = '0'

if parent and parent.args then local pageName = parent.args[1] year = mw.text.split(pageName, '%s') end local one  = threeMonths({'15 Alturiak', year[1]}) local two  = threeMonths({'15 Mirtul' , year[1]}) local three = threeMonths({'15 Eleasis', year[1]}) local four = threeMonths({'15 Uktar'  , year[1]}) return tostring(mw.html.create('table')     :tag('tr')        :tag('td'):wikitext(one):done        :tag('td'):wikitext(two):done      :done      :tag('tr')        :tag('td'):wikitext(three):done        :tag('td'):wikitext(four):done      :done    :allDone) end

return LunarCalendar