Module:MLB standings: Difference between revisions

Content deleted Content added
add mapping of full division name to abbreviation, so that link to corresponding template will work
use full division name for standings table
Line 51:
local year = mw.text.trim(frame.args.year)
local division = mw.text.trim(frame.args.division)
local divisionForNavbox = division
 
if (mlbData.abbreviationForDivision[division] ~= nil) then
divisiondivisionForNavbox = mlbData.abbreviationForDivision[division]
end
 
Line 79 ⟶ 80:
table.insert(outputSeq,
frame:expandTemplate{ title = 'navbar', args = {
year .. ' ' .. divisiondivisionForNavbox .. ' standings',
mini = 1,
}} .. '\n'