Module:Sports table/sub
Appearance
| This Lua module is used on approximately 69,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
| This module is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
Usage
{{#invoke:Sports table/sub|function_name}}
-- 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(tab_text,head_string)
return ttt
end
return ppp