Docs Documentación

Glossary

The glossary lets you define terms that viewers can look up without leaving a story. When a viewer clicks a glossary link, the definition appears in a slide-over panel.

Creating a Glossary

There are two ways to define glossary terms. The CSV format (new in v0.8.0) is recommended for most projects.

Add a glossary.csv file to components/structures/:

term_id,title,definition,related_terms
loom,Loom,A device used to weave cloth and tapestry.,warp
warp,Warp,"The set of lengthwise yarns on a loom, through which the weft is woven.",loom
encomienda,Encomienda,"A system of labor in colonial Spanish America, granting colonists authority over indigenous workers.",

Each row defines one term:

The CSV format works with Google Sheets — the glossary tab is fetched automatically like your other CSVs. Column names can be in English or Spanish (see CSV Reference: Glossary for aliases).

Markdown Format (Legacy)

Individual markdown files in components/texts/glossary/:

---
term_id: colonial-period
title: "Colonial Period"
related_terms: encomienda,viceroyalty
---

The Colonial Period in the Americas began with the arrival of
European colonizers in the late 15th century...

Each file defines one term. The body of the file is the definition.

If both a CSV glossary and markdown glossary files exist, Telar uses the CSV and ignores the markdown files (with a build warning).

Linking to Glossary Terms

Link to glossary terms from story panels using double-bracket syntax:

Shorthand

Uses the term’s title as the link text:

The [[loom]] was central to textile production.

Renders as: The Loom was central to textile production.

Custom Display Text

Use a pipe separator to specify different link text:

The [[loom|weaving device]] was central to textile production.

Renders as: The weaving device was central to textile production.

Glossary auto-links work in:

If a term_id is not found in the glossary, a warning icon and error message appear in the build output and in the story panel.

Viewer Experience

When a viewer clicks a glossary link:

  1. A slide-over panel appears from the side of the screen
  2. The panel shows the term’s title and definition
  3. Related terms appear as additional links at the bottom
  4. The viewer can navigate between related terms without closing the panel
  5. Clicking outside the panel or pressing the close button dismisses it

The viewer stays on the current story step throughout — glossary lookups don’t interrupt the narrative flow.

Glossary page showing alphabetical term listing

Tips

See Also