Content deleted Content added
finish support for legs pass through to sports results |
a first attempt at checking that the totals add up in the table (will only issue a warning, and only in preview mode) |
||
Line 586:
for k=1,#tracking_categories do
table.insert(t, tracking_categories[k])
end
if(Args['showteam'] == nil) then
local getWarnings = require('Module:Sports table/totalscheck').check
local total_warnings = getTracking(Args)
if #total_warnings > 0 then
if frame:preprocess( "{{REVISIONID}}" ) == "" then
for k=1,#total_warnings do
table.insert(t, '<div style="color:red">Possible problem: ' .. total_warnings[k] .. '</div>')
end
end
end
end
else
|