Jump to content

Module:Sports table/sub

विकिपीडिया से
en>CRwikiCA (Proper functionality for width) के द्वारा 14:49, 30 अक्टूबर 2014 के बदलाव
-- Subfunctions for this module that are called from the style modules
local ppp = {}

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