Module:Sports table: Difference between revisions

Content deleted Content added
Add group listing functionality
Allow suppression of classification rules
Line 70:
local pld_pts_val = Args['only_pld_pts'] or 'no'
local full_table
local hide_class_rules = false
-- True if par doesn't exist, false otherwise
-- First convert to lower case if it is a string
Line 75 ⟶ 76:
if pld_pts_val=='y' or pld_pts_val=='yes' or pld_pts_val=='t' or pld_pts_val=='true' or pld_pts_val=='1' then
full_table = false
elseif pld_pts_val=='no_hide_class_rules' then
full_table = true
hide_class_rules = true
else
full_table = true
Line 424 ⟶ 428:
end
table.insert(t_footer,'Source: '..source)
if class_rules and full_table and (not hide_class_rules) then
table.insert(t_footer,'<br>Rules for classification: '..class_rules)
end