mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
doc: tags: add a couple of formatting examples
This commit is contained in:
parent
11bef7dd08
commit
38a1d0b57c
1 changed files with 20 additions and 0 deletions
|
@ -108,3 +108,23 @@ be used.
|
||||||
: Realtime tags
|
: Realtime tags
|
||||||
: Renders a realtime tag's unit (e.g. "s", or "ms")
|
: 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
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue