Module:MLB standings/sandbox explained

-- This module copies content from Template:MLB_standings; see the history of that page-- for attribution.

local me =

local mlbData = mw.loadData('Module:MLB standings/data')local Navbar = require('Module:Navbar')

---- defaultOutputForInput: table mapping from input format to default output format-- (if the output format is not specified in the template arguments)--local defaultOutputForInput =

---- readTeamInfo: table of input parsers-- Keys are the input formats, values are functions that parse the unnamed parameters-- that were passed to the template and return a table holding the team name-- and the win-loss records (either overall, or home and away, depending on the-- input format).-- The parsers take the following parameters:-- args: table holding the parameters (indexed by numeric position)-- currentIdx: the current index from where the next set of data should be parsed-- returnData: table that the parser will update to pass additional data back to the caller.-- returnData.cIndicesRead is updated with the number of parameters that were parsed--local readTeamInfo = -- readTeamInfo object

---- generateTableHeader: table of functions that generate table header-- Keys are the output formats, values are functions that return a string with the table header-- The generator functions take the following parameter:-- tableHeaderInfo: table that contains the information needed for the header--local generateTableHeader =