Viewing Formatter

v2.8.0

Formatter

by andre_601


Release Notes

- **[Added]** `!title!` and `!titlestrict!` options added for `capitalize` text placeholder. - `!title!` converts the text to Title case (capitalize the first letter of each word). This will keep pre-existing casing. - `!titlestrict!` converts the text to Title case (capitalize the first letter of each word) while forcing every other letter to be lowercase. - A `!normal!` option exists too, but it does the same as if no option was provided and only exists for easier code. - **[Added]** `time.belowZeroOutput` config option. - Will be used by the `time` number placeholder for when the input is below 0. - When set to `{{number}}` (Default) will the number be returned. - When set to `null` (Needs to be in quotes) will null be returned, causing the placeholder to be treated as invalid. - **[Changed]** the config options for `time` and `shorten` now use `{{number}}` in their units to be replaced with a number. If no `{{number}}` is present will it be put before the unit when returning the text. **NOTE:** Due to changes made will you need to `/papi reload` to apply changes in the unit options of the config. - **[Fixed]** Issue in `time` where it would check for `days` number to be 0 and the `time.includeZeroX` option to be true. This means that when it was checking for f.e. Minutes, it wouldn't check if minutes was zero and `includeZeroMinutes` was true, but if days was not zero and `includeZeroMinutes` was true.

March 20, 2025, 12:28 a.m.

Copyright © 2021 PlaceholderAPI All Rights Reserved.