Content deleted Content added
m Protected "Module:Team appearances list": Highly visible template: via RfPP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
update from sandbox - make future years italicized - see Special:PermaLink/794880094#Italics |
||
Line 172:
local hlist = require('Module:List').horizontal
local competitions, absent_years, absent_ranges = competition_information(args)
local current_year = 2017 -- Storing the current year so that years in the future are in ital
local function is_absent(y)
if absent_years[y] then
Line 202 ⟶ 203:
end
if y then
if y <= current_year then
table.insert(appearances, string.format(
'[[%s at the %d %s|%d]]',▼
args.team, y, args.competition, y
))
else
table.insert(appearances, string.format(
▲ '\'\'[[%s at the %d %s|%d]]\'\'',
args.team, y, args.competition, y
))
end
end
end
|