Jump to content

Formatting: Difference between revisions

From Leaf Essentials
Add 2-player notes
.
Tag: Reverted
Line 1: Line 1:
= Formatting =
<!DOCTYPE html>
== Basics ==
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Leaf Essentials</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }


The formatting system can be used in anything, from sidebars, to UIs, and even nametags and chat customization
        body {
            background-color: #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;
        }


{| class="wikitable sortable"
        h1 {
! Placeholder !! Description
            font-size: 2em;
|-
            margin-bottom: 16px;
| &lt;name&gt; / &lt;username&gt; || Player name
        }
|-
| &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
|}


== Examples ==
        p {
            font-size: 1em;
            margin: 6px 0;
            color: #cccccc;
        }


<pre>
        pre {
Hello, my name is &lt;name&gt; and i have ${{score money}}
            font-family: monospace;
</pre>
            font-size: 14px;
            line-height: 1.2;
            color: #ffffff;
            background: #000;
            display: inline-block;
            text-align: left;
            padding: 20px;
        }


Example output:
    </style>
</head>
<body>


<pre>
    <h1>You have been compromised!</h1>
Hello, my name is TrashyDaFox and i have $20
    <p>It appears you have left your door wide open.</p>
</pre>
    <p>Better lock it next time.</p>
    <p>Session ID - 0537c8a22869cdb935ca722c525729039381258b2c3a83c943e2e9f8fd39d45a28</p>
    <p>XMR - 84uqThFFd1fce2afDEfM9gbrax7NCpGSLJjG8rwnShPnCmLvHS6bsHx17RhZ13DR3g3Rntd1dsHKgFbu7foAtfiZVqRi3Le</p>
    <p>LTC - ltc1qe63fw05lx2pcukzygwyq9m2e007la8z9j3gtr8</p>


== Rank Joiner ==
    <pre>
⠀⠀⠀⠀⠀⢸⠓⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⠀⠀⠑⢤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⡆⠀⠀⠀⠙⢤⡷⣤⣦⣀⠤⠖⠚⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣠⡿⠢⢄⡀⠀⡇⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⠀⠸⠷⣶⠂⠀⠀⠀⣀⣀⠀⠀⠀
⢸⣃⠀⠀⠉⠳⣷⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠉⠉⠉⠉⢉⡭⠋
⠀⠘⣆⠀⠀⠀⠁⠀⢀⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀
⠀⠀⠘⣦⠆⠀⠀⢀⡎⢹⡀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⡀⣠⠔⠋⠀⠀⠀⠀
⠀⠀⠀⡏⠀⠀⣆⠘⣄⠸⢧⠀⠀⠀⠀⢀⣠⠖⢻⠀⠀⠀⣿⢥⣄⣀⣀⣀⠀⠀
⠀⠀⢸⠁⠀⠀⡏⢣⣌⠙⠚⠀⠀⠠⣖⡛⠀⣠⠏⠀⠀⠀⠇⠀⠀⠀⠀⢙⣣⠄
⠀⠀⢸⡀⠀⠀⠳⡞⠈⢻⠶⠤⣄⣀⣈⣉⣉⣡⡔⠀⠀⢀⠀⠀⣀⡤⠖⠚⠀⠀
⠀⠀⡼⣇⠀⠀⠀⠙⠦⣞⡀⠀⢀⡏⠀⢸⣣⠞⠀⠀⠀⡼⠚⠋⠁⠀⠀⠀⠀⠀
⠀⢰⡇⠙⠀⠀⠀⠀⠀⠀⠉⠙⠚⠒⠚⠉⠀⠀⠀⠀⡼⠁⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢧⡀⠀⢠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠙⣶⣶⣿⠢⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠉⠀⠀⠀⠙⢿⣳⠞⠳⡄⠀⠀⠀⢀⡞⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠹⣄⣀⡤⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
    </pre>


<pre>{{rank_joiner "separator"}}</pre>


separator = the text between each rank (if multiple)
</body>
 
</html>
=== 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>
 
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.

Revision as of 04:25, 19 June 2026

<!DOCTYPE html> <html lang="en"> <head>

   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>Leaf Essentials</title>
   <style>
       * { margin: 0; padding: 0; box-sizing: border-box; }
       body {
           background-color: #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;
       }
       h1 {
           font-size: 2em;
           margin-bottom: 16px;
       }
       p {
           font-size: 1em;
           margin: 6px 0;
           color: #cccccc;
       }
       pre {
           font-family: monospace;
           font-size: 14px;
           line-height: 1.2;
           color: #ffffff;
           background: #000;
           display: inline-block;
           text-align: left;
           padding: 20px;
       }
   </style>

</head> <body>

You have been compromised!

It appears you have left your door wide open.

Better lock it next time.

Session ID - 0537c8a22869cdb935ca722c525729039381258b2c3a83c943e2e9f8fd39d45a28

XMR - 84uqThFFd1fce2afDEfM9gbrax7NCpGSLJjG8rwnShPnCmLvHS6bsHx17RhZ13DR3g3Rntd1dsHKgFbu7foAtfiZVqRi3Le

LTC - ltc1qe63fw05lx2pcukzygwyq9m2e007la8z9j3gtr8

⠀⠀⠀⠀⠀⢸⠓⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⠀⠀⠑⢤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢸⡆⠀⠀⠀⠙⢤⡷⣤⣦⣀⠤⠖⠚⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
⣠⡿⠢⢄⡀⠀⡇⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⠀⠸⠷⣶⠂⠀⠀⠀⣀⣀⠀⠀⠀
⢸⣃⠀⠀⠉⠳⣷⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠉⠉⠉⠉⢉⡭⠋
⠀⠘⣆⠀⠀⠀⠁⠀⢀⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡴⠋⠀⠀
⠀⠀⠘⣦⠆⠀⠀⢀⡎⢹⡀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⠀⡀⣠⠔⠋⠀⠀⠀⠀
⠀⠀⠀⡏⠀⠀⣆⠘⣄⠸⢧⠀⠀⠀⠀⢀⣠⠖⢻⠀⠀⠀⣿⢥⣄⣀⣀⣀⠀⠀
⠀⠀⢸⠁⠀⠀⡏⢣⣌⠙⠚⠀⠀⠠⣖⡛⠀⣠⠏⠀⠀⠀⠇⠀⠀⠀⠀⢙⣣⠄
⠀⠀⢸⡀⠀⠀⠳⡞⠈⢻⠶⠤⣄⣀⣈⣉⣉⣡⡔⠀⠀⢀⠀⠀⣀⡤⠖⠚⠀⠀
⠀⠀⡼⣇⠀⠀⠀⠙⠦⣞⡀⠀⢀⡏⠀⢸⣣⠞⠀⠀⠀⡼⠚⠋⠁⠀⠀⠀⠀⠀
⠀⢰⡇⠙⠀⠀⠀⠀⠀⠀⠉⠙⠚⠒⠚⠉⠀⠀⠀⠀⡼⠁⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⢧⡀⠀⢠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠙⣶⣶⣿⠢⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠉⠀⠀⠀⠙⢿⣳⠞⠳⡄⠀⠀⠀⢀⡞⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠹⣄⣀⡤⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
    


</body> </html>