Template:4x4GUI: Difference between revisions
Created page with "<noinclude>Category:Templates</noinclude> <noinclude> Generates a 2x2 crafting GUI display that can be used in tables (centered) or standalone. Parameters: * slot1 – full File: syntax for the top-left item slot (optional) * slot2 – full File: syntax for the top-right item slot (optional) * slot3 – full File: syntax for the bottom-left item slot (optional) * slot4 – full File: syntax for the bottom-right item slot (optional) * result – full File: syntax for..." |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>[[Category:Templates]]</noinclude> | <noinclude>[[Category:Templates]]</noinclude> | ||
<noinclude> | <noinclude> | ||
Generates a 2x2 | Generates a 2x2 GUI display with 4 item slots and hover tooltips. | ||
Parameters: | Parameters: | ||
Line 8: | Line 8: | ||
* slot3 – full File: syntax for the bottom-left item slot (optional) | * slot3 – full File: syntax for the bottom-left item slot (optional) | ||
* slot4 – full File: syntax for the bottom-right item slot (optional) | * slot4 – full File: syntax for the bottom-right item slot (optional) | ||
* | * lore1 – full File: syntax for slot1 hover tooltip (optional) | ||
* tooltip – full File: syntax for | * lore2 – full File: syntax for slot2 hover tooltip (optional) | ||
* | * lore3 – full File: syntax for slot3 hover tooltip (optional) | ||
* lore4 – full File: syntax for slot4 hover tooltip (optional) | |||
Usage | Usage Example: | ||
{{4x4GUI|slot1=[[File:Item1.png|32px|link=]]|slot2=[[File:Item2.png|32px|link=]]|lore1=[[File:Item1Lore.png|300px|link=]]|lore2=[[File:Item2Lore.png|300px|link=]]}} | |||
</noinclude> | </noinclude> | ||
<includeonly><span style="display:inline-block;padding:2px;white-space:nowrap;text-align:center;width:100%;"><span style="display:inline-block;vertical-align:middle;position:relative;width: | <includeonly><span style="display:inline-block;padding:2px;white-space:nowrap;text-align:center;width:100%;"><span style="display:inline-block;vertical-align:middle;position:relative;width:128px;height:64px;margin:0 auto;"><!-- background GUI --> | ||
[[File:4x4GUI.png|128px|64px|link=]]<!-- slot positions --> | [[File:4x4GUI.png|128px|64px|link=]]<!-- slot positions --> | ||
<span class=" | <span class="slot1" style="position:absolute;top:8px;left:16px;width:32px;height:32px;">{{{slot1}}}<span class="tooltip-text">{{{lore1}}}</span></span> | ||
<span class=" | <span class="slot2" style="position:absolute;top:8px;left:48px;width:32px;height:32px;">{{{slot2}}}<span class="tooltip-text">{{{lore2}}}</span></span> | ||
<span class=" | <span class="slot3" style="position:absolute;top:24px;left:16px;width:32px;height:32px;">{{{slot3}}}<span class="tooltip-text">{{{lore3}}}</span></span> | ||
<span class=" | <span class="slot4" style="position:absolute;top:24px;left:48px;width:32px;height:32px;">{{{slot4}}}<span class="tooltip-text">{{{lore4}}}</span></span></span></span></includeonly> | ||
<span class=" | |||
<span class="tooltip-text">{{{ |
Latest revision as of 02:05, 26 August 2025
Generates a 2x2 GUI display with 4 item slots and hover tooltips.
Parameters:
- slot1 – full File: syntax for the top-left item slot (optional)
- slot2 – full File: syntax for the top-right item slot (optional)
- slot3 – full File: syntax for the bottom-left item slot (optional)
- slot4 – full File: syntax for the bottom-right item slot (optional)
- lore1 – full File: syntax for slot1 hover tooltip (optional)
- lore2 – full File: syntax for slot2 hover tooltip (optional)
- lore3 – full File: syntax for slot3 hover tooltip (optional)
- lore4 – full File: syntax for slot4 hover tooltip (optional)
Usage Example:
File:Item1.pngFile:Item1Lore.png
File:Item2.pngFile:Item2Lore.png
{{{slot3}}}{{{lore3}}}
{{{slot4}}}{{{lore4}}}