Module:Sports table/College: Difference between revisions

Content deleted Content added
m test
mNo edit summary
 
Line 10:
local team_width = Args['teamwidth'] or '190'
local group_width = Args['groupwidth'] or '28'
local score_width = Args['scorewidth'] or '28'
local sort_text = yesno(Args['sortable_table'] or 'no') and ' sortable' or ''
local show_played = not yesno(Args['hide_played'] or 'no')
Line 108 ⟶ 109:
tt = p_sub.colhead(tt,team_width,team_head_text..VTE_text) -- Team col
if show_played then
tt = p_sub.colhead(tt,28score_width,played_head_text) -- Matches played col
end
if full_table then
Line 114 ⟶ 115:
for k,v in ipairs(lbls) do
local apre, tpre = v[1], v[2]
tt = p_sub.colhead(tt,'28'score_width..sps,'<abbr title="'..tpre..'won">'..apre..'W</abbr>') -- Win col
if loss_first then
tt = p_sub.colhead(tt,28score_width,'<abbr title="'..tpre..'lost">'..apre..'L</abbr>') -- Loss col
if show_tie then
tt = p_sub.colhead(tt,28score_width,'<abbr title="'..tpre..'tied">'..apre..'T</abbr>') -- tie col
end
else
if show_tie then
tt = p_sub.colhead(tt,28score_width,'<abbr title="'..tpre..'tied">'..apre..'T</abbr>') -- tie col
end
tt = p_sub.colhead(tt,28score_width,'<abbr title="'..tpre..'lost">'..apre..'L</abbr>') -- Loss col
end
if rounds_won then
tt = p_sub.colhead(tt,28score_width,'<abbr title="'..tpre..'rounds won">'..apre..'RW</abbr>') -- Rounds won
end
if not hide_for_against and not only_fa_totals then
tt = p_sub.colhead(tt,28score_width,'<abbr title="'..tpre..fa_word_plur..' for">'..apre..fa_letter..'F</abbr>') -- For col
tt = p_sub.colhead(tt,28score_width,'<abbr title="'..tpre..fa_word_plur..' against">'..apre..fa_letter..'A</abbr>') -- Against col
end
if show_perc then