Module:Sports table/Fencing: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 9:
local team_width = Args['teamwidth'] or '170'
local sort_text = yesno(Args['sortable_table'] or 'no') and 'sortable' or ''
local show_matchesshow_played = yesno(Args['show_matchesshow_played'] or 'no') and true or false
local show_touches = yesno(Args['show_touches'] or 'yes')
local show_bouts = yesno(Args['show_bouts'] or 'no')
Line 29:
tt = p_sub.colhead(tt,28,group_head_text) -- Group col
end
tt = p_sub.colhead(tt,team_width,(Args['Fencerteam_header'] or 'Team')..VTE_text) -- Team col
if show_matchesshow_played then
tt = p_sub.colhead(tt,28,'<abbr title="Matches">M</abbr>') -- Matches played col
end
Line 113:
-- Show maches, touches, bouts, and points
local show_matchesshow_played = yesno(Args['show_matchesshow_played'] or 'no') and true or false
local show_touches = yesno(Args['show_touches'] or 'yes')
local show_bouts = yesno(Args['show_bouts'] or 'no')
Line 120:
-- Now that we are done calculating, show actual input values
if tonumber(Args['win_'..team_code_ii] or 0) == nil then
wins = Args['&mdash;win_'..team_code_ii]
end
if tonumber(Args['loss_'..team_code_ii] or 0) == nil then
losses = Args['&mdash;loss_'..team_code_ii]
end
local function numorval(s)