Jump to content

Module:Sports table/sub

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by CRwikiCA (talk | contribs) at 14:50, 30 October 2014 (One declaration only). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

-- Subfunctions for this module that are called from the style modules
local ppp = {}

function ppp.colhead(ttt,width,text)
	-- For individual column headers
	local head_string
	if width=='auto' then
		head_string = '! scope="col" |'..text..'\n'
	else
		head_string = '! scope="col" width='..width..'|'..text..'\n'
	end

	ttt.count = ttt.count+1
	table.insert(ttt.tab_text,head_string)
	
	return ttt
end

return ppp