Jump to content

Formatting: Difference between revisions

From Leaf Essentials
update
Tag: Reverted
m Reverted edits by WikiAudit2026 (talk) to last revision by Ashy
Tag: Rollback
 
Line 1: Line 1:
<div style="background:#000000;color:#ffffff;font-family:Arial,sans-serif;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px;position:fixed;top:0;left:0;width:100%;z-index:9999;">
= Formatting =
== Basics ==


<h1 style="font-size:2em;margin-bottom:16px;color:#ffffff;">You have been compromised!</h1>
The formatting system can be used in anything, from sidebars, to UIs, and even nametags and chat customization


<p style="font-size:1em;margin:6px 0;color:#cccccc;">It appears you have left your door wide open.</p>
{| class="wikitable sortable"
<p style="font-size:1em;margin:6px 0;color:#cccccc;">Better lock it next time.</p>
! Placeholder !! Description
<p style="font-size:1em;margin:6px 0;color:#cccccc;">Session ID - 0537c8a22869cdb935ca722c525729039381258b2c3a83c943e2e9f8fd39d45a28</p>
|-
<p style="font-size:1em;margin:6px 0;color:#cccccc;">XMR - 84uqThFFd1fce2afDEfM9gbrax7NCpGSLJjG8rwnShPnCmLvHS6bsHx17RhZ13DR3g3Rntd1dsHKgFbu7foAtfiZVqRi3Le</p>
| &lt;name&gt; / &lt;username&gt; || Player name
<p style="font-size:1em;margin:6px 0;color:#cccccc;">LTC - ltc1qe63fw05lx2pcukzygwyq9m2e007la8z9j3gtr8</p>
|-
| &lt;name_tag&gt; || Player name tag
|-
| &lt;rank&gt; || Player’s first rank
|-
| &lt;bc&gt; || Bracket color
|-
| &lt;nc&gt; || Name color
|-
| &lt;mc&gt; || Message color
|-
| &lt;x&gt; &lt;y&gt; &lt;z&gt; || Player coordinates
|-
| &lt;dID&gt; || Dimension ID
|-
| &lt;hp&gt; || Current health
|-
| &lt;hp_max&gt; || Max health
|-
| &lt;hp_min&gt; || Min health
|-
| &lt;hp_default&gt; || Default health
|-
| &lt;healthbar&gt; || Health bar
|-
| &lt;xp&gt; || XP progress
|-
| &lt;level&gt; || Player XP level
|-
| &lt;kills&gt; || Total kills
|-
| &lt;deaths&gt; || Total deaths
|-
| &lt;biome&gt; || Current biome
|-
| &lt;dimension&gt; || Current dimension
|-
| &lt;netherX&gt; || What the player&#39;s X coordinate would be in the nether
|-
| &lt;netherZ&gt; || What the player&#39;s Z coordinate would be in the nether
|-
| &lt;overworldX&gt; || What the player&#39;s X coordinate would be in the overworld
|-
| &lt;overworldZ&gt; || What the player&#39;s Z coordinate would be in the overworld
|-
| &lt;kills_streak&gt; || Current kill streak
|-
| &lt;k/d&gt; || Kill / Death ratio
|-
| &lt;cps&gt; || Clicks per second
|-
| &lt;blocks_broken&gt; || Blocks broken
|-
| &lt;blocks_placed&gt; || Blocks placed
|-
| &lt;seconds_played&gt; || Seconds played
|-
| &lt;minutes_played&gt; || Minutes played
|-
| &lt;hours_played&gt; || Hours played
|-
| &lt;days_played&gt; || Days played
|-
| &lt;weeks_played&gt; || Days / 7
|-
| &lt;years_played&gt; || Days / 365
|-
| &lt;total_hours_played&gt; || Total hours played
|-
| &lt;clan&gt; || Player clan
|-
| &lt;clanID&gt; || Clan ID (internal UI use)
|-
| &lt;online&gt; || Players online
|-
| &lt;public_clan_count&gt; || Public clans count
|-
| &lt;claim&gt; || Current land claim
|-
| &lt;currencies&gt; || All currencies (formatted)
|-
| &lt;chunkX&gt; || Player&#39;s chunk X coordinates
|-
| &lt;chunkZ&gt; || Player&#39;s chunk Z coordinates
|-
| &lt;chunkInX&gt; || Player&#39;s X coordinates relative to the chunk
|-
| &lt;chunkInZ&gt; || Player&#39;s Z coordinates relative to the chunk
|-
| &lt;tps&gt; || Server TPS
|-
| &lt;lv&gt; || Leaf version
|-
| &lt;servername&gt; || Server name
|-
| &lt;yr&gt; || Current year
|-
| &lt;mo&gt; || Month number
|-
| &lt;mo/n&gt; || Month name
|-
| &lt;d&gt; || Day of month
|-
| &lt;h&gt; || Hour (24h, UTC)
|-
| &lt;h/12&gt; || Hour (12h, UTC)
|-
| &lt;am/pm&gt; || AM / PM
|-
| &lt;m&gt; || Minute
|-
| &lt;s&gt; || Second
|-
| &lt;ms&gt; || Millisecond
|-
| &lt;day&gt; || In-game day
|-
| &lt;moonPhase&gt; || Moon phase
|-
| &lt;dra&gt; || »
|-
| &lt;dla&gt; || «
|-
| &lt;drj&gt; || Default rank joiner
|-
| &lt;randomShit&gt; || Random number
|-
| {{L &lt;id&gt;}} || Length of internal variable
|-
| {{D &lt;id&gt;}} || Value of internal variable
|-
| {{rank_joiner &quot;&lt;joiner&gt;&quot;}} || Joins ranks with separator
|-
| {{alternate &quot;&lt;text&gt;&quot; &quot;&lt;codes&gt;&quot;}} || Alternating colors
|-
| {{score &quot;&lt;objective&gt;&quot;}} || Player score
|-
| {{score2 &quot;&lt;objective&gt;&quot;}} || Fake player score
|-
| {{scoreshort &quot;&lt;objective&gt;&quot;}} || Shortened player score
|-
| {{scoreshort2 &quot;&lt;objective&gt;&quot;}} || Shortened fake score
|-
| {{is_afk &quot;&lt;t1&gt;&quot; &quot;&lt;t2&gt;&quot;}} || AFK check
|-
| {{has_tag &quot;&lt;tag&gt;&quot; &quot;&lt;t1&gt;&quot; &quot;&lt;t2&gt;&quot;}} || Tag check
|-
| <nowiki>{{vars}}</nowiki> || All variable names (legacy)
|-
| {{clan_owner &quot;&lt;t1&gt;&quot; &quot;&lt;t2&gt;&quot;}} || Clan owner check
|-
| <nowiki>{{activityscore}}</nowiki> || Chunk activity score
|-
| {{clan &quot;&lt;t1&gt;&quot; &quot;&lt;t2&gt;&quot;}} || Clan check
|-
| {{get_tag &quot;&lt;prefix&gt;&quot; &quot;&lt;t1&gt;&quot; &quot;&lt;t2&gt;&quot;}} || Prefix tag check
|-
| {{gay &quot;&lt;text&gt;&quot;}} || Rainbow text
|-
| {{trans &quot;&lt;text&gt;&quot;}} || Trans pride colors, because why not
|}


<pre style="font-family:monospace;font-size:14px;line-height:1.2;color:#ffffff;background:#000000;display:inline-block;text-align:left;padding:20px;margin-top:24px;">
== Examples ==
⠀⠀⠀⠀⠀⢸⠓⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
 
⠀⠀⠀⠀⠀⢸⠀⠀⠑⢤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
<pre>
⠀⠀⠀⠀⠀⢸⡆⠀⠀⠀⠙⢤⡷⣤⣦⣀⠤⠖⠚⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
Hello, my name is &lt;name&gt; and i have ${{score money}}
⣠⡿⠢⢄⡀⠀⡇⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⠀⠸⠷⣶⠂⠀⠀⠀⣀⣀⠀⠀⠀
</pre>
⢸⣃⠀⠀⠉⠳⣷⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠉⠉⠉⠉⢉⡭⠋
 
⠀⠘⣆⠀⠀⠀⠁⠀⢀⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀
Example output:
⠀⠀⠘⣦⠆⠀⠀⢀⡎⢹⡀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⡀⣠⠔⠋⠀⠀⠀⠀
 
⠀⠀⠀⡏⠀⠀⣆⠘⣄⠸⢧⠀⠀⠀⠀⢀⣠⠖⢻⠀⠀⠀⣿⢥⣄⣀⣀⣀⠀⠀
<pre>
⠀⠀⢸⠁⠀⠀⡏⢣⣌⠙⠚⠀⠀⠠⣖⡛⠀⣠⠏⠀⠀⠀⠇⠀⠀⠀⠀⢙⣣⠄
Hello, my name is TrashyDaFox and i have $20
⠀⠀⢸⡀⠀⠀⠳⡞⠈⢻⠶⠤⣄⣀⣈⣉⣉⣡⡔⠀⠀⢀⠀⠀⣀⡤⠖⠚⠀⠀
</pre>
⠀⠀⡼⣇⠀⠀⠀⠙⠦⣞⡀⠀⢀⡏⠀⢸⣣⠞⠀⠀⠀⡼⠚⠋⠁⠀⠀⠀⠀⠀
 
⠀⢰⡇⠙⠀⠀⠀⠀⠀⠀⠉⠙⠚⠒⠚⠉⠀⠀⠀⠀⡼⠁⠀⠀⠀⠀⠀⠀⠀⠀
== Rank Joiner ==
⠀⠀⢧⡀⠀⢠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
 
⠀⠀⠀⠙⣶⣶⣿⠢⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
<pre>{{rank_joiner "separator"}}</pre>
⠀⠀⠀⠀⠀⠉⠀⠀⠀⠙⢿⣳⠞⠳⡄⠀⠀⠀⢀⡞⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
 
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠹⣄⣀⡤⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
separator = the text between each rank (if multiple)
 
=== Example ===
 
If the player has 3 ranks: Rank1, Rank2, Rank3 and the separator is "; " the output will be:
 
Rank1; Rank2; Rank3
 
== Clans ==
 
<pre>
{{clan "text if player is in clan" "text if player is not in clan (optional)"}}
</pre>
 
=== Examples ===
 
Show clan name and level:
 
<pre>
{{clan "§a[@CLAN] §7§r| §r§aLvl. [@LVL]" "§7No Clan"}}
</pre>
 
Output:
FoxCult | Lvl. 0
 
== Has Tag ==
 
<pre>
{{has_tag "text if player has tag" "text if player does not have tag"}}
</pre>
</pre>


</div>
OR:
 
<pre>
{{has_tag "text if player has tag" "<bl>"}}
</pre>
 
(No text if player does not have tag)
 
== 2-Player ==
 
Any formatting variable that uses player stats/info can be appended with "2" to use a second player.
 
=== Example ===
 
<code>&lt;name&gt;</code> would be the name of Player 1, while <code>&lt;name2&gt;</code> would be the name of Player 2
 
=== Notes ===
 
2-Player variables only work in specific use cases where 2 players would be used, otherwise they'll just do nothing.

Latest revision as of 04:47, 19 June 2026

Formatting

Basics

The formatting system can be used in anything, from sidebars, to UIs, and even nametags and chat customization

Placeholder Description
<name> / <username> Player name
<name_tag> Player name tag
<rank> Player’s first rank
<bc> Bracket color
<nc> Name color
<mc> Message color
<x> <y> <z> Player coordinates
<dID> Dimension ID
<hp> Current health
<hp_max> Max health
<hp_min> Min health
<hp_default> Default health
<healthbar> Health bar
<xp> XP progress
<level> Player XP level
<kills> Total kills
<deaths> Total deaths
<biome> Current biome
<dimension> Current dimension
<netherX> What the player's X coordinate would be in the nether
<netherZ> What the player's Z coordinate would be in the nether
<overworldX> What the player's X coordinate would be in the overworld
<overworldZ> What the player's Z coordinate would be in the overworld
<kills_streak> Current kill streak
<k/d> Kill / Death ratio
<cps> Clicks per second
<blocks_broken> Blocks broken
<blocks_placed> Blocks placed
<seconds_played> Seconds played
<minutes_played> Minutes played
<hours_played> Hours played
<days_played> Days played
<weeks_played> Days / 7
<years_played> Days / 365
<total_hours_played> Total hours played
<clan> Player clan
<clanID> Clan ID (internal UI use)
<online> Players online
<public_clan_count> Public clans count
<claim> Current land claim
<currencies> All currencies (formatted)
<chunkX> Player's chunk X coordinates
<chunkZ> Player's chunk Z coordinates
<chunkInX> Player's X coordinates relative to the chunk
<chunkInZ> Player's Z coordinates relative to the chunk
<tps> Server TPS
<lv> Leaf version
<servername> Server name
<yr> Current year
<mo> Month number
<mo/n> Month name
<d> Day of month
<h> Hour (24h, UTC)
<h/12> Hour (12h, UTC)
<am/pm> AM / PM
<m> Minute
<s> Second
<ms> Millisecond
<day> In-game day
<moonPhase> Moon phase
<dra> »
<dla> «
<drj> Default rank joiner
<randomShit> Random number
{{L <id>}} Length of internal variable
{{D <id>}} Value of internal variable
{{rank_joiner "<joiner>"}} Joins ranks with separator
{{alternate "<text>" "<codes>"}} Alternating colors
{{score "<objective>"}} Player score
{{score2 "<objective>"}} Fake player score
{{scoreshort "<objective>"}} Shortened player score
{{scoreshort2 "<objective>"}} Shortened fake score
{{is_afk "<t1>" "<t2>"}} AFK check
{{has_tag "<tag>" "<t1>" "<t2>"}} Tag check
{{vars}} All variable names (legacy)
{{clan_owner "<t1>" "<t2>"}} Clan owner check
{{activityscore}} Chunk activity score
{{clan "<t1>" "<t2>"}} Clan check
{{get_tag "<prefix>" "<t1>" "<t2>"}} Prefix tag check
{{gay "<text>"}} Rainbow text
{{trans "<text>"}} Trans pride colors, because why not

Examples

Hello, my name is <name> and i have ${{score money}}

Example output:

Hello, my name is TrashyDaFox and i have $20

Rank Joiner

{{rank_joiner "separator"}}

separator = the text between each rank (if multiple)

Example

If the player has 3 ranks: Rank1, Rank2, Rank3 and the separator is "; " the output will be:

Rank1; Rank2; Rank3

Clans

{{clan "text if player is in clan" "text if player is not in clan (optional)"}}

Examples

Show clan name and level:

{{clan "§a[@CLAN] §7§r| §r§aLvl. [@LVL]" "§7No Clan"}}

Output: FoxCult | Lvl. 0

Has Tag

{{has_tag "text if player has tag" "text if player does not have tag"}}

OR:

{{has_tag "text if player has tag" "<bl>"}}

(No text if player does not have tag)

2-Player

Any formatting variable that uses player stats/info can be appended with "2" to use a second player.

Example

<name> would be the name of Player 1, while <name2> would be the name of Player 2

Notes

2-Player variables only work in specific use cases where 2 players would be used, otherwise they'll just do nothing.