Content deleted Content added
This module produces a horizontal list of team appearances at a specified sports competition; each item is in the format: [[<team> at the <year> <competition>|<year]]. The module requires the following parameters: begin_year, interval, team and competitio |
Further, any number of positional parameters may be specified; these will be added to the front of the list. |
||
Line 3:
-- [[<team> at the <year> <competition>|<year]]. The module requires the
-- following parameters: begin_year, interval, team and competition. end_year
-- may be optionally defined if the sports competition is now defunct. Further,
-- any number of positional parameters may be specified; these will be added to
-- the front of the list.
local p = {}
local compressSparseArray = require('Module:TableTools').compressSparseArray
local hlist = require('Module:List').horizontal
Line 14 ⟶ 17:
function p._main(args)
local appearances =
for i = args.begin_year, (args.end_year or os.date('%Y')+args.interval),
args.interval do
|