Module:Team appearances list and Module:Team appearances list/sandbox: Difference between pages
(Difference between pages)
Jump to navigation
Jump to search
imported>Izno (rm 'hlist' name) |
imported>GKFX (Permit direct use from wikitext) |
||
Line 188: | Line 188: | ||
local function gameName(year, inputName) | local function gameName(year, inputName) | ||
-- Modifies output of display being sent back to the | -- Modifies output of display being sent back to the hlist | ||
-- for games that have had a name change but are still considered | -- for games that have had a name change but are still considered | ||
-- the same competition. | -- the same competition. | ||
Line 240: | Line 240: | ||
local function teamName(year, inputName, comp) | local function teamName(year, inputName, comp) | ||
-- Modifies output of display being sent back to the | -- Modifies output of display being sent back to the hlist | ||
-- for games that have had a name change but are still considered | -- for games that have had a name change but are still considered | ||
-- the same competition. | -- the same competition. | ||
Line 356: | Line 356: | ||
elseif year == 2018 then | elseif year == 2018 then | ||
return "Olympic Athletes from Russia" | return "Olympic Athletes from Russia" | ||
elseif year == 2020 then | elseif year == 2020 or year==2022 then | ||
return "Russian Olympic Committee athletes" | return "Russian Olympic Committee athletes" | ||
else | else | ||
Line 409: | Line 409: | ||
else | else | ||
return "Malaysia" | return "Malaysia" | ||
end | end | ||
end | end | ||
Line 423: | Line 417: | ||
function p._main(args) | function p._main(args) | ||
load_data() -- in case this function is called by another module | load_data() -- in case this function is called by another module | ||
local | local hlist = require('Module:List').horizontal | ||
local competitions, disqualified_years, absent_years, absent_ranges = competition_information(args) | local competitions, disqualified_years, absent_years, absent_ranges = competition_information(args) | ||
local current_year = os.date('!*t').year | local current_year = os.date('!*t').year | ||
Line 479: | Line 473: | ||
end | end | ||
end | end | ||
return | return hlist(appearances) | ||
end | end | ||