Module:Sports table

This is an old revision of this page, as edited by CRwikiCA (talk | contribs) at 18:18, 12 September 2014 (Just some testing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

-- Module to build tables for standings in football
-- Undocumented sandbox version now

local p = {}
 
-- Main function
function p.main(frame)
	local t = {}
	local args = frame.args[1] and frame.args or frame:getParent().args
	
	local team1 = args['team1']
	
	table.insert(t, team1.code..'\n')
	table.insert(t, 'Test line just before return statement')
	return table.concat( t, '\n' )
end
 
return p