A story · tabelline 0.1

Milano Cortina 2026, in small numbers

The Winter Olympics and Paralympics of 2026, told in tables: in three parts of three, from the simplest fact to the bills that are still arriving.

Between 6 February and 15 March 2026 Italy held the Winter Olympics and then the Paralympics, in eight places from Milan to the Dolomites. Nine months later they can be told with numbers, and the numbers fit in tables. This story tells them, and makes every table with tabelline: it was the use it story of 0.1 (see the roadmap), the one that uses the library as a user would, on data from outside.

It learns from the coverage of Il Post, which followed the Games for seven years, from the bid to the Court of Auditors. Il Post explains with questions (how did we get here?, why so many medals?, what is left?), puts a number next to another that gives it a size, and comes back to a story when there is news. This story asks its questions the same way, takes the numbers Il Post reported (each table links the article), and the rest from Wikipedia (and the air from NOAA). The words are this story's own.

Reading the code

Green cards like this one are about the code. Under every table, show code opens the Nim that made it, and a green card says which tabelline verbs do the work, and why. The rest of the text is about the Games: skip the green cards to read only the story. One table, the medal table, is also shown in Python and in R, to compare.

One row to start

The least one can say about the Games fits in one row: which ones, where, when, how big.

Milano Cortina 2026
the Olympic Winter Games
fromtoeventsathletesnations
XXV6 Feb22 Feb1162,88492
From Wikipedia's 2026 Winter Olympics; 92 teams counting the neutral athletes.
let games = tableData:
  edition: [25]
  opening: ["2026-02-06"]
  closing: ["2026-02-22"]
  events: [116]
  athletes: [2884]
  nations: [92]
let t = tabella(games, rownameCol = "edition"):
  optCssTheme()
  tabHeader "Milano Cortina 2026", "the Olympic Winter Games"
  fmtRoman "edition"
  fmtDate ["opening", "closing"], dateStyle = "d MMM"
  fmtInteger ["athletes"]
  colsLabel {"opening": "from", "closing": "to"}
  tabOptions(tableFontSize = "14px")
  tabSourceNote md("From Wikipedia's [2026 Winter Olympics](https://en.wikipedia.org/wiki/2026_Winter_Olympics); 92 teams counting the neutral athletes.")
nbTable t

fmtRoman turns 25 into XXV. The dates are ISO dates in the data, "2026-02-06", and fmtDate shows them as a reader wants them. Everything else in this story adds one idea at a time to a table like this one.

They were the 25th Winter Games, and the roman numeral is how the Games count themselves.

One row says little until there are others to set it beside. Here is the same row for every Winter Games held, from Chamonix 1924 (the Games of 1940 and 1944 were cancelled by the war, 1944's in Cortina). The three in Italy are in yellow:

Every Winter Games
1924 to 2026
nationsathletesevents
1924IChamonix1625816
1928IISt. Moritz2546414
1932IIILake Placid1725214
1936IVGarmisch2864617
1948VSt. Moritz2866922
1952VIOslo3069422
1956VIICortina d'Ampezzo3282124
1960VIIISquaw Valley3066527
1964IXInnsbruck361,09134
1968XGrenoble371,15835
1972XISapporo351,00635
1976XIIInnsbruck371,12337
1980XIIILake Placid371,07238
1984XIVSarajevo491,27239
1988XVCalgary571,42346
1992XVIAlbertville641,80157
1994XVIILillehammer671,73761
1998XVIIINagano722,17668
2002XIXSalt Lake City782,39978
2006XXTurin802,50884
2010XXIVancouver822,56686
2014XXIISochi882,87398
2018XXIIIPyeongchang922,922102
2022XXIVBeijing912,861109
2026XXVMilano Cortina922,8711116
1 2,884 in the article on these Games, the first table's source.
Wikipedia, Winter Olympic Games § List.
var d = readTsv("history.tsv")
d.addColumn("n", toSeq(1 .. d.nrows).mapIt(toValue(it)))
let t = tabella(d, rownameCol = "year"):
  optCssTheme()
  tabHeader "Every Winter Games", "1924 to 2026"
  colsHide "country"
  colsMove ["n"], after = "year"
  colsLabel {"n": "", "host": "", "nations": "nations", "athletes": "athletes", "events": "events"}
  fmtRoman "n"
  fmtInteger "athletes"
  textReplace "Milan Cortina d'Ampezzo", "Milano Cortina", loc.body(cols("host"))
  textReplace "Garmisch-Partenkirchen", "Garmisch", loc.body(cols("host"))
  tabStyle style.fill(gilt), loc.body(rows = where(it.country == "Italy"))
  tabStyle style.fill(gilt), loc.stub(rows = where(it.country == "Italy"))
  tabStyle style.text(weight = "bold"), loc.body(rows = where(it.year.toFloat == 2026))
  tabStyle style.text(weight = "bold"), loc.stub(rows = where(it.year.toFloat == 2026))
  tabStyle style.text(size = "11px"), loc.body(cols("n"))
  tabFootnote "2,884 in the article on these Games, the first table's source.",
    loc.body(cols("athletes"), rows = where(it.year.toFloat == 2026))
  tabSourceNote md("Wikipedia, [Winter Olympic Games § List](https://en.wikipedia.org/wiki/Winter_Olympic_Games).")
  tabOptions(tableFontSize = "13px", dataRowPadding = "3px")
nbTable t

Nothing in the data says "edition": the roman column is the row's number, fmtRoman again.

Read down a column and the Games grow: 16 events in 1924, 24 when Cortina first had them in 1956, 84 in Turin, 116 now; athletes from 258 to almost 3,000. Turin and Milano Cortina are twenty years apart, and the second has 32 events more.

Three parts of three

What happened is too much for one table, so the story splits it in three, and every part in three again: three questions each, nine tables to answer them, simplest first.

partthree questions
A🏅 The GamesWhere were they? Who won? How was Italy?
B💶 The moneyWhat did a seat cost? What is a medal worth? What did the works cost?
C🏔️ What staysSnow, buildings, and what came after
type PartRow = object
  n: int
  part, questions: string
let rows = @[
  PartRow(n: 1, part: "🏅 The Games", questions: "Where were they? Who won? How was Italy?"),
  PartRow(n: 2, part: "💶 The money", questions: "What did a seat cost? What is a medal worth? What did the works cost?"),
  PartRow(n: 3, part: "🏔️ What stays", questions: "Snow, buildings, and what came after"),
]
let t = tabella(rows, rownameCol = "n"):
  optCssTheme()
  fmtIndex "n"
  colsLabel {"part": "part", "questions": "three questions"}
  tabStyle style.text(weight = "bold"), loc.body(cols("part"))
nbTable t

fmtIndex writes 1, 2, 3 as A, B, C, so the parts below are A, B and C.

Where the numbers come from

Before the tables, the data they are made from. It comes in two shapes. Most of it is tables from Wikipedia, saved as files: the medal tables, the venues, the sports, every Winter Games. The rest are facts from Il Post's articles, typed by hand, one list per table: prices, costs, prizes, what happened after. A few numbers come from elsewhere, the air from NOAA and the carbon footprint from a report of two British groups.

Where the numbers come from
the files in docs/stories/data/milano-cortina/, and the lists in docs/olimpiadi.nim
fromrows
📄 files, from Wikipedia and NOAA
medals.tsv2026 Winter Olympics medal table30
athletes.tsv2026 Winter Olympics93
paralympics.tsv2026 Winter Paralympics10
italy-history.tsvItaly at the Winter Olympics25
italy-medals.tsvItaly at the 2026 Winter Olympics30
venues.tsv2026 Winter Olympics22
sports.tsv2026 Winter Olympics16
history.tsvWinter Olympic Games25
by-sport.tsvthe 16 <sport> at the 2026 Winter Olympics114
co2.tsvNOAA, Mauna Loa3
✍️ typed by hand
15 listsIl Post, one article each86
sportFacts2026 Winter Olympics § Sports16
footprintScientists for Global Responsibility4
type Source = object
  kind, data, `from`: string
  rows: int
proc article(file: string): string =   # the first line of a file names its source
  let url = readFile(dataDir / file).splitLines[0].split(" ")[2]
  let name = if "wikipedia" in url: url.split("/wiki/")[1].replace("_", " ") else: "NOAA, Mauna Loa"
  &"[{name}]({url})"
var rows: seq[Source]
for file in ["medals.tsv", "athletes.tsv", "paralympics.tsv", "italy-history.tsv", "italy-medals.tsv",
             "venues.tsv", "sports.tsv", "history.tsv", "by-sport.tsv", "co2.tsv"]:
  let src = if file == "by-sport.tsv": "the 16 *<sport> at the 2026 Winter Olympics*" else: article(file)
  rows.add Source(kind: "files", data: file, `from`: src, rows: readTsv(file).nrows)
let ilpostRows = trips.len + channels.len + prices.len + ticketShares.len + prizes.len + metals.len +
  estimates.len + trackSteps.len + trackYear.len + santaGiulia.len + snow.len + afterwards.len +
  ioc.len + after.len + articles.len
rows.add Source(kind: "hand", data: "15 lists", `from`: "[Il Post](https://www.ilpost.it/tag/milano-cortina-2026/), one article each", rows: ilpostRows)
rows.add Source(kind: "hand", data: "sportFacts", `from`: "[2026 Winter Olympics § Sports](https://en.wikipedia.org/wiki/2026_Winter_Olympics#Sports)", rows: sportFacts.len)
rows.add Source(kind: "hand", data: "footprint", `from`: &"[Scientists for Global Responsibility]({footprintSource})", rows: footprint.len)
let t = tabella(rows, rownameCol = "data", groupnameCol = "kind"):
  optCssTheme()
  tabHeader "Where the numbers come from", "the files in docs/stories/data/milano-cortina/, and the lists in docs/olimpiadi.nim"
  textCaseMatch {"files": "📄 files, from Wikipedia and NOAA", "hand": "✍️ typed by hand"}, locations = loc.rowGroups()
  colsLabel {"from": "from", "rows": "rows"}
  fmtMarkdown "from"
  fmtInteger "rows"
  tabStyle style.css("white-space: nowrap"), loc.stub()
  tabStyle style.text(size = "12px"), loc.body(cols("from"))
  tabOptions(tableFontSize = "13px")
nbTable t

A file is a table as it was on the page, with a first line naming the article and its revision:

for line in readFile(dataDir / "medals.tsv").splitLines[0 .. 3]: echo line
# from https://en.wikipedia.org/wiki/2026_Winter_Olympics_medal_table (revision 1376824706), CC BY-SA 4.0
rank	team	code	gold	silver	bronze	total
1	Norway	NO	18	12	11	41
2	United States	US	12	12	9	33

A fact typed by hand is a Nim object, with the article it comes from beside its list:

echo trips[1]
echo post(tripsSource)
(trip: "Bormio → Cortina", by: "public transport", low: 10.0, high: 11.0)
https://www.ilpost.it/2025/03/07/olimpiadi-invernali-diffuse-2026-piu-luoghi-sostenibilita/

readTsv (in docs/olimpiadi.nim) skips the comment line and calls parseCsv, which makes a TableData: one column per field, each value a number or a text. A const list of objects goes to tabella as it is, one field per column. Some tables are made in between: a seq of objects built in a loop (the venues, one row per venue with its sports joined; the table above), or a TableData built column by column with addColumn (the articles, at the end). The files are written by short Python scripts that read Wikipedia: how, in How this story is built.

A · The Games

Where were they?

"The most spread out ever": over 22,000 km², in Milan, Cortina d'Ampezzo, Bormio, Livigno, Anterselva, Tesero, Predazzo, and Verona for the closing. Milan had the ice, the mountains had the snow. Each row of the table is a venue with its sports, grouped by cluster, as the organisers called the four areas of the races (Verona, with the closing ceremony, is a fifth).

Fourteen venues, five clusters
and what each was before the Games; in green, the new ones
forseatsbefore
Milan
San Siro Olympic StadiumOpening ceremony75,817existing
Santa Giulia Ice Hockey Arena⛸️ Ice hockey (preliminaries and finals)12,000new
Rho Ice Hockey Arena⛸️ Ice hockey (preliminaries)6,000existing, temporary stands
Speed Skating Stadium⛸️ Speed skating7,500existing, temporary stands
Ice Skating Arena⛸️ Figure skating, ⛸️ Short track speed skating11,500existing
Valtellina
Stelvio Ski Centre❄️ Alpine skiing (men), ❄️ Ski mountaineering7,000existing
Livigno Snow Park❄️ Snowboarding, ❄️ Freestyle skiing2,000existing
Livigno Aerials & Moguls Park❄️ Freestyle skiing3,000existing
Val di Fiemme
Predazzo Ski Jumping Stadium❄️ Ski jumping, ❄️ Nordic combined5,000existing
Tesero Cross-Country Skiing Stadium❄️ Cross-country skiing, ❄️ Nordic combined15,000existing
Cortina d'Ampezzo
Tofane Alpine Skiing Centre❄️ Alpine skiing (women)7,000existing
Anterselva Biathlon Arena1❄️ Biathlon19,000existing
Cortina Curling Olympic Stadium⛸️ Curling3,000existing
Cortina Sliding Centre🛷 Bobsleigh, 🛷 Luge, 🛷 Skeleton5,500new
Verona
Verona Olympic ArenaClosing ceremony15,000existing
1 Anterselva is in South Tyrol, but belongs to Cortina's cluster.
Wikipedia, 2026 Winter Olympics § Venues.
let raw = readTsv("venues.tsv")
type VenueRow = object
  cluster, venue, events: string
  capacity: int
  status: string
var rows: seq[VenueRow]
for i in 0 ..< raw.nrows:   # one row per venue: its sports joined
  let venue = $raw["venue", i]
  if rows.len > 0 and rows[^1].venue == venue: rows[^1].events.add ", " & $raw["events", i]
  else: rows.add VenueRow(cluster: $raw["cluster", i], venue: venue, events: $raw["events", i],
                          capacity: int(raw["capacity", i].toFloat), status: $raw["status", i])
let t = tabella(rows, rownameCol = "venue", groupnameCol = "cluster"):
  optCssTheme()
  tabHeader "Fourteen venues, five clusters", "and what each was before the Games; in green, the new ones"
  colsLabel {"events": "for", "capacity": "seats", "status": "before"}
  fmtInteger "capacity"
  textCaseMatch {"Existing": "existing", "New": "<b>new</b>", "Existing with temporary stands": "existing, temporary stands"},
    locations = loc.body(cols("status"))
  textReplace "Milano ", "", loc.stub()
  textCaseMatch sportMarks(), replace = "partial", locations = loc.body(cols("events"))
  tabStyle style.fill(fresh), loc.body(rows = where(it.status == "New"))
  tabStyle style.fill(fresh), loc.stub(rows = where(it.status == "New"))
  rowGroupOrder ["Milan", "Valtellina", "Val di Fiemme", "Cortina d'Ampezzo", "Verona"]
  tabFootnote "Anterselva is in South Tyrol, but belongs to Cortina's cluster.",
    loc.stub(rows = where(it.venue == "Anterselva Biathlon Arena"))
  tabSourceNote md("Wikipedia, [2026 Winter Olympics § Venues](https://en.wikipedia.org/wiki/2026_Winter_Olympics#Venues).")
  tabOptions(tableFontSize = "14px")
nbTable t

The data has one row per venue and sport, so the page joins them first. textCaseMatch rewrites the "before" column, and with replace = "partial" puts the emoji of each sport's kind in front of it, inside the joined list. textReplace drops "Milano" from the venue names, after formatting. The new venues are filled green with tabStyle, in the body and in the stub.

Two venues are new, the hockey arena of Santa Giulia in Milan and the sliding track of Cortina; the others existed, some rebuilt so much that "existing" says little, as part B shows. The price of spreading the Games is distance. Ester Ledecká, who won gold in skiing and in snowboarding in 2018, could not try again: the two races were on the same day, four hours apart by car (Il Post).

How far apart
byfromto
Bormio → Cortinacar5h6h
Bormio → Cortinapublic transport10h11h
Milan → Bormiotrain and bus3h3h
Bormio → Livignoroad, in winter1h1h
Santa Giulia → Rho (two hockey arenas)public transport1h1h
Il Post, 7 March 2025 and 29 October 2025, after the organisers' tables and the Washington Post.
let t = tabella(trips, rownameCol = "trip"):
  optCssTheme()
  tabHeader "How far apart"
  colsLabel {"by": "by", "low": "from", "high": "to"}
  fmtDuration ["low", "high"], inputUnits = "hours"
  tabSourceNote md(&"Il Post, {link(tripsSource, \"7 March 2025\")} and {link(tripsSource2, \"29 October 2025\")}, after the organisers' tables and the Washington Post.")
nbTable t

fmtDuration takes hours and writes them as a length of time, "10h", so it reads as a trip, not as a number.

Ten hours on buses and trains, from the men's downhill to the women's.

What was raced?

116 events in 16 sports, seven more than four years before in Beijing. A sport is born on snow, on ice, or on a sled: grouped that way, the sports of 2026 with their events, and in green those with something new.

116 events, 16 sports
in green, what is new in 2026
eventsnew
❄️ on snow
Alpine skiing10team combined, men and women
Biathlon11
Cross-country skiing12
Freestyle skiing15dual moguls, men and women
Nordic combined3
Ski jumping6women's large hill
Ski mountaineering3the whole sport: two sprints and a mixed relay
Snowboarding11
⛸️ on ice
Curling3
Figure skating5
Ice hockey2
Short-track speed skating9
Speed skating14
🛷 sliding
Bobsleigh4
Luge5doubles for men and for women, instead of open doubles
Skeleton3mixed team
Wikipedia, 2026 Winter Olympics § Sports.
let events = readTsv("sports.tsv")
type SportRow = object
  kind, sport: string
  events: int
  new: string
var rows: seq[SportRow]
for f in sportFacts:   # the facts, in their order, with the events counted on Wikipedia
  let i = toSeq(0 ..< events.nrows).filterIt($events["sport", it] == f.sport)[0]
  rows.add SportRow(kind: f.kind, sport: f.sport, events: int(events["events", i].toFloat), new: f.new)
let t = tabella(rows, rownameCol = "sport", groupnameCol = "kind"):
  optCssTheme()
  tabHeader "116 events, 16 sports", "in green, what is new in 2026"
  colsLabel {"events": "events", "new": "new"}
  textCaseMatch kindLabels, locations = loc.rowGroups()
  tabStyle style.fill(fresh), loc.body(rows = where($it.new != ""))
  tabStyle style.fill(fresh), loc.stub(rows = where($it.new != ""))
  tabStyle style.text(weight = "bold"), loc.stub(rows = where(it.sport == "Ski mountaineering"))
  tabStyle style.text(size = "12px"), loc.body(cols("new"))
  tabSourceNote md("Wikipedia, [2026 Winter Olympics § Sports](https://en.wikipedia.org/wiki/2026_Winter_Olympics#Sports).")
  tabOptions(tableFontSize = "13px", dataRowPadding = "3px")
nbTable t

The row groups come from a column, groupnameCol = "kind", and textCaseMatch(kindLabels, locations = loc.rowGroups()) gives each its emoji. The same emojis go in front of the sports in the other tables, with sportMarks(); both are in docs/olimpiadi.nim, with the facts.

Eleven events are new and four were dropped, so 109 became 116. Ski mountaineering, racing up and down a mountain on skis, is a sport the Games had never had; luge split its open doubles into one for men and one for women.

Who won?

The medal table is the table everyone looks at, and the one the Olympic Charter says does not exist: the Games are "competitions between athletes, not between countries". Here is its top ten as Wikipedia gives it:

let medals = readTsv("medals.tsv").top(10, ["gold", "silver", "bronze"])
let t = tabella(medals, rownameCol = "team"):
  optCssTheme()
  tabHeader "Medal table", "Milano Cortina 2026, top ten"
  colsHide "rank"
  fmtFlag "code"
  colsLabel {"code": "", "gold": "🥇", "silver": "🥈", "bronze": "🥉"}
  tabSpanner "medals", ["gold", "silver", "bronze"]
  dataColor "gold", palette = @[haru.paper, gold]
  dataColor "silver", palette = @[haru.paper, silver]
  dataColor "bronze", palette = @[haru.paper, bronze]
  tabStyle style.text(weight = "bold"), loc.body(cols("total"))
  tabOptions(tableFontSize = "14px")
Medal table
Milano Cortina 2026, top ten
medalstotal
🥇🥈🥉
Norway🇳🇴18121141
United States🇺🇸1212933
Netherlands🇳🇱107320
Italy🇮🇹1061430
Germany🇩🇪810826
France🇫🇷89623
Sweden🇸🇪86418
Switzerland🇨🇭69823
Austria🇦🇹58518
Japan🇯🇵571224
Three languages, once

This is the only table of the story shown in three languages: Nim with tabelline, Python with Great Tables, R with gt. It is the table everyone knows, so it is the one to compare, verb by verb. The Book does the same for the examples it ports from the gt and Great Tables guides.

readTsv and top are this story's own: the first drops the comment lines naming the Wikipedia revision, then calls parseCsv; the second keeps the ten rows with most golds. Each country gets its flag from a two-letter code, fmtFlag, as an emoji, so nothing is loaded. dataColor shades each medal column in its own metal, from the paper to gold, silver or bronze, so the deepest cell of a column is the country with most of that medal (each column has its own range, as in gt). The three are mixed at the top of the page from the Munari look's colours (docs/theme.nim) with tabelline's mix: gold is its yellow (haru.warning), silver the paper with a little ink, bronze the yellow and the plum with a little ink. They are values, not the page's CSS variables, because dataColor mixes the colours itself while building the table, and picks a dark or light text for each cell so the numbers stay readable. The blue scales below (soft) are made the same way, from Munari's blue.

But a table of medals can be read two ways, Il Post explains: golds first, as the IOC (and Il Post, and China) do, or total first, as the United States do. At Milano Cortina Norway is first either way; below it, the order changes. The same data, both ways:

Golds first
🥇🥈🥉all
Norway18121141
United States1212933
Netherlands107320
Italy1061430
Germany810826
France89623
Sweden86418
Switzerland69823
Austria58518
Japan571224
Total first
🥇🥈🥉all
Norway18121141
United States1212933
Italy1061430
Germany810826
Japan571224
France89623
Switzerland69823
Canada57921
Netherlands107320
Sweden86418
proc topTen(byTotal: bool): Tabella =
  let by = if byTotal: @["total", "gold", "silver"] else: @["gold", "silver", "bronze"]
  let medals = readTsv("medals.tsv").top(10, by)
  let order = cols(by)
  result = tabella(medals, rownameCol = "team"):
    optCssTheme()
    tabHeader (if byTotal: "Total first" else: "Golds first")
    colsHide ["rank", "code"]
    colsLabel {"gold": "🥇", "silver": "🥈", "bronze": "🥉", "total": "all"}
    rowOrder order, reverse = true
    tabStyle style.text(weight = "bold"), loc.body(cols(if byTotal: "total" else: "gold"))
    tabStyle style.fill(gilt), loc.body(rows = where(it.team == "Italy"))
    tabOptions(tableFontSize = "13px", dataRowPadding = "3px")

nbBeside:
  nbTable topTen(false)
  nbTable topTen(true)

Two rowOrder calls on the same data, side by side with nbBeside.

Italy is fourth by golds (ten, like the Netherlands, but one silver fewer) and third by total (thirty). The Netherlands drop from third to ninth: all their twenty medals came from two sports, speed skating and short track. Germany won nineteen in the three sliding sports, Japan twenty-one where judges give the score (Il Post).

Every sport has a medal table of its own. Here is the first team of each, grouped as the events were, with Italy's medals beside it:

Who won each sport
the first team of each sport's medal table
first🥇🇮🇹 🏅
❄️ on snow
Alpine skiing🇨🇭Switzerland45
Biathlon🇫🇷France62
Cross-country skiing🇳🇴Norway72
Freestyle skiing🇺🇸United States33
Nordic combined🇳🇴Norway3—
Ski jumping🇳🇴Norway2—
Ski mountaineering🇫🇷France1—
Snowboarding🇯🇵Japan43
⛸️ on ice
Curling🇸🇪Sweden21
Figure skating🇺🇸United States21
Ice hockey🇺🇸United States2—
Short-track speed skating🇳🇱Netherlands54
Speed skating🇳🇱Netherlands55
🛷 sliding
Bobsleigh🇩🇪Germany3—
Luge🇩🇪Germany34
Skeleton🇬🇧Great Britain2—
Wikipedia, the 16 articles <sport> at the 2026 Winter Olympics, each with its medal table.
let all = readTsv("by-sport.tsv")   # every row of the 16 sports' medal tables
type Leader = object
  kind, sport, code, team: string
  gold, italy: int
var rows: seq[Leader]
for f in sportFacts:
  let mine = toSeq(0 ..< all.nrows).filterIt($all["sport", it] == f.sport)
  let first = mine[0]   # each sport's table is in medal-table order
  let italy = mine.filterIt($all["team", it] == "Italy")
  rows.add Leader(kind: f.kind, sport: f.sport, code: $all["code", first], team: $all["team", first],
                  gold: int(all["gold", first].toFloat),
                  italy: (if italy.len > 0: int(all["total", italy[0]].toFloat) else: 0))
let t = tabella(rows, rownameCol = "sport", groupnameCol = "kind"):
  optCssTheme()
  tabHeader "Who won each sport", "the first team of each sport's medal table"
  fmtFlag "code"
  colsLabel {"code": "", "team": "first", "gold": "🥇", "italy": "🇮🇹 🏅"}
  textCaseMatch kindLabels, locations = loc.rowGroups()
  subZero "italy", zeroText = "—"
  tabStyle style.fill(gilt), loc.body(cols("italy"), rows = where(it.italy.toFloat >= 4))
  tabStyle style.text(size = "12px"), loc.body(cols("team"))
  tabSourceNote md("Wikipedia, the 16 articles *<sport> at the 2026 Winter Olympics*, each with its medal table.")
  tabOptions(tableFontSize = "13px", dataRowPadding = "3px")
nbTable t

The table is built from the one before: the same groups and emojis, and fmtFlag again. Italy's column is filled yellow with tabStyle where it has four or more.

Nine countries share the sixteen firsts. Norway, first overall, leads three, all Nordic skiing (cross-country, ski jumping, Nordic combined); the United States lead three sports on ice and snow; the Netherlands both kinds of skating on a track; Germany two of the three sleds. Italy won something in ten sports, and four or more medals (in yellow) in four: alpine skiing, luge, short track and speed skating.

How was Italy?

Thirty medals: ten gold, six silver, fourteen bronze. Before the Games CONI, the Italian Olympic committee, had hoped for eighteen. Is it a lot? Il Post answers by putting the number next to others, so here is every Games Italy went to since the record of 1994:

Italy at the Winter Games
since Lillehammer 1994, the old record
athletes🏅rank
1994Lillehammer104204
1998Nagano1131010
2002Salt Lake City112137
20061Turin185119
2010Vancouver114516
2014Sochi113822
2018Pyeongchang1201012
2022Beijing1181713
2026Milano Cortina196304
1 At home, and fewer medals than four years before.
Wikipedia, Italy at the Winter Olympics; rank by golds.
let all = readTsv("italy-history.tsv")
let h = all.keep(proc (i: int): bool = all["year", i].toFloat >= 1994)
let t = tabella(h, rownameCol = "year"):
  optCssTheme()
  tabHeader "Italy at the Winter Games", "since Lillehammer 1994, the old record"
  colsHide ["gold", "silver", "bronze"]
  colsLabel {"host": "", "athletes": "athletes", "total": "🏅", "rank": "rank"}
  dataColor "total", palette = soft
  tabStyle style.text(weight = "bold"), loc.body(rows = where(it.year.toFloat == 2026))
  tabStyle style.text(weight = "bold"), loc.stub(rows = where(it.year.toFloat == 2026))
  tabFootnote "At home, and fewer medals than four years before.",
    loc.stub(rows = where(it.year.toFloat == 2006))
  tabSourceNote md("Wikipedia, [Italy at the Winter Olympics](https://en.wikipedia.org/wiki/Italy_at_the_Winter_Olympics); rank by golds.")
  tabOptions(tableFontSize = "13px", dataRowPadding = "4px")
nbTable t

Three things make thirty, Il Post argues (Come mai tutte queste medaglie?). There are more events every time (61 in 1994, 116 now), so records fall anyway. Hosts do better: the United States went from 13 to 34 at Salt Lake City in 2002. And it is a trend that started before: 5, 8, 10, 17, 30. Turin 2006 is the warning that home is not enough.

The thirty, one row each, grouped by colour. Relays and team events count as one medal, however many athletes are on the podium:

Italy's thirty medals
sporteventwho
🥇 Gold
7 Feb⛸️ Speed skatingWomen's 3000 metresFrancesca Lollobrigida
10 Feb⛸️ Short-track speed skatingMixed 2000 metre relayElisa Confortola, Arianna Fontana, Thomas Nadalini, Pietro Sighel, Luca Spechenhauser, Chiara Betti
11 Feb🛷 LugeWomen's doublesAndrea Vötter, Marion Oberhofer
11 Feb🛷 LugeMen's doublesEmanuel Rieder, Simon Kainzwaldner
12 Feb❄️ Alpine skiingWomen's super-GFederica Brignone
12 Feb⛸️ Speed skatingWomen's 5000 metresFrancesca Lollobrigida
15 Feb❄️ Alpine skiingWomen's giant slalomFederica Brignone
15 Feb❄️ BiathlonWomen's pursuitLisa Vittozzi
17 Feb⛸️ Speed skatingMen's team pursuitDavide Ghiotto, Andrea Giovannini, Michele Malfatti
21 Feb❄️ Freestyle skiingMen's ski crossSimone Deromedis
🥈 Silver
7 Feb❄️ Alpine skiingMen's downhillGiovanni Franzoni
8 Feb❄️ BiathlonMixed relayTommaso Giacomel, Lukas Hofer, Dorothea Wierer, Lisa Vittozzi
12 Feb⛸️ Short-track speed skatingWomen's 500 metresArianna Fontana
15 Feb❄️ SnowboardingMixed team snowboard crossLorenzo Sommariva, Michela Moioli
18 Feb⛸️ Short-track speed skatingWomen's 3000 metre relayElisa Confortola, Arianna Fontana, Chiara Betti, Arianna Sighel
21 Feb❄️ Freestyle skiingMen's ski crossFederico Tomasoni
🥉 Bronze
7 Feb❄️ Alpine skiingMen's downhillDominik Paris
8 Feb❄️ Alpine skiingWomen's downhillSofia Goggia
8 Feb❄️ SnowboardingWomen's parallel giant slalomLucia Dalmasso
8 Feb⛸️ Speed skatingMen's 5000 metresRiccardo Lorello
8 Feb🛷 LugeMen's singlesDominik Fischnaller
8 Feb⛸️ Figure skatingTeam eventDaniel Grassl, Matteo Rizzo, Lara Naki Gutmann, Sara Conti, Niccolò Macii, Charlène Guignard, Marco Fabbri
10 Feb⛸️ CurlingMixed doublesStefania Constantini, Amos Mosaner
12 Feb🛷 LugeTeam RelayVerena Hofer, Emanuel Rieder, Simon Kainzwaldner, Dominik Fischnaller, Andrea Vötter, Marion Oberhofer
13 Feb❄️ SnowboardingWomen's snowboard crossMichela Moioli
15 Feb❄️ Cross-country skiingMen's 4 × 7.5 km relayDavide Graz, Elia Barp, Martino Carollo, Federico Pellegrino
16 Feb❄️ Freestyle skiingWomen's big airFlora Tabanelli
18 Feb❄️ Cross-country skiingMen's team sprintElia Barp, Federico Pellegrino
20 Feb⛸️ Short-track speed skatingMen's 5000 metre relayAndrea Cassinelli, Thomas Nadalini, Pietro Sighel, Luca Spechenhauser
21 Feb⛸️ Speed skatingMen's mass startAndrea Giovannini
Wikipedia, Italy at the 2026 Winter Olympics § Medalists.
let m = readTsv("italy-medals.tsv")
let t = tabella(m, groupnameCol = "medal"):
  optCssTheme()
  tabHeader "Italy's thirty medals"
  colsLabel {"date": "", "sport": "sport", "event": "event", "athletes": "who"}
  fmtDate "date", dateStyle = "d MMM"
  textTransform(medal, loc.rowGroups())
  textCaseMatch sportMarks(), locations = loc.body(cols("sport"))
  tabStyle style.css("white-space: nowrap"), loc.body(cols("date"))
  tabStyle style.text(size = "12px"), loc.body(cols("athletes"))
  tabSourceNote md("Wikipedia, [Italy at the 2026 Winter Olympics § Medalists](https://en.wikipedia.org/wiki/Italy_at_the_2026_Winter_Olympics).")
  tabOptions(tableFontSize = "13px", dataRowPadding = "3px")
nbTable t

textCaseMatch(sportMarks()) puts the emoji of each sport's kind in front of it; the row groups, the medal colours, get theirs from textTransform, with a small proc of this story.

Ten sports out of sixteen gave a medal, from luge to curling to freestyle skiing: in 1994 nine of the twenty came from cross-country skiing alone.

Then, from 6 to 15 March, the Paralympics: 79 events in six sports, about 660 athletes from 50 countries, in Milan, Cortina and Tesero. Italy won sixteen medals, seven gold: both records. China, which won its first Winter Paralympic medal only in 2018, was first again, as in Beijing 2022. The two tables, side by side:

Olympics
🥇all
Norway1841🇳🇴
United States1233🇺🇸
Netherlands1020🇳🇱
Italy1030🇮🇹
Germany826🇩🇪
France823🇫🇷
Paralympics
🥇all
China1544🇨🇳
United States1324🇺🇸
Russia812🇷🇺
Italy716🇮🇹
Austria713🇦🇹
France412🇫🇷
proc small(file, title: string): Tabella =
  let d = readTsv(file).top(6, ["gold", "silver", "bronze"])
  result = tabella(d, rownameCol = "team"):
    optCssTheme()
    tabHeader title
    colsHide ["rank", "silver", "bronze"]
    fmtFlag "code"
    colsLabel {"code": "", "gold": "🥇", "total": "all"}
    colsMoveToEnd "code"
    tabStyle style.fill(gilt), loc.body(rows = where(it.team == "Italy"))
    tabOptions(tableFontSize = "13px", dataRowPadding = "3px")

nbBeside:
  nbTable small("medals.tsv", "Olympics")
  nbTable small("paralympics.tsv", "Paralympics")

Russia, banned from the Olympics, where some of its athletes came as neutrals, competed under its own name at the Paralympics and was third; Ukraine boycotted the opening ceremony. How China built its team in seven years is the subject of one of Il Post's best pieces (Come la Cina è diventata così forte).

How were they seen?

In Italy the Games were free on Rai and complete on Eurosport, which meant a subscription. In the United States NBC had 94% more viewers than for Beijing 2022, and for the first time in a Winter Games every race could be streamed.

Where to watch, in Italy
freeevery race
Rai 2, Rai Sport, RaiPlayfree to air and streaming✓✗
Eurosport (six channels)with Discovery+, DAZN, TimVision or HBO Max✗✓
Sky, Nowno races, four talk shows a day✗✗
Il Post, 6 February 2026; NBC's audience from Il Post, 24 February 2026.
let t = tabella(channels, rownameCol = "channel"):
  optCssTheme()
  tabHeader "Where to watch, in Italy"
  colsLabel {"how": "", "free": "free", "allEvents": "every race"}
  fmtTf ["free", "allEvents"], tfStyle = "check-mark"
  tabSourceNote md(&"Il Post, {link(channelsSource, \"6 February 2026\")}; NBC's audience from Il Post, {link(sharesSource, \"24 February 2026\")}.")
nbTable t

fmtTf turns true and false into ✓ and ✗, one of gt's ten styles.

The table could say more about media (Rai Sport's director left after his commentary of the opening was widely mocked) but a check mark is what the reader came for.

B · The money

What did a seat cost?

A seat was cheap or very dear: €30 for the cheapest, €1,400 for the men's hockey final, up to €2,900 for a ceremony. Two tables: the prices, and how they were spread.

Prices
The cheapest ticket€30
Women's downhill at Cortina, hospitality€375
The same, with a night in a hotel€795
Figure skating gala€1,200
Men's ice hockey final€1,400
Opening or closing ceremony, the dearest seat€2,900
Il Post, 17 Oct 2025
Shares
Tickets sold, of those on sale (1.3 million)88%
Tickets under €10057%
Tickets between €30 and €4020%
Spectators from abroad63%
Il Post, 24 Feb 2026
nbBeside:
  block:
    let t = tabella(prices, rownameCol = "what"):
      optCssTheme()
      tabHeader "Prices"
      colsLabel {"euro": ""}
      fmtCurrency "euro", currency = "EUR", decimals = 0
      tabSourceNote md(link(pricesSource, "Il Post, 17 Oct 2025"))
      tabOptions(tableFontSize = "13px")
    nbTable t
  block:
    let t = tabella(ticketShares, rownameCol = "what"):
      optCssTheme()
      tabHeader "Shares"
      colsLabel {"share": ""}
      fmtPercent "share", decimals = 0
      tabSourceNote md(link(sharesSource, "Il Post, 24 Feb 2026"))
      tabOptions(tableFontSize = "13px")
    nbTable t

1.3 million tickets were sold, 88% of those on sale, and almost two spectators in three came from abroad: Dutch fans in orange at the speed skating, Americans at the curling. Sofia Goggia missed the Italian crowds of the World Cup at Cortina, and blamed the prices and the roads. The dearest part was the night: for two people, two nights at a venue went from €325 in January to €1,275 in February, Altroconsumo found (Il Post).

What is a medal worth?

The IOC pays nothing for a medal; the countries do, if they want. Italy is among the most generous: €180,000 for a gold, tax free for the first time. The thirty medals cost CONI over €5.5 million, against the €4 million it had set aside.

What a medal pays
to the athlete, from their country's committee
🥇🥈🥉
Singapore1$740,000$370,000$185,000🇸🇬
Hong Kong1$715,000$357,000$178,000🇭🇰
Poland2€300,000€150,000€100,000🇵🇱
Italy€180,000€90,000€60,000🇮🇹
Spain€94,000€48,000€30,000🇪🇸
France€80,000€40,000€20,000🇫🇷
United States1$37,500$22,500$15,000🇺🇸
Germany€20,000€15,000€10,000🇩🇪
Norway3nothingnothingnothing🇳🇴
Great Britain3nothingnothingnothing🇬🇧
1 Paid in dollars.
2 Poland's figures are approximate.
3 No prize: private sponsors fund the athletes.
Il Post, 23 February 2026.
let t = tabella(prizes, rownameCol = "country"):
  optCssTheme()
  tabHeader "What a medal pays", "to the athlete, from their country's committee"
  colsHide "currency"
  fmtFlag "code"
  colsLabel {"code": "", "gold": "🥇", "silver": "🥈", "bronze": "🥉"}
  colsMoveToEnd "code"
  fmtCurrency ["gold", "silver", "bronze"], currency = "EUR", decimals = 0,
    rows = where(it.currency == "EUR")
  fmtCurrency ["gold", "silver", "bronze"], currency = "USD", decimals = 0,
    rows = where(it.currency == "USD")
  subZero ["gold", "silver", "bronze"], zeroText = "nothing"
  dataColor "gold", palette = soft
  tabFootnote "Poland's figures are approximate.", loc.stub(rows = where(it.country == "Poland"))
  tabFootnote "Paid in dollars.", loc.stub(rows = where(it.currency == "USD"))
  tabFootnote "No prize: private sponsors fund the athletes.", loc.stub(rows = where(it.gold.toFloat == 0))
  tabSourceNote md(&"Il Post, {link(prizesSource, \"23 February 2026\")}.")
  tabOptions(tableFontSize = "14px")
nbTable t

The table mixes euros and dollars. fmtCurrency takes rows, so each row is formatted in its own currency, and subZero says "nothing" where a country pays nothing.

Norway, first in the medal table, pays no prizes at all. Singapore and Hong Kong pay the most, and won nothing.

The medal itself is worth less than one would think. A gold medal is silver with six grams of gold:

The medal as metal
weighsof goldworth
🥇 Gold506 g6 g€2,000
🥈 Silver—none€1,200
🥉 Bronze420 gnonea few euros
Il Post, 23 February 2026, at February's prices; the silver medal's weight is not given.
let t = tabella(metals, rownameCol = "medal"):
  optCssTheme()
  tabHeader "The medal as metal"
  colsLabel {"grams": "weighs", "goldGrams": "of gold", "euro": "worth"}
  fmtNumberSi ["grams", "goldGrams"], unit = "g", decimals = 0
  fmtCurrency "euro", currency = "EUR", decimals = 0
  subZero ["grams"], zeroText = "—"
  subZero ["goldGrams"], zeroText = "none"
  subZero ["euro"], zeroText = "a few euros"
  textTransform(medal, loc.stub())
  tabStyle style.css("white-space: nowrap"), loc.stub()
  tabSourceNote md(&"Il Post, {link(prizesSource, \"23 February 2026\")}, at February's prices; the silver medal's weight is not given.")
nbTable t

The data has a 0 in three places, and each means something else. subZero says it column by column: in weighs the 0 is a number nobody gave, so it shows "—"; in of gold it is a true zero, "none"; in worth it is a value too small for the article to count, "a few euros". The data stays numbers (so it could be summed or sorted), and the words are only in what the reader sees. (A number nobody gave would be better as a missing value, blank by default or shown with subMissing; here it is a 0 so that the three meanings sit side by side.)

What did the works cost?

Here the coverage was hardest to follow, because the numbers moved for years. Il Post kept writing down each work's first figure and each new one. Four of them, from the first estimate to the last, in millions of euros:

From the first estimate to the last
millions of euros
firstlast×
Ski jumps, rebuiltPredazzobuilt8.7?×5.01
Palasharp arenaMilandropped1346×3.5
Skating oval, roofedBaselga di Pinédropped5075×1.5
Sliding trackCortinabuilt60118×2.0
1 Il Post, after the TV programme Report: from refurbishing to demolishing, five times the cost.
Il Post: 7 Mar 2025, 2 Feb 2026, 8 Oct 2026.
let t = tabella(estimates, rownameCol = "work"):
  optCssTheme()
  tabHeader "From the first estimate to the last", "millions of euros"
  colsLabel {"place": "", "fate": "", "first": "first", "last": "last", "times": "×"}
  fmtNumber ["first", "last"], decimals = 1, dropTrailingZeros = true
  fmtNumber "times", decimals = 1, pattern = "×{x}"
  subZero "last", zeroText = "?"
  textCaseMatch {"dropped": "<i>dropped</i>"}, locations = loc.body(cols("fate"))
  dataColor "times", palette = soft, domain = (1.0, 5.0)
  tabFootnote "Il Post, after the TV programme Report: from refurbishing to demolishing, five times the cost.",
    loc.body(cols("times"), rows = where(it.place == "Predazzo"))
  tabSourceNote md(&"Il Post: {link(estimatesSources[0], \"7 Mar 2025\")}, {link(estimatesSources[1], \"2 Feb 2026\")}, {link(estimatesSources[2], \"8 Oct 2026\")}.")
  tabOptions(tableFontSize = "14px")
nbTable t

Two works were dropped when they grew too much; two were built anyway. The sliding track of Cortina is the most discussed work of the Games: the IOC suggested racing abroad, on an existing track, and the government and the Veneto region chose to rebuild it. A forest was cut for it. Its cost, step by step:

The sliding track of Cortina
its cost, in millions of euros
€ m
Dec 2021The Veneto region's feasibility project60.8
Sep 2023The tender's figure; nobody wants to build it81.0
Feb 2024A builder, for fewer stands and no car park81.6
Jan 2026The track, finished, as the Games begin118.0
Italian Wikipedia (XXV Giochi olimpici invernali); Il Post, Sep 2023, Feb 2024, Jan 2026.
let t = tabella(trackSteps, rownameCol = "date"):
  optCssTheme()
  tabHeader "The sliding track of Cortina", "its cost, in millions of euros"
  colsLabel {"what": "", "millions": "€ m"}
  colsHide "path"
  fmtDate "date", dateStyle = "MMM yyyy"
  fmtNumber "millions", decimals = 1
  dataColor "millions", palette = soft
  colsReorder ["what", "millions"]
  tabSourceNote md(&"Italian Wikipedia ([XXV Giochi olimpici invernali](https://it.wikipedia.org/wiki/XXV_Giochi_olimpici_invernali)); Il Post, {link(\"2023/09/21/nessuno-costruire-pista-bob-cortina-olimpiadi/\", \"Sep 2023\")}, {link(\"2024/02/02/accordo-pista-bob-cortina/\", \"Feb 2024\")}, {link(\"2026/01/22/a-cortina-ci-sono-piu-cantieri-che-neve/\", \"Jan 2026\")}.")
nbTable t

Building it was the first bill. Keeping it is the second, every year. In October Il Post read the business plan KPMG wrote for the region: in 2027 the track takes in €527,000 and spends €1.33 million. One line per item, in and out:

One year of the sliding track
2027, as planned
In: €527,000
Training runs (€35 to €60 a run)€292,000
Sponsors and the Italian winter sports federation€115,000
“Taxi bob” rides for tourists€106,000
Two official races€14,000
Out: €1,333,000
Electricity, mostly to keep the ice€490,000
Ice crew: a foreman and ten people, five months€368,000
Ambulances, insurance, advertising€200,000
Maintenance and the unexpected€149,000
Office staff€126,000
KPMG for the Veneto region, via Il Post, 8 October 2026. The loss: €805,000 in 2027, €889,000 in 2032, about €5 million in six years.
let t = tabella(trackYear, rownameCol = "item", groupnameCol = "side"):
  optCssTheme()
  tabHeader "One year of the sliding track", "2027, as planned"
  colsLabel {"euro": ""}
  fmtCurrency "euro", currency = "EUR", decimals = 0
  textCaseMatch {"In": "In: €527,000", "Out": "Out: €1,333,000"}, locations = loc.rowGroups()
  tabSourceNote md(&"KPMG for the Veneto region, via Il Post, {link(\"2026/10/08/spese-pista-bob-cortina/\", \"8 October 2026\")}. The loss: €805,000 in 2027, €889,000 in 2032, about €5 million in six years.")
  tabOptions(tableFontSize = "14px")
nbTable t

Electricity alone costs almost as much as all the income. The town counts on six other "legacy" works to cover the rest, a cable car first, which was not ready for the Games.

The hockey arena of Santa Giulia is private (it belongs to CTS Eventim, which owns TicketOne) but the state pays for its extra costs, and how much those are depends on who is asked:

Santa Giulia's extra costs
millions of euros, as each side tells them
€ m
Planned cost of the arenabefore the works177
CTS Eventim, the ownerextra costs, from materials, energy and haste134
The city of Milanextra costs53
The state, so far21 direct, about 30 in services over the years51
Il Post, 5 May 2026; the Court of Auditors is investigating.
let t = tabella(santaGiulia, rownameCol = "who"):
  optCssTheme()
  tabHeader "Santa Giulia's extra costs", "millions of euros, as each side tells them"
  colsLabel {"says": "", "millions": "€ m"}
  fmtInteger "millions"
  dataColor "millions", palette = soft
  tabStyle style.text(style = "italic"), loc.body(rows = where(it.index == 0))
  tabSourceNote md(&"Il Post, {link(santaGiuliaSource, \"5 May 2026\")}; the Court of Auditors is investigating.")
nbTable t

C · What stays

Snow

The Games were sold as sustainable; Il Post's verdict, the day after, is that they "hid the problems well". It snowed on almost every outdoor venue during the races, which hid the first problem: the snow had been made.

Artificial snow made for the Games1.6Mm³as much as 640 Olympic pools
Water for the snow at Cortina alone1.2Mm³before the Games
Il Post, 24 Feb 2026 and 22 Jan 2026. Over 90% of Italy's ski slopes were snowed artificially in 2025, 98% in the Dolomites (Legambiente, via Il Post).
let t = tabella(snow, rownameCol = "what"):
  optCssTheme()
  colsLabel {"value": "", "unit": "", "note": ""}
  fmtNumber "value", decimals = 1, compact = true
  colsMoveToEnd "note"
  tabSourceNote md(&"Il Post, {link(snowSources[0], \"24 Feb 2026\")} and {link(snowSources[1], \"22 Jan 2026\")}. Over 90% of Italy's ski slopes were snowed artificially in 2025, 98% in the Dolomites (Legambiente, via {link(\"2025/03/07/olimpiadi-invernali-diffuse-2026-piu-luoghi-sostenibilita/\", \"Il Post\")}).")
nbTable t

fmtNumber(compact = true) writes 1.6M. The unit stays in a column of its own: fmtNumberSi(unit = "m³", decimals = 1) would write "1.6 Mm³", which reads as cubic megametres (more about this at the end).

Air

Snow has to be made because winters are warmer, and the cause is in the air. Carbon dioxide is a tiny part of it, so it is counted in parts per million (ppm): how many molecules in every million. Here it is in February of each Italian Winter Games that was measured (the record, at Mauna Loa in Hawaii, starts in 1958, two years after Cortina 1956):

CO₂ in the air
in February, at Mauna Loa
CO₂more than 1959
1959first February measured316 ppm—
2006Turin 2006382 ppm21%
2026Milano Cortina 2026429 ppm36%
NOAA GML and Scripps, monthly means at Mauna Loa, public data.
let air = readTsv("co2.tsv")
let first = air["co2", 0].toFloat
var more: seq[Value]
for i in 0 ..< air.nrows: more.add toValue(air["co2", i].toFloat / first - 1)
var d = air
d.addColumn("more", more)
let t = tabella(d, rownameCol = "year"):
  optCssTheme()
  tabHeader "CO₂ in the air", "in February, at Mauna Loa"
  colsLabel {"games": "", "co2": "CO₂", "more": "more than 1959"}
  fmtPartsper "co2", toUnits = "ppm", decimals = 0
  fmtPercent "more", decimals = 0
  subZero "more", zeroText = "—"
  tabStyle style.css("white-space: nowrap"), loc.body(cols("co2"))
  tabStyle style.text(weight = "bold"), loc.body(rows = where(it.year.toFloat == 2026))
  tabSourceNote md("NOAA GML and Scripps, [monthly means at Mauna Loa](https://gml.noaa.gov/ccgg/trends/data.html), public data.")
  tabOptions(tableFontSize = "14px")
nbTable t

The data has the share as a fraction of the air, 0.00042935, which no one wants to read: fmtPartsper(toUnits = "ppm") writes it as 429 ppm.

Between Turin and Milano Cortina, twenty years, the air gained 47 ppm; it took the forty-seven years before Turin to gain 66.

How much did the Games themselves add? Il Post gives no figure. In January 2026 two British groups, Scientists for Global Responsibility and the New Weather Institute, estimated it from the organisers' own data: about 930,000 tonnes of CO₂ equivalent, almost half of it from spectators' travel. They added what the official accounts leave out, the emissions that three sponsors' advertising brings (an oil company, a carmaker, an airline), and what all of it will melt:

The Games' footprint
estimated before the Games, and what it will melt
CO₂esnow coverglacier ice1
The Games
all of it930K t2.3 km²14 Mt
spectators' travel410K t
Sponsors
Eni, Stellantis, ITA1.3M t3.2 km²20 Mt
Eni alone700K t1.7 km²11 Mt
1 Over 14 Mt and over 20 Mt: the report gives lower bounds.
SGR and New Weather Institute, Olympics Torched, January 2026; figures from its summary.
let t = tabella(footprint, rownameCol = "what", groupnameCol = "part"):
  optCssTheme()
  tabHeader "The Games' footprint", "estimated before the Games, and what it will melt"
  colsLabel {"tonnes": "CO₂e", "snowKm2": "snow cover", "iceMt": "glacier ice"}
  fmtNumber "tonnes", compact = true, pattern = "{x} t"
  fmtNumber "snowKm2", decimals = 1, pattern = "{x} km²"
  fmtNumber "iceMt", decimals = 0, pattern = "{x} Mt"
  tabStyle style.text(style = "italic"), loc.body(rows = where($it.what in ["spectators' travel", "Eni alone"]))
  tabStyle style.text(style = "italic"), loc.stub(rows = where($it.what in ["spectators' travel", "Eni alone"]))
  tabStyle style.css("white-space: nowrap"), loc.body()
  tabFootnote "Over 14 Mt and over 20 Mt: the report gives lower bounds.", loc.columnLabels(cols("iceMt"))
  tabSourceNote md(&"SGR and New Weather Institute, [Olympics Torched]({footprintReport}), January 2026; figures from [its summary]({footprintSource}).")
  tabOptions(tableFontSize = "13px")
nbTable t

fmtNumber(compact = true, pattern = "{x} t") writes 930K t; the same pattern puts each unit after its number.

The rows in italics are part of the row above. The sponsors add about 40% more than the Games' own footprint, and the report puts the total loss at 5.5 km² of snow cover and over 34 million tonnes of glacier ice.

Buildings

What happens to Olympic venues afterwards? In 2025 the IOC published a study of almost a thousand, in every Games from 1896 to 2022. Most are still used:

982 Olympic venues, 1896 to 2022
what became of them
Temporary11512%
Permanent, still in use74376%
Permanent, gone (demolished or replaced)9410%
Permanent, abandoned130under 5%
1 Two of them from Turin 2006: the ski jumps of Pragelato and the sliding track of Cesana.
The IOC, via Il Post, 30 October 2025.
var d = TableData()
d.addColumn("fate", ioc.mapIt(toValue(it.fate)))
d.addColumn("venues", ioc.mapIt(toValue(it.venues)))
d.addColumn("share", ioc.mapIt(toValue(it.venues / 982)))
let t = tabella(d, rownameCol = "fate"):
  optCssTheme()
  tabHeader "982 Olympic venues, 1896 to 2022", "what became of them"
  colsLabel {"venues": "", "share": ""}
  fmtPercent "share", decimals = 0
  subSmallVals "share", threshold = 0.05, smallPattern = "under 5%"
  fmtInteger "venues"
  dataColor "venues", palette = soft
  tabFootnote "Two of them from Turin 2006: the ski jumps of Pragelato and the sliding track of Cesana.",
    loc.stub(rows = where(it.fate == "Permanent, abandoned"))
  tabSourceNote md(&"The IOC, via Il Post, {link(iocSource, \"30 October 2025\")}.")
nbTable t

subSmallVals hides the precise small shares behind "under 5%", gt's way to say a number is too small to matter.

The abandoned venues are few. Few, but the ones that are abandoned are exactly the kind Milano Cortina built again: a ski jump and a sliding track.

And what each new or rebuilt place becomes, in green again what was built for the Games (Il Post calls the sliding track rebuilt: the old one, from 1923, was torn down):

After the Games
becomes
Speed skating hall, RhoTEMPORARYan arena for events and concerts
Ice hockey rink, RhoTEMPORARYmoved to another hall of the fair, open again in the autumn
Arena Santa Giulia, MilanNEWconcerts, volleyball, basketball, tennis
Olympic village, Porta RomanaNEWstudent housing; 450 beds at €592 a month
Trampolino Italia, CortinaRESTOREDa monument at the entrance of the valley; no jumping
Sliding track, CortinaREBUILTtraining and tourist rides, at a loss of €800,000 a year
Il Post, 25 Feb 2026, 22 Jan 2026, 8 Oct 2026.
let t = tabella(afterwards, rownameCol = "venue"):
  optCssTheme()
  tabHeader "After the Games"
  colsLabel {"built": "", "becomes": "becomes"}
  textTransform(proc (s: string): string = s.toUpperAscii, loc.body(cols("built")))
  tabStyle style.text(size = "11px", weight = "bold"), loc.body(cols("built"))
  tabStyle style.fill(fresh), loc.body(rows = where($it.built in ["new", "rebuilt"]))
  tabStyle style.fill(fresh), loc.stub(rows = where($it.built in ["new", "rebuilt"]))
  tabSourceNote md(&"Il Post, {link(afterwardsSources[0], \"25 Feb 2026\")}, {link(afterwardsSources[1], \"22 Jan 2026\")}, {link(afterwardsSources[2], \"8 Oct 2026\")}.")
  tabOptions(tableFontSize = "14px")
nbTable t

Milan built little on purpose, to avoid "cathedrals in the desert", with the paradox that it still has no public ice rink. The 450 cheaper beds of the village cost €592 a month, still a lot for a student.

After

The Games ended on 22 February, the Paralympics on 15 March. The news did not:

Since the Games
22 Feb 2026The Games close in the Arena of VeronaIl Post ↗
15 Mar 2026The Paralympics close: Italy 16 medals, 7 gold, both recordsIl Post ↗
5 May 2026The Court of Auditors looks into the Santa Giulia arenaIl Post ↗
8 May 2026…and into the sliding track of CortinaIl Post ↗
8 Jul 2026Nordic combined will not be at the next Winter GamesIl Post ↗
8 Oct 2026KPMG: the sliding track loses €800,000 a yearIl Post ↗
8 Dec 20261The Socrepes cable car is due to open, at half the planned capacityIl Post ↗
1 Not yet: planned.
let t = tabella(after.mapIt((date: it.date, what: it.what, path: post(it.path))), rownameCol = "date"):
  optCssTheme()
  tabHeader "Since the Games"
  colsLabel {"what": "", "path": ""}
  fmtDate "date", dateStyle = "d MMM yyyy"
  fmtUrl "path", label = "Il Post ↗"
  tabStyle style.css("white-space: nowrap"), loc.body(cols("path"))
  tabStyle style.css("white-space: nowrap"), loc.stub()
  tabStyle style.text(style = "italic"), loc.body(rows = where(it.date == "2026-12-08"))
  tabFootnote "Not yet: planned.", loc.stub(rows = where(it.date == "2026-12-08"))
  tabOptions(tableFontSize = "14px")
nbTable t

The last row is in the future: the cable car of Socrepes, built on a landslide that stopped the works in 2025, is due to open on 8 December, a month from today.

The articles

The Il Post articles this story learned from, with the angle each takes:

Fifteen articles
from Il Post's coverage, 2025–2026
its angle
7 Mar 25Il futuro delle Olimpiadi invernali è farle “diffuse”?read ↗why the Games were spread over eight places, and what environmental groups say about it
17 Oct 25Quanto costa vedere dal vivo le Olimpiadi di Milano Cortina?read ↗tickets and rooms, the two costs of watching a race
29 Oct 25Le Olimpiadi di Milano Cortina Bormio Livigno Tesero Predazzo Anterselva Veronaread ↗a tour of the places, sport by sport, and the distances between them
30 Oct 25Che fine fanno gli impianti olimpiciread ↗what happened to almost a thousand Olympic venues since 1896
22 Jan 26A Cortina ci sono più cantieri che neveread ↗two weeks before the Games, the town still under construction
2 Feb 26Come le Olimpiadi invernali sono arrivate a Milano e a Cortinaread ↗six and a half years, from the vote in Lausanne to the opening
6 Feb 26Dove si vedono le Olimpiadi invernali di Milano Cortinaread ↗free channels, paid platforms and what each one shows
17 Feb 26Come mai tutte queste medaglie?read ↗more events, home advantage, a long plan, or luck
23 Feb 26Ogni paese conta le medaglie un po’ come vuoleread ↗golds first or total first, and the tables nobody makes
23 Feb 26Quanto si guadagna vincendo una medaglia alle Olimpiadiread ↗what each country pays for a medal, and what the medal itself is worth
24 Feb 26Le Olimpiadi di Milano Cortina hanno nascosto bene i problemiread ↗a first balance: the Games liked, the problems still there
25 Feb 26Cosa rimarrà a Milano delle Olimpiadi invernaliread ↗what each building in Milan becomes
10 Mar 26Come la Cina è diventata così forte alle Paralimpiadi invernaliread ↗from no medal in 2014 to first in the table
5 May 26La Corte dei conti sta indagando su possibili irregolarità nella costruzione dell’Arena Santa Giulia di Milanoread ↗who pays the extra costs of the hockey arena
8 Oct 26Per tenere aperta la pista da bob di Cortina servono 800mila euro all’annoread ↗the sliding track's yearly accounts, line by line
var d = TableData()
d.addColumn("date", articles.mapIt(toValue(it.date)))
d.addColumn("title", articles.mapIt(toValue(it.title)))
d.addColumn("url", articles.mapIt(toValue(post(it.path))))
d.addColumn("angle", articles.mapIt(toValue(it.angle)))
let t = tabella(d, rownameCol = "date"):
  optCssTheme()
  tabHeader "Fifteen articles", "from Il Post's coverage, 2025–2026"
  colsLabel {"title": "", "url": "", "angle": "its angle"}
  fmtDate "date", dateStyle = "d MMM yy"
  fmtUrl "url", label = "read ↗"
  tabStyle style.css("white-space: nowrap"), loc.body(cols("url"))
  tabStyle style.css("white-space: nowrap"), loc.stub()
  tabStyle style.text(style = "italic"), loc.body(cols("title"))
  tabOptions(tableFontSize = "13px")
nbTable t

fmtUrl makes the links, from the paths in docs/olimpiadi.nim.

How this story is built

The page is a nimib notebook, docs/stories/milano_cortina.nim, built with the others by nim r -d:release docs/all.nim. From zero, in four layers.

1. The data from Wikipedia is nine TSV files in docs/stories/data/milano-cortina/ (the table in Where the numbers come from lists them): the medal tables of the Olympics and the Paralympics, the athletes of each team, Italy at every Winter Games, Italy's thirty medals, the venues and the sports, every Winter Games, and the medal tables of the 16 sports. Short Python scripts beside them read the articles through the REST API (slowly: Wikipedia limits fast clients) and write the tables with pandas: fetch.py the first seven, history.py the history, sports.py the medal tables of the sports. Each file starts with a comment line naming the article and its revision, so the numbers can be checked against the exact page they came from. Wikipedia's text is under CC BY-SA 4.0. One more file, co2.tsv, comes from NOAA's public Mauna Loa record, written by co2.py beside it.

2. The facts from Il Post are typed by hand in docs/olimpiadi.nim: Nim objects, one const array per table, each with the path of the article it comes from. Il Post is a newspaper and its articles are its own, so only facts and numbers are taken, each linked; the text of this story is written from scratch. Where an article gives no number (the silver medal's weight, Predazzo's final cost), the field is 0 and the table says so (subZero), rather than inventing one.

3. The tables are tabelline. Each tabella(data, ...) takes a TableData (from readTsv, or built column by column with addColumn) or a seq of objects, one field per column. tabella is a macro: it makes the table with initTabella, then reads its indented body one line at a time, so that fmtFlag "code" becomes t = t.fmtFlag("code"). The verbs themselves are procs, and a format such as fmtCurrency only records what to do: it runs when the table is rendered, so the HTML, text and Markdown renderers all agree. Two small helpers belong to this page: readTsv, which skips comment lines, and medal, which puts 🥇 before "gold". The page is made of the docs' blocks (docs/blocks.nim): nbBeside puts small tables side by side (they wrap to one column on a phone), and under every table show code opens the code that made it: nbShowCode runs its block, reads the block's own source back with nimib's getCode, and folds it under the tables the block made.

4. Nothing is fetched while the page is built. The TSV files and the facts are in the repository, so the page builds offline and the same way every time; the scripts are run by hand when the data should change.

What tabelline was missing

Used on someone else's data, tabelline 0.1 held up. These are the places where it made the page do extra work, sent to the thread that builds it:

Gaps found by this story
Comment lines in CSVreadCsv has no comment option, so readTsv strips # lines first; Polars has comment_prefix, R comment.char.
The first n rows, after sortingrowOrder sorts what is shown, but a top ten by total needs the data sorted and cut before tabella (this page's top). Python and R do it in the data frame; without one, a head after rowOrder would help.
Totals in a groupThe track's in and out totals are written in the group labels by hand: summary rows are planned (add-summary-rows).
SI prefixes and powered unitsfmtNumberSi(1.6e6, "m³") writes "1.6 Mm³", which is cubic megametres. A unit with a power needs the prefix inside it, or a warning in the docs.
Markdown in a replacementtextCaseMatch and textReplace run on the formatted text, after fmtMarkdown, so a **new** they put in stays as it is; HTML works. Worth a line in the docs (gt behaves the same).
`locations` after defaultstextCaseMatch(cases, loc.body(...)) does not compile: default and replace come first, so the location needs locations = . Moving locations before them would read as gt does.
Ranks from the datarowOrder sorts golds-first or total-first, but a rank column must be computed outside; a rank helper over the shown order would make the two tables complete.
A blank instead of zerosubZero(zeroText = "") leaves the zero as it is, because an empty text means no substitution; the footprint table stores NaN (a missing value, blank by default) instead.
type Gap = object
  what, how: string
let rows = @[
  Gap(what: "Comment lines in CSV",
      how: "`readCsv` has no `comment` option, so `readTsv` strips `#` lines first; Polars has `comment_prefix`, R `comment.char`."),
  Gap(what: "The first n rows, after sorting",
      how: "`rowOrder` sorts what is shown, but a top ten by total needs the data sorted and cut before `tabella` (this page's `top`). Python and R do it in the data frame; without one, a `head` after `rowOrder` would help."),
  Gap(what: "Totals in a group",
      how: "The track's in and out totals are written in the group labels by hand: summary rows are planned (`add-summary-rows`)."),
  Gap(what: "SI prefixes and powered units",
      how: "`fmtNumberSi(1.6e6, \"m³\")` writes \"1.6 Mm³\", which is cubic megametres. A unit with a power needs the prefix inside it, or a warning in the docs."),
  Gap(what: "Markdown in a replacement",
      how: "`textCaseMatch` and `textReplace` run on the formatted text, after `fmtMarkdown`, so a `**new**` they put in stays as it is; HTML works. Worth a line in the docs (gt behaves the same)."),
  Gap(what: "`locations` after defaults",
      how: "`textCaseMatch(cases, loc.body(...))` does not compile: `default` and `replace` come first, so the location needs `locations = `. Moving `locations` before them would read as gt does."),
  Gap(what: "Ranks from the data",
      how: "`rowOrder` sorts golds-first or total-first, but a rank column must be computed outside; a `rank` helper over the shown order would make the two tables complete."),
  Gap(what: "A blank instead of zero",
      how: "`subZero(zeroText = \"\")` leaves the zero as it is, because an empty text means no substitution; the footprint table stores NaN (a missing value, blank by default) instead."),
]
let t = tabella(rows, rownameCol = "what"):
  optCssTheme()
  tabHeader "Gaps found by this story"
  colsLabel {"how": ""}
  fmtMarkdown "how"
  colsWidth {"what": "30%"}
nbTable t