Module:Sports table/WDL OT: Difference between revisions

Content deleted Content added
Reverted 1 edit by Spike 'em (talk): Rv, there are more that may need doing, discuss further (TW)
optional head_text parameters
Line 19:
local played_head_text = Args['pld_header'] or '<abbr title="Played">Pld</abbr>'
local group_head_text = Args['group_header'] or '<abbr title="Group">Grp</abbr>'
local win_head_text = Args['win_header'] or '<abbr title="Won">W</abbr>'
local OTwin_head_text = Args['OTwin_header'] or '<abbr title="Won in overtime">OTW</abbr>'
local OTloss_head_text = Args['OTloss_header'] or '<abbr title="Lost in overtime">OTL</abbr>'
local PKwin_head_text = Args['PKwin_header'] or '<abbr title="Won on penalty kicks">PKW</abbr>'
local PKloss_head_text = Args['PKloss_header'] or '<abbr title="Lost on penalty kicks">PKL</abbr>'
local loss_head_text = Args['loss_header'] or '<abbr title="Lost">L</abbr>'
local bonus_head_text = Args['bonus_header'] or '<abbr title="Bonus points">BP</abbr>'
local tiebr_head_text = Args['tiebr_header'] or '<abbr title="Tiebreaker">TBR</abbr>'
Line 98 ⟶ 100:
end
if full_table then
tt = p_sub.colhead(tt,32,'<abbr title="Won">W</abbr>'win_head_text) -- Win col
if show_OTwin then tt = p_sub.colhead(tt,32,OTwin_head_text) end
if show_PKwin then tt = p_sub.colhead(tt,32,PKwin_head_text) end
Line 106 ⟶ 108:
if show_OTloss and not OTloss_after then t = p_sub.colhead(tt,32,OTloss_head_text) end
if show_PKloss and not PKloss_after then t = p_sub.colhead(tt,32,PKloss_head_text) end
tt = p_sub.colhead(tt,32,'<abbr title="Lost">L</abbr>'loss_head_text) -- Loss col
if show_OTloss and OTloss_after then t = p_sub.colhead(tt,32,OTloss_head_text) end
if show_PKloss and PKloss_after then t = p_sub.colhead(tt,32,PKloss_head_text) end