FANDOM


local Chart = {}
-- symbol data in Chart/data
 
function Chart.chart( frame )
-- Calls _chart from #invoke or {{Chart}}
 
end
 
function Chart.start( frame )
-- Implements {{Chart/start}}
-- Can't use mw.html because it's not a complete <table>
local tag = '<table style="border-spacing: 0px; '..tostring( frame.args['style'] or '')..'">'
return tag
end
 
function Chart.End( frame )
-- Implements {{Chart/end}}
return '</table>'
end
 
function Chart.next( frame )
-- Implements a better solution than the tag soup of the {{Chart}} 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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.