Content deleted Content added
Universiade |
Let's not duplicate documentation |
||
Line 1:
-- This module
local p = {}
local compressSparseArray = require('Module:TableTools').compressSparseArray
local hlist = require('Module:List').
local valueUnion = require('Module:Set').valueUnion
local COMPETITIONS = {
["All-Africa Games"] = {
["Asian Para Games"] = {
["European Athletics Championships"] = {
["Mediterranean Games"] = {
["Pan American Games"] = {
["Summer Universiade"] = {
["Winter Universiade"] = {
["World Championships in Athletics"] = {
function p.main(frame)▼
local args = require('Module:Arguments').getArgs(frame, {parentOnly=true})▼
return p._main(args)▼
end▼
function p._main(args)
local begin_year = args.begin_year and tonumber(args.begin_year)
Line 69 ⟶ 56:
if COMPETITIONS[args.competition] then
for _, y in pairs(COMPETITIONS[args.competition]
if not begin_year or y >= begin_year then
processYear(y)
Line 77 ⟶ 64:
end
else
for y = begin_year, (end_year or os.date('%Y')+args.interval),
args.interval do
processYear(y)
Line 83 ⟶ 70:
end
return hlist(valueUnion(absences, appearances))
▲end
▲function p.main(frame)
▲ local args = require('Module:Arguments').getArgs(frame, {parentOnly=true})
▲ return p._main(args)
end
|