Template:MC Tooltip
Jump to navigation
Jump to search
Usage
Each tooltip line is a <div> containing one or more <span> tags with a color style. To add a blank line between sections, use <div> </div> — the is a non-breaking space which forces the line to have height.
{{MC_Tooltip
| content =
<div><span style="color:#FFFFFF;">Item Name</span></div>
<div><span style="color:#AAAAAA;">Enchantment I</span></div>
<div> </div>
<div><span style="color:#AAAAAA;">Lore text here</span></div>
<div> </div>
<div><span style="color:#AAAAAA;">When in Main Hand:</span></div>
<div><span style="color:#00AA00;"> 10 Attack Damage</span></div>
<div><span style="color:#00AA00;"> 1.6 Attack Speed</span></div>
| scale = 16
}}
Parameters
content- The tooltip lines as HTML divs and spans.
scale- Font size in px. Controls the size of everything. Default is
16.
Roman Numerals
Java Edition displays enchantment levels as Roman numerals up to X, then plain numbers above that.
| Level | Numeral | Level | Numeral |
|---|---|---|---|
| 1 | I | 6 | VI |
| 2 | II | 7 | VII |
| 3 | III | 8 | VIII |
| 4 | IV | 9 | IX |
| 5 | V | 10 | X |
Color Reference
| Name | Hex | Preview |
|---|---|---|
black |
#000000 |
Text |
dark_blue |
#0000AA |
Text |
dark_green |
#00AA00 |
Text |
dark_aqua |
#00AAAA |
Text |
dark_red |
#AA0000 |
Text |
dark_purple |
#AA00AA |
Text |
gold |
#FFAA00 |
Text |
gray |
#AAAAAA |
Text |
dark_gray |
#555555 |
Text |
blue |
#5555FF |
Text |
green |
#55FF55 |
Text |
aqua |
#55FFFF |
Text |
red |
#FF5555 |
Text |
light_purple |
#FF55FF |
Text |
yellow |
#FFFF55 |
Text |
white |
#FFFFFF |
Text |
Common Uses
| Used for | Color | Notes |
|---|---|---|
| Default item name | #FFFFFF white |
|
| Custom name filler text | #555555 dark_gray |
|
| Curses | #FF5555 red |
|
| Rare names | #FFAA00 gold |
|
| Enchantment lines | #AAAAAA gray |
|
| Lore lines | #AAAAAA gray |
|
| When in Main Hand label | #AAAAAA gray |
|
| Attack damage, attack speed | #00AA00 dark_green |
No plus sign, one leading space |
| Armor, toughness, efficiency | #5555FF blue |
Plus sign, one leading space |
Example
{{MC_Tooltip
| content =
<div><span style="color:#FFAA00;">Royal </span><span style="color:#FFFFFF;">Sceptre of </span><span style="color:#FFAA00;">Plexiate</span></div>
<div><span style="color:#AAAAAA;">Sharpness V</span></div>
<div><span style="color:#AAAAAA;">Knockback II</span></div>
<div><span style="color:#AAAAAA;">Fire Aspect II</span></div>
<div><span style="color:#AAAAAA;">Looting III</span></div>
<div><span style="color:#AAAAAA;">Unbreaking III</span></div>
<div><span style="color:#AAAAAA;">Mending</span></div>
<div><span style="color:#FF5555;">Curse of Vanishing</span></div>
<div> </div>
<div><span style="color:#FF55FF; font-style:italic;">Forged for the king themself.</span></div>
<div><span style="color:#AAAAAA; font-style:italic;">None may wield it but them.</span></div>
<div> </div>
<div><span style="color:#AAAAAA;">Given: </span><span style="color:#FFFFFF;">Juneary 69rd, 1987</span></div>
<div><span style="color:#AAAAAA;">Owner: </span><span style="color:#FFAA00;">King Plexiate</span></div>
<div> </div>
<div><span style="color:#AAAAAA;">When in Main Hand:</span></div>
<div><span style="color:#00AA00;"> 10 Attack Damage</span></div>
<div><span style="color:#00AA00;"> 1.6 Attack Speed</span></div>
| scale = 16
}}
Result
Royal Sceptre of Plexiate
Sharpness V
Knockback II
Fire Aspect II
Looting III
Unbreaking III
Mending
Curse of Vanishing
Forged for the king themself.
None may wield it but them.
Given: Juneary 69rd, 1987
Owner: King Plexiate
When in Main Hand:
10 Attack Damage
1.6 Attack Speed