Content deleted Content added
No edit summary |
No edit summary |
||
Line 13:
if yesno(sort_table_val) then sort_text = 'sortable' end
table.insert(t,'{|class="wikitable '..sort_text..'" style="text-align:center;"\n') -- Open table
-- Whether tiebreaker is needed▼
local use_tiebr_val = args['use_tiebr'] or 'no'▼
local do_tiebr = false▼
if yesno(use_tiebr_val) then do_tiebr = true end▼
-- Custom header options
Line 51 ⟶ 46:
-- True if exist, false otherwise
if yesno(use_ratio_val) then do_ratio = true end
▲ -- Whether tiebreaker is needed
▲ local use_tiebr_val = args['use_tiebr'] or 'no'
▲ local do_tiebr = false
▲ if yesno(use_tiebr_val) then do_tiebr = true end
-- Initialize
Line 70:
if do_tiebr then
tt = p_sub.colhead(tt,32,tiebr_head_text) -- tiebr
tt = p_sub.colhead(tt,32,'<abbr title="'..fa_word_plur..' for">'..fa_letter..'F</abbr>') -- For col
tt = p_sub.colhead(tt,32,'<abbr title="'..fa_word_plur..' against">'..fa_letter..'A</abbr>') -- Against col
if not do_ratio then
tt = p_sub.colhead(tt,32,'<abbr title="'..fa_word_sing..' difference">'..fa_letter..'D</abbr>') -- Difference col
else
tt = p_sub.colhead(tt,36,'<abbr title="'..fa_word_sing..' ratio">'..fa_letter..'R</abbr>') -- Ratio col
end
end
else
tt = p_sub.colhead(tt,32,'<abbr title="'..fa_word_plur..' for">'..fa_letter..'F</abbr>') -- For col
tt = p_sub.colhead(tt,32,'<abbr title="'..fa_word_plur..' against">'..fa_letter..'A</abbr>') -- Against col
|