Viewing Formatter

v2.5.0

Formatter

by andre_601


How to install the Formatter expansion:

As this is a verified expansion you have two possible ways of installation.

In-game: You can run these commands to download and install:

/papi ecloud download Formatter

/papi reload

Manual: Simply click the green download button to download the expansion, then copy the expansion to the /plugins/PlaceholderAPI/expansions/ folder.

Then run the /papi reload command.


Description

Expansion allowing you to fomat numbers and text in various different ways. Placeholders using the bracket format ({placeholder}) are supported.

Currently supported Number formattings:
- Format number by adding dividers for x numbers (i.e. 1000 -> 1,000)
- Convert a number from one time unit to another
- Rounding
- Shorten (i.e. 1000 -> 1k)
- Convert to a collection of time units (i.e. 100 -> 1m 40s)

Currently supported Text formattings:
- Capitalize the first letter of a string
- Get the length of a string
- Lowercase a string
- Replace one set of characters with another
- Get a specific section of a string (Substring)
- Uppercase a string

Placeholders

%formatter_number_format[_[locale]:[pattern]]_<number>%
%formatter_number_from:<timeunit>_to:<timeuinit>_<number>%
%formatter_number_round[_[precision]:[rounding]]_<number>%
%formatter_number_shorten_<number>%
%formatter_number_time[_<timeunit>]_<number>%
%formatter_text_capitalize_<text>%
%formatter_text_length_<text>%
%formatter_text_lowercase_<text>%
%formatter_text_replace_[target]_[replacement]_<text>%
%formatter_text_substring_[start]:[end]_<text>%
%formatter_text_uppercase_<text>%

View the full list of Placeholders here.

Version 2.5.0 Release Notes

- **[Added]** `{{prc}}` placeholder. - Gets replaced with `%` when parsed. - **[Changed]** `{{u}}` can now be used in all available placeholders, not just replace. - **[Fixed]** `Placeholder needs to be of format '%formatter_<type>_<option>_<values>%` now only shows if `<type>` or `<option>` are empty/null. - Should `<values>` be empty/null will an empty String be returned.

Copyright © 2021 PlaceholderAPI All Rights Reserved.