# Placeholder reference

Complete syntax reference for all Nibit dynamic placeholders.

## Placeholder syntax

```
{keyword [attribute="value" ...] [| modifier ...]}
```

## All placeholders

| Placeholder | Attributes | Snippets | Quick links |
|---|---|---|---|
| `{date}` | `format`, `offset` | ✓ | ✓ |
| `{time}` | `format`, `offset` | ✓ | ✓ |
| `{datetime}` | `format`, `offset` | ✓ | ✓ |
| `{day}` | — | ✓ | ✓ |
| `{clipboard}` | `offset` | ✓ | ✓ |
| `{selection}` | — | ✓ | — |
| `{cursor}` | — | ✓ | — |
| `{uuid}` | — | ✓ | ✓ |
| `{random}` / `{random:uuid}` | — | ✓ | ✓ |
| `{random:1..100}` | — | ✓ | ✓ |
| `{random:a,b,c}` | — | ✓ | ✓ |
| `{snippet name="…"}` | `name` (required) | ✓ | — |

:::note
Numeric ranges for `{random}` support integers up to ±9,007,199,254,740,991 (2⁵³−1) when used in the web editor. Ranges beyond this limit may not resolve correctly on web due to JavaScript floating-point precision.
:::
| `{argument}` | `name`, `default`, `options` | ✓ | ✓ |

## Date/time attributes

| Attribute | Type | Description |
|---|---|---|
| `format` | String | SimpleDateFormat pattern (e.g. `"yyyy-MM-dd"`) |
| `offset` | String | One or more space-separated offset values (e.g. `"+1d"`, `"+1y -3d"`) |

**Offset units** (case-sensitive):

| Unit | Meaning |
|---|---|
| `y` | Years |
| `M` | Months |
| `d` | Days |
| `h` | Hours |
| `m` | Minutes |

## Clipboard attributes

| Attribute | Type | Description |
|---|---|---|
| `offset` | Integer string | Index into clipboard history. `"0"` = most recent (default) |

## Argument attributes

| Attribute | Type | Description |
|---|---|---|
| `name` | String | Identifier; reuse the same name to reuse the value |
| `default` | String | Pre-filled value; makes the argument optional |
| `options` | Comma-separated string | Presents a picker instead of free-text input |

Maximum 3 arguments per snippet or quick link.

## Modifiers

| Modifier | Applies to | Description |
|---|---|---|
| `uppercase` | Any | Convert to ALL CAPS |
| `lowercase` | Any | Convert to all lowercase |
| `trim` | Any | Strip leading/trailing whitespace |
| `percent-encode` | Any | URL percent-encode the value |
| `json-stringify` | Any | JSON-encode (escape quotes, newlines, etc.) |
| `raw` | Quick links | Disable automatic URL encoding |
| `capitalcase` | Any | Capitalize the first letter of each word (lowercases rest). Alias: `capitals` |
| `reverse` | Any | Reverse by Unicode grapheme clusters |
| `stripdiacritics` | Any | Remove combining diacritical marks (NFD normalization). Example: `café` → `cafe` |
| `stripnonalphanumeric` | Any | Remove all non-letter, non-digit characters |

## Snippet inclusion attributes

| Attribute | Required | Description |
|---|---|---|
| `name` | Yes | Trigger of the snippet to expand inline |

The referenced snippet cannot itself contain `{snippet}`.
