Difference between revisions of "Module:Sports table/sub"
Jump to navigation
Jump to search
blackwiki>CRwikiCA (Create) |
blackwiki>CRwikiCA |
||
Line 7: | Line 7: | ||
ttt.count = ttt.count+1 | ttt.count = ttt.count+1 | ||
− | ttt.tab_text = table.insert(tab_text,head_string) | + | ttt.tab_text = table.insert(ttt.tab_text,head_string) |
return ttt | return ttt |
Revision as of 20:56, 29 October 2014
Documentation for this module may be created at Module:Sports table/sub/doc
-- 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 = '! scope="col" width='..width..'|'..text..'\n'
ttt.count = ttt.count+1
ttt.tab_text = table.insert(ttt.tab_text,head_string)
return ttt
end
return ppp