WoodcoreMake the numbers vibe

Commands › The document and its citations

#t-of The document and its citations

Gives one of the engine's words in the language given, whatever the report's.

#t-of(, , )

Hover an argument: what it does. Hover its value: every possible value. A click keeps the bubble open.

The essentials

The glossaryThe engine's words live in calc/i18n/strings.json, in three languages.
Without a contextThe language is written: nothing to read in the document.
Three languages side by sideA loop over ("de", "fr", "en") prints a word in each.

Arguments

ArgumentStatusWhat it does, and examples
The line's arguments
required
The language: "de", "fr" or "en".
#t-of("fr", "governing")in French, whatever the report's language
"de"in German
required
A key of the glossary's engine or templates block.
"governing"«governing» in English
"connection.caption"a template, with its holes
optional
One named argument per hole of the template.
id: "VU-MP-1"the template's hole {id}
sheet: "SL"the hole {sheet}

Lines to copy

Minimal call

#t-of("fr", "governing")

Examples

Example 1
#t-of("fr", "governing")
The page t-of produces, level 2
Example 2
#for l in ("de", "fr", "en") [ #l: #t-of(l, "governing") \ ]
The page t-of produces, level 2

Defined in lib/i18n.typ:127