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.
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 | |||||
| from | to | events | athletes | nations | |
| XXV | 6 Feb | 22 Feb | 116 | 2,884 | 92 |
| 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 tfmtRoman 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 | |||||
| nations | athletes | events | |||
| 1924 | I | Chamonix | 16 | 258 | 16 |
| 1928 | II | St. Moritz | 25 | 464 | 14 |
| 1932 | III | Lake Placid | 17 | 252 | 14 |
| 1936 | IV | Garmisch | 28 | 646 | 17 |
| 1948 | V | St. Moritz | 28 | 669 | 22 |
| 1952 | VI | Oslo | 30 | 694 | 22 |
| 1956 | VII | Cortina d'Ampezzo | 32 | 821 | 24 |
| 1960 | VIII | Squaw Valley | 30 | 665 | 27 |
| 1964 | IX | Innsbruck | 36 | 1,091 | 34 |
| 1968 | X | Grenoble | 37 | 1,158 | 35 |
| 1972 | XI | Sapporo | 35 | 1,006 | 35 |
| 1976 | XII | Innsbruck | 37 | 1,123 | 37 |
| 1980 | XIII | Lake Placid | 37 | 1,072 | 38 |
| 1984 | XIV | Sarajevo | 49 | 1,272 | 39 |
| 1988 | XV | Calgary | 57 | 1,423 | 46 |
| 1992 | XVI | Albertville | 64 | 1,801 | 57 |
| 1994 | XVII | Lillehammer | 67 | 1,737 | 61 |
| 1998 | XVIII | Nagano | 72 | 2,176 | 68 |
| 2002 | XIX | Salt Lake City | 78 | 2,399 | 78 |
| 2006 | XX | Turin | 80 | 2,508 | 84 |
| 2010 | XXI | Vancouver | 82 | 2,566 | 86 |
| 2014 | XXII | Sochi | 88 | 2,873 | 98 |
| 2018 | XXIII | Pyeongchang | 92 | 2,922 | 102 |
| 2022 | XXIV | Beijing | 91 | 2,861 | 109 |
| 2026 | XXV | Milano Cortina | 92 | 2,8711 | 116 |
| 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 tNothing 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.
| part | three questions | |
|---|---|---|
| A | 🏅 The Games | Where were they? Who won? How was Italy? |
| B | 💶 The money | What did a seat cost? What is a medal worth? What did the works cost? |
| C | 🏔️ What stays | Snow, 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 tfmtIndex 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 | ||
| from | rows | |
| 📄 files, from Wikipedia and NOAA | ||
| medals.tsv | 2026 Winter Olympics medal table | 30 |
| athletes.tsv | 2026 Winter Olympics | 93 |
| paralympics.tsv | 2026 Winter Paralympics | 10 |
| italy-history.tsv | Italy at the Winter Olympics | 25 |
| italy-medals.tsv | Italy at the 2026 Winter Olympics | 30 |
| venues.tsv | 2026 Winter Olympics | 22 |
| sports.tsv | 2026 Winter Olympics | 16 |
| history.tsv | Winter Olympic Games | 25 |
| by-sport.tsv | the 16 <sport> at the 2026 Winter Olympics | 114 |
| co2.tsv | NOAA, Mauna Loa | 3 |
| ✍️ typed by hand | ||
| 15 lists | Il Post, one article each | 86 |
| sportFacts | 2026 Winter Olympics § Sports | 16 |
| footprint | Scientists for Global Responsibility | 4 |
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 tA 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 | |||
| for | seats | before | |
| Milan | |||
| San Siro Olympic Stadium | Opening ceremony | 75,817 | existing |
| Santa Giulia Ice Hockey Arena | ⛸️ Ice hockey (preliminaries and finals) | 12,000 | new |
| Rho Ice Hockey Arena | ⛸️ Ice hockey (preliminaries) | 6,000 | existing, temporary stands |
| Speed Skating Stadium | ⛸️ Speed skating | 7,500 | existing, temporary stands |
| Ice Skating Arena | ⛸️ Figure skating, ⛸️ Short track speed skating | 11,500 | existing |
| Valtellina | |||
| Stelvio Ski Centre | ❄️ Alpine skiing (men), ❄️ Ski mountaineering | 7,000 | existing |
| Livigno Snow Park | ❄️ Snowboarding, ❄️ Freestyle skiing | 2,000 | existing |
| Livigno Aerials & Moguls Park | ❄️ Freestyle skiing | 3,000 | existing |
| Val di Fiemme | |||
| Predazzo Ski Jumping Stadium | ❄️ Ski jumping, ❄️ Nordic combined | 5,000 | existing |
| Tesero Cross-Country Skiing Stadium | ❄️ Cross-country skiing, ❄️ Nordic combined | 15,000 | existing |
| Cortina d'Ampezzo | |||
| Tofane Alpine Skiing Centre | ❄️ Alpine skiing (women) | 7,000 | existing |
| Anterselva Biathlon Arena1 | ❄️ Biathlon | 19,000 | existing |
| Cortina Curling Olympic Stadium | ⛸️ Curling | 3,000 | existing |
| Cortina Sliding Centre | 🛷 Bobsleigh, 🛷 Luge, 🛷 Skeleton | 5,500 | new |
| Verona | |||
| Verona Olympic Arena | Closing ceremony | 15,000 | existing |
| 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 tThe 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 | |||
|---|---|---|---|
| by | from | to | |
| Bormio → Cortina | car | 5h | 6h |
| Bormio → Cortina | public transport | 10h | 11h |
| Milan → Bormio | train and bus | 3h | 3h |
| Bormio → Livigno | road, in winter | 1h | 1h |
| Santa Giulia → Rho (two hockey arenas) | public transport | 1h | 1h |
| 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 tfmtDuration 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 | ||
| events | new | |
| ❄️ on snow | ||
| Alpine skiing | 10 | team combined, men and women |
| Biathlon | 11 | |
| Cross-country skiing | 12 | |
| Freestyle skiing | 15 | dual moguls, men and women |
| Nordic combined | 3 | |
| Ski jumping | 6 | women's large hill |
| Ski mountaineering | 3 | the whole sport: two sprints and a mixed relay |
| Snowboarding | 11 | |
| ⛸️ on ice | ||
| Curling | 3 | |
| Figure skating | 5 | |
| Ice hockey | 2 | |
| Short-track speed skating | 9 | |
| Speed skating | 14 | |
| 🛷 sliding | ||
| Bobsleigh | 4 | |
| Luge | 5 | doubles for men and for women, instead of open doubles |
| Skeleton | 3 | mixed 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 tThe 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")import polars as pl
from great_tables import GT, loc, style
medals = pl.read_csv("docs/stories/data/milano-cortina/medals.tsv",
separator="\t", comment_prefix="#").head(10)
(GT(medals, rowname_col="team")
.tab_header("Medal table", "Milano Cortina 2026, top ten")
.cols_hide("rank")
.fmt_flag("code")
.cols_label(code="", gold="🥇", silver="🥈", bronze="🥉")
.tab_spanner("medals", columns=["gold", "silver", "bronze"])
.data_color("gold", palette=["#FCFAF2", "#F7D94C"])
.data_color("silver", palette=["#FCFAF2", "#B9B7B2"])
.data_color("bronze", palette=["#FCFAF2", "#C2875C"])
.tab_style(style.text(weight="bold"), loc.body(columns="total")))library(gt)
medals <- read.delim("docs/stories/data/milano-cortina/medals.tsv", comment.char = "#")
gt(head(medals, 10), rowname_col = "team") |>
tab_header("Medal table", "Milano Cortina 2026, top ten") |>
cols_hide(rank) |>
fmt_flag(code) |>
cols_label(code = "", gold = "🥇", silver = "🥈", bronze = "🥉") |>
tab_spanner("medals", columns = c(gold, silver, bronze)) |>
data_color(gold, palette = c("#FCFAF2", "#F7D94C")) |>
data_color(silver, palette = c("#FCFAF2", "#B9B7B2")) |>
data_color(bronze, palette = c("#FCFAF2", "#C2875C")) |>
tab_style(cell_text(weight = "bold"), cells_body(columns = total))| Medal table | |||||
|---|---|---|---|---|---|
| Milano Cortina 2026, top ten | |||||
| medals | total | ||||
| 🥇 | 🥈 | 🥉 | |||
| Norway | 🇳🇴 | 18 | 12 | 11 | 41 |
| United States | 🇺🇸 | 12 | 12 | 9 | 33 |
| Netherlands | 🇳🇱 | 10 | 7 | 3 | 20 |
| Italy | 🇮🇹 | 10 | 6 | 14 | 30 |
| Germany | 🇩🇪 | 8 | 10 | 8 | 26 |
| France | 🇫🇷 | 8 | 9 | 6 | 23 |
| Sweden | 🇸🇪 | 8 | 6 | 4 | 18 |
| Switzerland | 🇨🇭 | 6 | 9 | 8 | 23 |
| Austria | 🇦🇹 | 5 | 8 | 5 | 18 |
| Japan | 🇯🇵 | 5 | 7 | 12 | 24 |
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 | |
| Norway | 18 | 12 | 11 | 41 |
| United States | 12 | 12 | 9 | 33 |
| Netherlands | 10 | 7 | 3 | 20 |
| Italy | 10 | 6 | 14 | 30 |
| Germany | 8 | 10 | 8 | 26 |
| France | 8 | 9 | 6 | 23 |
| Sweden | 8 | 6 | 4 | 18 |
| Switzerland | 6 | 9 | 8 | 23 |
| Austria | 5 | 8 | 5 | 18 |
| Japan | 5 | 7 | 12 | 24 |
| Total first | ||||
|---|---|---|---|---|
| 🥇 | 🥈 | 🥉 | all | |
| Norway | 18 | 12 | 11 | 41 |
| United States | 12 | 12 | 9 | 33 |
| Italy | 10 | 6 | 14 | 30 |
| Germany | 8 | 10 | 8 | 26 |
| Japan | 5 | 7 | 12 | 24 |
| France | 8 | 9 | 6 | 23 |
| Switzerland | 6 | 9 | 8 | 23 |
| Canada | 5 | 7 | 9 | 21 |
| Netherlands | 10 | 7 | 3 | 20 |
| Sweden | 8 | 6 | 4 | 18 |
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 | 🇨🇭 | Switzerland | 4 | 5 |
| Biathlon | 🇫🇷 | France | 6 | 2 |
| Cross-country skiing | 🇳🇴 | Norway | 7 | 2 |
| Freestyle skiing | 🇺🇸 | United States | 3 | 3 |
| Nordic combined | 🇳🇴 | Norway | 3 | — |
| Ski jumping | 🇳🇴 | Norway | 2 | — |
| Ski mountaineering | 🇫🇷 | France | 1 | — |
| Snowboarding | 🇯🇵 | Japan | 4 | 3 |
| ⛸️ on ice | ||||
| Curling | 🇸🇪 | Sweden | 2 | 1 |
| Figure skating | 🇺🇸 | United States | 2 | 1 |
| Ice hockey | 🇺🇸 | United States | 2 | — |
| Short-track speed skating | 🇳🇱 | Netherlands | 5 | 4 |
| Speed skating | 🇳🇱 | Netherlands | 5 | 5 |
| 🛷 sliding | ||||
| Bobsleigh | 🇩🇪 | Germany | 3 | — |
| Luge | 🇩🇪 | Germany | 3 | 4 |
| Skeleton | 🇬🇧 | Great Britain | 2 | — |
| 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 tThe 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 | ||
| 1994 | Lillehammer | 104 | 20 | 4 |
| 1998 | Nagano | 113 | 10 | 10 |
| 2002 | Salt Lake City | 112 | 13 | 7 |
| 20061 | Turin | 185 | 11 | 9 |
| 2010 | Vancouver | 114 | 5 | 16 |
| 2014 | Sochi | 113 | 8 | 22 |
| 2018 | Pyeongchang | 120 | 10 | 12 |
| 2022 | Beijing | 118 | 17 | 13 |
| 2026 | Milano Cortina | 196 | 30 | 4 |
| 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 tThree 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 | |||
|---|---|---|---|
| sport | event | who | |
| 🥇 Gold | |||
| 7 Feb | ⛸️ Speed skating | Women's 3000 metres | Francesca Lollobrigida |
| 10 Feb | ⛸️ Short-track speed skating | Mixed 2000 metre relay | Elisa Confortola, Arianna Fontana, Thomas Nadalini, Pietro Sighel, Luca Spechenhauser, Chiara Betti |
| 11 Feb | 🛷 Luge | Women's doubles | Andrea Vötter, Marion Oberhofer |
| 11 Feb | 🛷 Luge | Men's doubles | Emanuel Rieder, Simon Kainzwaldner |
| 12 Feb | ❄️ Alpine skiing | Women's super-G | Federica Brignone |
| 12 Feb | ⛸️ Speed skating | Women's 5000 metres | Francesca Lollobrigida |
| 15 Feb | ❄️ Alpine skiing | Women's giant slalom | Federica Brignone |
| 15 Feb | ❄️ Biathlon | Women's pursuit | Lisa Vittozzi |
| 17 Feb | ⛸️ Speed skating | Men's team pursuit | Davide Ghiotto, Andrea Giovannini, Michele Malfatti |
| 21 Feb | ❄️ Freestyle skiing | Men's ski cross | Simone Deromedis |
| 🥈 Silver | |||
| 7 Feb | ❄️ Alpine skiing | Men's downhill | Giovanni Franzoni |
| 8 Feb | ❄️ Biathlon | Mixed relay | Tommaso Giacomel, Lukas Hofer, Dorothea Wierer, Lisa Vittozzi |
| 12 Feb | ⛸️ Short-track speed skating | Women's 500 metres | Arianna Fontana |
| 15 Feb | ❄️ Snowboarding | Mixed team snowboard cross | Lorenzo Sommariva, Michela Moioli |
| 18 Feb | ⛸️ Short-track speed skating | Women's 3000 metre relay | Elisa Confortola, Arianna Fontana, Chiara Betti, Arianna Sighel |
| 21 Feb | ❄️ Freestyle skiing | Men's ski cross | Federico Tomasoni |
| 🥉 Bronze | |||
| 7 Feb | ❄️ Alpine skiing | Men's downhill | Dominik Paris |
| 8 Feb | ❄️ Alpine skiing | Women's downhill | Sofia Goggia |
| 8 Feb | ❄️ Snowboarding | Women's parallel giant slalom | Lucia Dalmasso |
| 8 Feb | ⛸️ Speed skating | Men's 5000 metres | Riccardo Lorello |
| 8 Feb | 🛷 Luge | Men's singles | Dominik Fischnaller |
| 8 Feb | ⛸️ Figure skating | Team event | Daniel Grassl, Matteo Rizzo, Lara Naki Gutmann, Sara Conti, Niccolò Macii, Charlène Guignard, Marco Fabbri |
| 10 Feb | ⛸️ Curling | Mixed doubles | Stefania Constantini, Amos Mosaner |
| 12 Feb | 🛷 Luge | Team Relay | Verena Hofer, Emanuel Rieder, Simon Kainzwaldner, Dominik Fischnaller, Andrea Vötter, Marion Oberhofer |
| 13 Feb | ❄️ Snowboarding | Women's snowboard cross | Michela Moioli |
| 15 Feb | ❄️ Cross-country skiing | Men's 4 × 7.5 km relay | Davide Graz, Elia Barp, Martino Carollo, Federico Pellegrino |
| 16 Feb | ❄️ Freestyle skiing | Women's big air | Flora Tabanelli |
| 18 Feb | ❄️ Cross-country skiing | Men's team sprint | Elia Barp, Federico Pellegrino |
| 20 Feb | ⛸️ Short-track speed skating | Men's 5000 metre relay | Andrea Cassinelli, Thomas Nadalini, Pietro Sighel, Luca Spechenhauser |
| 21 Feb | ⛸️ Speed skating | Men's mass start | Andrea 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 ttextCaseMatch(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 | ||
| Norway | 18 | 41 | 🇳🇴 |
| United States | 12 | 33 | 🇺🇸 |
| Netherlands | 10 | 20 | 🇳🇱 |
| Italy | 10 | 30 | 🇮🇹 |
| Germany | 8 | 26 | 🇩🇪 |
| France | 8 | 23 | 🇫🇷 |
| Paralympics | |||
|---|---|---|---|
| 🥇 | all | ||
| China | 15 | 44 | 🇨🇳 |
| United States | 13 | 24 | 🇺🇸 |
| Russia | 8 | 12 | 🇷🇺 |
| Italy | 7 | 16 | 🇮🇹 |
| Austria | 7 | 13 | 🇦🇹 |
| France | 4 | 12 | 🇫🇷 |
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 | |||
|---|---|---|---|
| free | every race | ||
| Rai 2, Rai Sport, RaiPlay | free to air and streaming | ✓ | ✗ |
| Eurosport (six channels) | with Discovery+, DAZN, TimVision or HBO Max | ✗ | ✓ |
| Sky, Now | no 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 tfmtTf 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 €100 | 57% |
| Tickets between €30 and €40 | 20% |
| Spectators from abroad | 63% |
| 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 t1.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 | 🇩🇪 |
| Norway3 | nothing | nothing | nothing | 🇳🇴 |
| Great Britain3 | nothing | nothing | nothing | 🇬🇧 |
| 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 tThe 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 | |||
|---|---|---|---|
| weighs | of gold | worth | |
| 🥇 Gold | 506 g | 6 g | €2,000 |
| 🥈 Silver | — | none | €1,200 |
| 🥉 Bronze | 420 g | none | a 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 tThe 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 | |||||
| first | last | × | |||
| Ski jumps, rebuilt | Predazzo | built | 8.7 | ? | ×5.01 |
| Palasharp arena | Milan | dropped | 13 | 46 | ×3.5 |
| Skating oval, roofed | Baselga di Piné | dropped | 50 | 75 | ×1.5 |
| Sliding track | Cortina | built | 60 | 118 | ×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 tTwo 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 2021 | The Veneto region's feasibility project | 60.8 |
| Sep 2023 | The tender's figure; nobody wants to build it | 81.0 |
| Feb 2024 | A builder, for fewer stands and no car park | 81.6 |
| Jan 2026 | The track, finished, as the Games begin | 118.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 tBuilding 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 tElectricity 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 arena | before the works | 177 |
| CTS Eventim, the owner | extra costs, from materials, energy and haste | 134 |
| The city of Milan | extra costs | 53 |
| The state, so far | 21 direct, about 30 in services over the years | 51 |
| 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 tC · 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 Games | 1.6M | m³ | as much as 640 Olympic pools |
|---|---|---|---|
| Water for the snow at Cortina alone | 1.2M | m³ | 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 tfmtNumber(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 | ||
| 1959 | first February measured | 316 ppm | — |
| 2006 | Turin 2006 | 382 ppm | 21% |
| 2026 | Milano Cortina 2026 | 429 ppm | 36% |
| 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 tThe 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₂e | snow cover | glacier ice1 | |
| The Games | |||
| all of it | 930K t | 2.3 km² | 14 Mt |
| spectators' travel | 410K t | ||
| Sponsors | |||
| Eni, Stellantis, ITA | 1.3M t | 3.2 km² | 20 Mt |
| Eni alone | 700K t | 1.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 tfmtNumber(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 | ||
| Temporary | 115 | 12% |
| Permanent, still in use | 743 | 76% |
| Permanent, gone (demolished or replaced) | 94 | 10% |
| Permanent, abandoned1 | 30 | under 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 tsubSmallVals 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, Rho | TEMPORARY | an arena for events and concerts |
| Ice hockey rink, Rho | TEMPORARY | moved to another hall of the fair, open again in the autumn |
| Arena Santa Giulia, Milan | NEW | concerts, volleyball, basketball, tennis |
| Olympic village, Porta Romana | NEW | student housing; 450 beds at €592 a month |
| Trampolino Italia, Cortina | RESTORED | a monument at the entrance of the valley; no jumping |
| Sliding track, Cortina | REBUILT | training 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 tMilan 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 2026 | The Games close in the Arena of Verona | Il Post ↗ |
| 15 Mar 2026 | The Paralympics close: Italy 16 medals, 7 gold, both records | Il Post ↗ |
| 5 May 2026 | The Court of Auditors looks into the Santa Giulia arena | Il Post ↗ |
| 8 May 2026 | …and into the sliding track of Cortina | Il Post ↗ |
| 8 Jul 2026 | Nordic combined will not be at the next Winter Games | Il Post ↗ |
| 8 Oct 2026 | KPMG: the sliding track loses €800,000 a year | Il Post ↗ |
| 8 Dec 20261 | The Socrepes cable car is due to open, at half the planned capacity | Il 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 tThe 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 25 | Il futuro delle Olimpiadi invernali è farle “diffuse”? | read ↗ | why the Games were spread over eight places, and what environmental groups say about it |
| 17 Oct 25 | Quanto costa vedere dal vivo le Olimpiadi di Milano Cortina? | read ↗ | tickets and rooms, the two costs of watching a race |
| 29 Oct 25 | Le Olimpiadi di Milano Cortina Bormio Livigno Tesero Predazzo Anterselva Verona | read ↗ | a tour of the places, sport by sport, and the distances between them |
| 30 Oct 25 | Che fine fanno gli impianti olimpici | read ↗ | what happened to almost a thousand Olympic venues since 1896 |
| 22 Jan 26 | A Cortina ci sono più cantieri che neve | read ↗ | two weeks before the Games, the town still under construction |
| 2 Feb 26 | Come le Olimpiadi invernali sono arrivate a Milano e a Cortina | read ↗ | six and a half years, from the vote in Lausanne to the opening |
| 6 Feb 26 | Dove si vedono le Olimpiadi invernali di Milano Cortina | read ↗ | free channels, paid platforms and what each one shows |
| 17 Feb 26 | Come mai tutte queste medaglie? | read ↗ | more events, home advantage, a long plan, or luck |
| 23 Feb 26 | Ogni paese conta le medaglie un po’ come vuole | read ↗ | golds first or total first, and the tables nobody makes |
| 23 Feb 26 | Quanto si guadagna vincendo una medaglia alle Olimpiadi | read ↗ | what each country pays for a medal, and what the medal itself is worth |
| 24 Feb 26 | Le Olimpiadi di Milano Cortina hanno nascosto bene i problemi | read ↗ | a first balance: the Games liked, the problems still there |
| 25 Feb 26 | Cosa rimarrà a Milano delle Olimpiadi invernali | read ↗ | what each building in Milan becomes |
| 10 Mar 26 | Come la Cina è diventata così forte alle Paralimpiadi invernali | read ↗ | from no medal in 2014 to first in the table |
| 5 May 26 | La Corte dei conti sta indagando su possibili irregolarità nella costruzione dell’Arena Santa Giulia di Milano | read ↗ | who pays the extra costs of the hockey arena |
| 8 Oct 26 | Per tenere aperta la pista da bob di Cortina servono 800mila euro all’anno | read ↗ | 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 tfmtUrl 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 CSV | readCsv has no comment option, so readTsv strips # lines first; Polars has comment_prefix, R comment.char. |
| The first n rows, after sorting | 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. |
| Totals in a group | The 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 units | 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. |
| Markdown in a replacement | 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). |
| `locations` after defaults | 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. |
| Ranks from the data | 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. |
| A blank instead of zero | 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. |
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