Module:MLB standings: Difference between revisions

Content deleted Content added
change table width to be set using em's
m remove unused local variable; rename variable
Line 153:
end
 
local outputSeqoutputBuffer = { }
 
 
Line 160:
standingsPage,
mini = 1,
style = 'float:left;width:0;',
})
 
table.insert(outputSeqoutputBuffer,
'{| class="wikitable" width="515em" style="text-align:center;"\
! width="50%" |' .. navbarText .. division .. '\
Line 197:
local seedText = ''
local rowStyle = ''
local nameStyle = ''
if (seedInfo[teamInfo.name] ~= nil) then
seedText = '<sup>(' .. seedInfo[teamInfo.name] .. ')</sup> '
Line 207 ⟶ 206:
end
 
table.insert(outputSeqoutputBuffer,
'|-' .. rowStyle .. '\
|| ' .. seedText .. '[[' .. year .. ' ' .. teamInfo.name .. ' season|' .. teamInfo.name .. ']]\
Line 216 ⟶ 215:
|| ' .. teamInfo.roadWins .. '–' .. teamInfo.roadLosses .. '\n'
)
end -- end of looping over listOfTeams
end
 
table.insert(outputSeqoutputBuffer, '|}\n')
 
return table.concat(outputSeqoutputBuffer)
 
end -- function me.generateStandingsTable()