Module:Sports table/College: Difference between revisions

Content deleted Content added
No edit summary
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 9:
-- Pre stuff
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 103 ⟶ 105:
-- Add group header
if full_table and group_col then
tt = p_sub.colhead(tt,28group_width,group_head_text) -- Group col
end
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 113 ⟶ 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
Line 482 ⟶ 484:
-- ------------------------------------------------------------
local status_code, status_called = {}, {}
status_code = { A='Advance to conferencea championshipfurther round', C='College Football Playoff championChampion', D='Disqualified',
E='Eliminated', G='Guest', H='Host', O='Play-off winner', P='Promoted', Q='Qualified tofor the phase indicated',R='Relegated',
R='Relegated', T='Qualified, but not yet tofor the particular phase indicated', X='Division champion', Y='Confernce champion',}
Z='College Football Playoff participant'
}
local status_letters = (Args['status_order'] or '') .. 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'