Unit Placeholders
Use Type = unit when a placeholder should provide a static unit such as °C, %, or kHz.
This page is part of the Placeholder Definitions section.
Required Columns
| Column | What it means |
|---|---|
Placeholder Key | The key used in templates, without braces. |
Type | Must be unit. |
Display Text | The unit text shown on the page. |
Base Unit Factor | Conversion factor used when the unit placeholder is used as a pipe on a numeric data placeholder. |
What To Fill In
Source Field IDis not needed.Display Strategyis ignored.Entity Typeis ignored.- The value in
Display Textis rendered directly. Base Unit Factoris used for unit-conversion pipes such as{{impedance-analog-in-resistance | resistance-default-unit}}.
Example Keys
operating-temperature-unit->°Chumidity-unit->%resolution-unit->bitsampling-rate-default-unit->kHzsampling-rate-high-unit->MHzsettling-time-unit->µsresistance-default-unit->kΩresistance-high-unit->MΩcapacitance-unit->pF
Example Template
{{operating-temperature-min}} {{operating-temperature-unit}} to {{operating-temperature-max}} {{operating-temperature-unit}}
Unit Conversion With Pipes
You can also use a unit placeholder as a pipe on a numeric data placeholder:
{{impedance-analog-in-resistance | resistance-default-unit}}
In this case:
- the
dataplaceholder provides the numeric source value - the
unitplaceholder providesDisplay Text - the
Base Unit Factorcontrols how the numeric value is converted before rendering
Example:
- source value in Airtable:
13600 - unit placeholder:
Display Text = kΩBase Unit Factor = 1000
- rendered output:
13.6 kΩ
Recommended setup:
- Choose one canonical storage unit per unit family in Airtable.
- Set that unit placeholder to
Base Unit Factor = 1. - Define every other unit placeholder relative to that storage unit.
tip
Use a unit placeholder whenever the same unit text appears in more than one row. That keeps the table consistent and easier to update.