Module:MLB standings: Difference between revisions

Content deleted Content added
add support for displaying seeds
add robustness check to handle empty seeds parameter
Line 88:
local function parseSeeds(seedsArg, seeds)
local seedList = mw.text.split(seedsArg, '%s*,%s*')
if (#seedList ==0) then
return
end
 
for idx, seed in ipairs(seedList) do
local seedData = mw.text.split(seed, '%s*:%s*')