Module:FamilyChart

local Chart = {} -- symbol data in Chart/data

function Chart.chart( frame ) -- Calls _chart from #invoke or

end

function Chart.start( frame ) -- Implements -- Can't use mw.html because it's not a complete ' end

function Chart.next( frame ) -- Implements a better solution than the tag soup of the entries. Yet to be developed; one thing at a time. end

function Chart._chart( args ) -- Magic done here, so it can be included by other Modules if need be. if ( tiles[args['type']] or tiles[args[1]] ) then -- It's a tile elseif not ( args['type'] or args[1] ) then -- It's a blank else -- It's a box end end

function Chart._box( args ) -- Magic done here, so it can be included by other Modules if need be. local content = args['content'] or args[1] or '' local borderwidth = args['borderwidth'] or args[2] or '1' local box = mw.html.create('td') :attr('colspan',args['colspan'] or args[4] or '1'):attr('rowspan',args['rowspan'] or args[5] or '1') :css('border',borderwidth..'px solid black'):css('padding','0.2em'):attr('style',args['style'] or args[3] or '') :wikitext(content):done return tostring( box ) end

return Chart