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 crafting GUI display that can be used in tables (centered) or standalone.
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)
* result – full File: syntax for the result item slot (optional)
* lore1 – full File: syntax for slot1 hover tooltip (optional)
* tooltip – full File: syntax for the large tooltip preview (optional)
* lore2 – full File: syntax for slot2 hover tooltip (optional)
* name the display name (optional, displayed below GUI)
* lore3 – full File: syntax for slot3 hover tooltip (optional)
* lore4 full File: syntax for slot4 hover tooltip (optional)


Usage Examples:
Usage Example:
* In table: {{4x4GUI|slot1=[[File:Item1.png|32px|link=]]|slot2=[[File:Item2.png|32px|link=]]|result=[[File:Result.png|32px|link=]]}}
{{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=]]}}
* Standalone: {{4x4GUI|slot1=[[File:Item1.png|32px|link=]]|name=Recipe Name}}
</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:168px;height:84px;margin:0 auto;"><!-- background GUI -->
<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="crafting-slot1" style="position:absolute;top:8px;left:8px;width:32px;height:32px;">{{{slot1}}}</span>
<span class="slot1" style="position:absolute;top:8px;left:16px;width:32px;height:32px;">{{{slot1}}}<span class="tooltip-text">{{{lore1}}}</span></span>
<span class="crafting-slot2" style="position:absolute;top:8px;left:40px;width:32px;height:32px;">{{{slot2}}}</span>
<span class="slot2" style="position:absolute;top:8px;left:48px;width:32px;height:32px;">{{{slot2}}}<span class="tooltip-text">{{{lore2}}}</span></span>
<span class="crafting-slot3" style="position:absolute;top:40px;left:8px;width:32px;height:32px;">{{{slot3}}}</span>
<span class="slot3" style="position:absolute;top:24px;left:16px;width:32px;height:32px;">{{{slot3}}}<span class="tooltip-text">{{{lore3}}}</span></span>
<span class="crafting-slot4" style="position:absolute;top:40px;left:40px;width:32px;height:32px;">{{{slot4}}}</span>
<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="result-slot" style="position:absolute;top:24px;left:96px;width:32px;height:32px;">{{{result}}}</span>
<span class="tooltip-text">{{{tooltip}}}</span></span>{{#if:{{{name|}}}|<br><span style="display:inline-block;text-align:center;margin-top:2px;"><b>{{{name}}}</b></span>|}}</span></includeonly>

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}}}