Modul:Country alias: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
k uji coba
Baris 4:
--[[
The following country code is used for multiple countries:
ANG (workaround: added ANG_CGF for use with PestaCommonwealth Olahraga PersemakmuranGames)
 
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 (Musim2020 Panas 2020Summer, Musim2022 Dingin 2022Winter)
SWZ Swaziland became Eswatini after the Pesta2018 OlahragaCommonwealth Persemakmuran 2018Games
MKD Macedonia became North Macedonia in 2019
ART No "Athlete" before Refugee Team @ 2017 AIMAG
Baris 75:
end
elseif alias == 'ART' then
if games == 'PestaAsian OlahragaIndoor Dalamand RuanganMartial danArts Bela Diri AsiaGames' then
alias = 'ART_AIMAG'
end
Baris 122:
elseif alias == 'RUS' then
if year and year==2020 then
if games=='Olimpiade Musim Panas' then
alias = 'ROC_2020'
elseif games=='ParalmipikParalimpiade Musim Panas' then
alias = 'RPC'
end
elseif year and year==2022 and games=='Olimpiade Musim Dingin' then
alias = 'ROC_2020'
end
elseif alias == 'ROC' then
if year and year==1960 and games=='Olimpiade Musim Panas' then
alias = 'ROC_Formosa'
elseif year and ( year==1964 or year==1968 ) and games=='Olimpiade Musim Panas' then
alias = 'ROC_Taiwan'
elseif year and year==2020 and games=='Olimpiade Musim Panas' then
alias = 'ROC_2020'
elseif year and year==2022 and games=='Olimpiade Musim Dingin' then
alias = 'ROC_2020'
elseif year and year==2020 and games=='Paralimpiade Musim Panas' then
Baris 143:
else
local pageName = mw.title.getCurrentTitle().text
if pageName == 'RussianAtlet OlympicKomite CommitteeOlimpiade athletesRusia pada OlympicsOlimpiade' then
alias = 'ROC_2020'
end
Baris 204:
local games = stripToNil(args[2])
local athletes = stripToNil(args[3])
games = games and ('Olimpiade 'games .. games' Olympics') or 'OlimpiadeOlympics'
local parms = {
alias = code,
Baris 215:
local dispName = fullName
if fullName == 'ROC' then
fullName = 'AtletRussian KomiteOlympic OlimpiadeCommittee Rusiaathletes'
end
return (('[[File:{flag}|22x20px|border|alt=|link=]] [[{name} pada {games}|{dispName}]]{athletes}')
Baris 266:
local dispName = stripToNil(args.name)
if fullName == 'ROC' then
fullName = 'AtletRussian KomiteOlympic OlimpiadeCommittee Rusiaathletes'
dispName = 'ROC'
if dispType == 'team' then dispType = 'name' end