# Usage

### 🔲 Placeholders

<pre><code>%gradient2_random_&#x3C;amount>_&#x3C;format>_&#x3C;text>%
%gradient2_randomstyle:&#x3C;style>_&#x3C;amount>_&#x3C;format>_&#x3C;text>%
%gradient2_autoformat_&#x3C;hex1>,&#x3C;hex2>_..._&#x3C;format>_&#x3C;text>%
%gradient2_autoformatstyle:&#x3C;style>_&#x3C;hex1>,&#x3C;hex2>_..._&#x3C;format>_&#x3C;text>%
%gradient2_preset:&#x3C;id>_&#x3C;text>%
%gradient2_style:&#x3C;style>_&#x3C;hex1>,&#x3C;hex2>,..._&#x3C;text>%
<strong>%gradient2_&#x3C;hex1>,&#x3C;hex2>,..._&#x3C;text>
</strong></code></pre>

{% hint style="info" %}
You can find the preset **\<id>** in the **config.yml** file at **.../plugins/PlaceholderAPI/**\
This is the name of the preset, for example **monochrome** or **rainbow**
{% endhint %}

{% hint style="info" %}
Valid <**style**> arguments:

* k (aliases: **\&k**, **obfuscated**)
* l (aliases: **\&l**, **bold**)
* m (aliases: **\&m**, **strikethrough**)
* n (aliases: **\&n**, **underline**)
* o (aliases: **\&o**, **italic**)

The values are separated by a comma (**,**)\
e.g.: **%gradient2\_style:l,o,n\_\&#ACE1AF,\&#00CC99\_This will work beautifully!%**
{% endhint %}

{% hint style="info" %}
Valid <**hex**> arguments:

* \&#RRGGBB (e.g. **\&#ACE1AF**)
* \#RRGGBB (e.g. **#ACE1AF**)
* <#RRGGBB> (e.g. **<#ACE1AF>**)
* \&x\&R\&R\&G\&G\&B\&B (e.g. **\&x\&A\&C\&E&1\&A\&F**)
* RRGGBB (e.g. **ACE1AF**)

The hex codes have to be consistent in a single placeholder, no mixing allowed

e.g.: **%gradient2\_\&#ACE1AF,#00CC99\_This won't work :(%**
{% endhint %}

{% hint style="info" %}
Valid <**format**> arguments:

* DEFAULT (\&#RRGGBB)

* DEFAULT2 (#RRGGBB)

* COMPONENT (<#RRGGBB>)

* LEGACY (\&x\&R\&R\&G\&G\&B\&B)

* SECTION (§x§R§R§G§G§B§B)

* RAW (RRGGBB)
  {% endhint %}

* **Preset Example**\
  %gradient2\_preset:pastel\_Hello!%\
  ![](https://4103715252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7iNDLpcU62gE2lY143wk%2Fuploads%2F9xAoX7IFaeTWg82yQw73%2Fhello.png?alt=media\&token=f694bcbc-ce17-432c-b945-84057c00f53d)

* **Inner placeholder support**\
  %gradient2\_preset:pastel\_{player\_name} is cool!%\
  ![](https://4103715252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7iNDLpcU62gE2lY143wk%2Fuploads%2Ff7wPIXkupI5PrZtC65X0%2Fpilly_is_cool.png?alt=media\&token=292a75d5-1d8e-4c57-b05b-8a7448ff8fc7)

* **Multiple inner placeholder support** %utils\_parse\_gradient2\_preset:pastel\_{customfont\_mini\_{player\_name} is double cool!}%\ <img src="https://4103715252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7iNDLpcU62gE2lY143wk%2Fuploads%2FcrTqyD8ZUypZTTsmsFBw%2Fpilly_is_double_cool.png?alt=media&#x26;token=b3d35c6b-81b2-43f1-8b7b-d5c159d94312" alt="" data-size="line">
  * Like this text style? Find more about the CustomFont [expansion ](https://docs.aeonxd.xyz/expansions/customfont)and [plugin](https://docs.aeonxd.xyz/plugins/customfont)

{% hint style="info" %}
You need the **Utils** expansion for multiple inner placeholders\
\
Expansion download command: **/papi ecloud download Utils**
{% endhint %}
