doc: tags: add a couple of formatting examples

This commit is contained in:
Daniel Eklöf 2023-01-02 11:51:43 +01:00
parent 11bef7dd08
commit 38a1d0b57c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -108,3 +108,23 @@ be used.
: Realtime tags
: Renders a realtime tag's unit (e.g. "s", or "ms")
# EXAMPLES
- A numeric (float or int) tag with at least 3 digits, zero-padded if
necessary:
```
{tag:03}
```
- A float tag with 2 decimals:
```
{tag:.2}
```
- A "byte count" tag in gigabytes:
```
{tag:gib}GB
```