Content deleted Content added
Zaire tweak |
also check for AIN at the 2026 Olympics |
||
(7 intermediate revisions by one other user not shown) | |||
Line 210:
return "Commonwealth Games"
end
elseif inputName=="Southeast Asian Peninsular Games"
or inputName=="Southeast Asian Games" or inputName=="SEAP Games"
if year <= 1975 then▼
or inputName=="SEA Games" then
return "Southeast Asian Peninsular Games"▼
▲ if year <= 1975 then
else▼
return "
return "SEA Games"
elseif inputName=="Asian Indoor Games" or inputName=="Asian Indoor and Martial Arts Games" then
if year <= 2009 then
Line 233 ⟶ 236:
else
return "African Games"
end
elseif inputName=="Summer Universiade" or inputName=="Summer World University Games" then
if year < 2021 then
return "Summer Universiade"
▲ else
end
elseif inputName=="Winter Universiade" or inputName=="Winter World University Games" then
if year < 2021 then
return "Winter Universiade"
else
return "Winter World University Games"
end
else
Line 349 ⟶ 364:
or inputName=="Independent Olympic Participants"
or inputName=="Olympic Athletes from Russia"
or inputName=="ROC"
or inputName=="Individual Neutral Athletes") then
if year == 1992 or year==2014 then
return "Independent Olympic Participants"
Line 360 ⟶ 376:
elseif year == 2020 then
return "Russian Olympic Committee athletes"
elseif year == 2024 or year==2026 then
return "Individual Neutral Athletes"
else
return inputName
Line 397 ⟶ 415:
elseif year == 2020 or year==2022 then
return "Russian Paralympic Committee athletes"
elseif year == 2024 then
return "Neutral Paralympic Athletes"
else
return inputName
Line 493 ⟶ 513:
return list(appearances)
end
function p._onlyGames(args)
load_data() -- in case this function is called by another module
local list = require('Module:List').horizontal
args.team = 'x'
local competitions, disqualified_years, absent_years, absent_ranges = competition_information(args)
local current_year = os.date('!*t').year
local appearances = {}
local absent_first, absent_last
for i = 1, #competitions + 1 do -- +1 to handle any trailing absences
local y = competitions[i]
if y then
local display = tostring(y)
if y > current_year then
display = '<i>' .. display .. '</i>'
end
local compName = gameName(y, args.competition)
if compName == 'FIS Alpine World Ski Championships' then
table.insert(appearances, string.format(
'[[%s %d|%s]]',
compName, y, display
))
else
table.insert(appearances, string.format(
'[[%d %s|%s]]',
y, compName, display
))
end
end
end
return list(appearances)
end
function p.main(frame)
load_data(frame)
return p._main(frame.args['team'] and frame.args or frame:getParent().args)
end
function p.onlyGames(frame)
load_data(frame)
return p._onlyGames(frame.args['competition'] and frame.args or frame:getParent().args)
end
|