|
|
| 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; |
| | <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
| |
| |-
| |
| | <nowiki>{{vars}}</nowiki> || All variable names (legacy)
| |
| |-
| |
| | {{clan_owner "<t1>" "<t2>"}} || Clan owner check
| |
| |-
| |
| | <nowiki>{{activityscore}}</nowiki> || 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 ==
| | p { |
| | font-size: 1em; |
| | margin: 6px 0; |
| | color: #cccccc; |
| | } |
|
| |
|
| <pre>
| | pre { |
| Hello, my name is <name> 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><name></code> would be the name of Player 1, while <code><name2></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.
| |
<!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>