Modul:Country alias: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan
Tag: Pembatalan
k revert
Tag: Pengembalian manual
Baris 4:
--[[
The following country code is used for multiple countries:
ANG (workaround: added ANG_CGF for use with CommonwealthPesta GamesOlahraga Persemakmuran)
 
The following names have different names/flags based on sport/year
Baris 10:
Hong Kong HKG, HKG_CGF (latter added to keep colonial flag)
Individual Olympic Athletes IOA, IOA_2000 (IOA changed to Independent Olympic Athletes in 2012)
Russian Athletes OAR (2018), ROC_2020 (2020Musim SummerPanas 2020, 2022Musim WinterDingin 2022)
SWZ Swaziland became Eswatini after the 2018Pesta CommonwealthOlahraga GamesPersemakmuran 2018
MKD Macedonia became North Macedonia in 2019
ART No "Athlete" before Refugee Team @ 2017 AIMAG
Baris 64:
-- Return alias parameter, possibly modified for exceptional cases.
local alias = stripToNil(args.alias)
local year = tonumber(args.year)
local games = stripToNil(args.games)
local year = tonumber(args.year)
local fullName = stripToNil(args.fullName)
if fullName then
Baris 71:
end
if alias == 'ANG' then
if games == 'CommonwealthPesta GamesOlahraga Persemakmuran' then
alias = 'ANG_CGF'
end
elseif alias == 'ART' then
if games == 'AsianPesta IndoorOlahraga andDalam MartialRuangan Artsdan GamesBela Diri Asia' then
alias = 'ART_AIMAG'
end
Baris 87:
end
elseif alias == 'HKG' then
if games == 'CommonwealthPesta GamesOlahraga Persemakmuran' then
alias = 'HKG_CGF'
end
Baris 102:
elseif alias == 'SWZ' then
if fullName then
if year and year >= 2018 and fullName ~= '2018Pesta CommonwealthOlahraga GamesPersemakmuran 2018' then
alias = 'SWZ_YO2018'
end
elseif year and year >= 2018 and games ~= 'CommonwealthPesta GamesOlahraga Persemakmuran' then
alias = 'SWZ_YO2018'
else
Baris 122:
elseif alias == 'RUS' then
if year and year==2020 then
if games=='SummerMusim OlympicsPanas' then
alias = 'ROC_2020'
elseif games=='SummerParalmipik ParalympicsMusim Panas' then
alias = 'RPC'
end
elseif year and year==2022 and games=='WinterMusim OlympicsDingin' then
alias = 'ROC_2020'
end
elseif alias == 'ROC' then
if year and year==1960 and games=='SummerMusim OlympicsPanas' then
alias = 'ROC_Formosa'
elseif year and ( year==1964 or year==1968 ) and games=='SummerMusim OlympicsPanas' then
alias = 'ROC_Taiwan'
elseif year and year==2020 and games=='SummerMusim OlympicsPanas' then
alias = 'ROC_2020'
elseif year and year==2022 and games=='WinterMusim OlympicsDingin' then
alias = 'ROC_2020'
elseif year and year==2020 and games=='SummerParalimpiade ParalympicsMusim Panas' then
alias = 'RPC'
else
Baris 148:
end
elseif alias == 'YUG' or alias == 'SCG' then
if year and year > 1992 and year < 2004 and games ~= 'SummerParalimpiade ParalympicsMusim Panas' then
alias = 'FR_YUG'
end
Baris 204:
local games = stripToNil(args[2])
local athletes = stripToNil(args[3])
games = games and (games'Olimpiade ' .. ' Olympics'games) or 'OlympicsOlimpiade'
local parms = {
alias = code,
Baris 215:
local dispName = fullName
if fullName == 'ROC' then
fullName = 'RussianAtlet OlympicKomite CommitteeOlimpiade athletesRusia'
end
return (('[[File:{flag}|22x20px|border|alt=|link=]]&nbsp;[[{name} pada {games}|{dispName}]]{athletes}')
Baris 266:
local dispName = stripToNil(args.name)
if fullName == 'ROC' then
fullName = 'RussianAtlet OlympicKomite CommitteeOlimpiade athletesRusia'
dispName = 'ROC'
if dispType == 'team' then dispType = 'name' end