### `CheckboxFormField`
-!!! info "Only available since version 5.3.2."
-
`CheckboxFormField` extends `BooleanFormField` and offers a simple HTML checkbox.
By default, the preview button is shown.
This method is only relevant before the form is built.
Afterwards, the preview button availability can not be changed.
- Only available since WoltLab Suite Core 5.3.
- `getObjectId()` returns the id of the edited object or `0` if no object is edited.
- `getPreselect()`, `preselect($preselect)` can be used to set the value of the wysiwyg tab menu's `data-preselect` attribute used to determine which tab is preselected.
By default, the preselect is `'true'` which is used to pre-select the first tab.
# Template Plugins
-## <span class="label label-info">5.3+</span> `anchor`
+## `anchor`
The `anchor` template plugin creates `a` HTML elements.
The easiest way to use the template plugin is to pass it an instance of `ITitledLinkObject`:
is sufficient if `Entry::getPopoverLinkClass()` returns `blogEntryLink`.
-## <span class="label label-info">5.3+</span> `anchorAttributes`
+## `anchorAttributes`
`anchorAttributes` compliments the `StringUtil::getAnchorTagAttributes(string, bool): string` method.
It allows to easily generate the necessary attributes for an anchor tag based off the destination URL.
```
-## <span class="label label-info">3.1+</span> `dateInterval`
+## `dateInterval`
`dateInterval` calculates the difference between two unix timestamps and generated a textual date interval.
| Attribute | Description |
|-----------|-------------|
-| <span class="label label-info">5.2+</span> `disabled` | if `true`, all checkboxes are disabled |
+| `disabled` | if `true`, all checkboxes are disabled |
| `disableEncoding` | if `true`, the values are not passed through `wcf\util\StringUtil::encodeHTML()`; `false` by default |
| `name` | `name` attribute of the `input` checkbox element |
| `output` | array used as keys and values for `options` if present; not present by default |
| `key` | optional template variable name where the current array key is stored during the iteration |
-## <span class="label label-info">5.2+</span> `ipSearch`
+## `ipSearch`
`ipSearch` generates a link to search for an IP address.
```
-## <span class="label label-info">5.3+</span> `jslang`
+## `jslang`
`jslang` works like [`lang`](#lang) with the difference that the resulting string is automatically passed through [`encodeJS`](#encodejs).
```
-## <span class="label label-info">5.3+</span> `plural`
+## `plural`
`plural` allows to easily select the correct plural form of a phrase based on a given `value`.
The pluralization logic follows the [Unicode Language Plural Rules](https://unicode-org.github.io/cldr-staging/charts/37/supplemental/language_plural_rules.md) for cardinal numbers.
| 3 | if `true`, words can be broken up in the middle; `false` by default |
-## <span class="label label-info">5.3+</span> `user`
+## `user`
`user` generates links to user profiles.
The mandatory `object` parameter requires an instances of `UserProfile`.