Module:ColPollTable: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 34:
-- Template doc says "Week#" is a required field, so we'll use that as an indicator
local max_week = 0
for i=1,2050 do
if not args['Week'..i] then
break
Line 80:
end
-- weeklast 20week is f or final --> "Final"
if tbl_args.weeks[20max_week] then
local week_20_nameweek_f_name = tbl_args.weeks[20max_week].name
week_20_nameweek_f_name = string.lower(week_20_nameweek_f_name)
if week_20_nameweek_f_name == 'week f' or week_20_nameweek_f_name == 'week final' then
tbl_args.weeks[20max_week].name = 'Final'
end
end