Template:PurchaseBox: Difference between revisions

From Melvor Idle
(Initial creation)
 
(Use infobox class)
 
Line 12: Line 12:
-->{{#vardefine:purchContentsStyle|{{#ifeq:{{#var:purchContents}}||style="display:none;"|}}}}<!--
-->{{#vardefine:purchContentsStyle|{{#ifeq:{{#var:purchContents}}||style="display:none;"|}}}}<!--
--><!-- Generate the box -->
--><!-- Generate the box -->
{| class="wikitable" style="float:right; clear:right; max-width:250px; margin-left:10px"
{| class="wikitable infobox"
|-  
|-  
! {{#var:purch}}
! {{#var:purch}}
|-
|-
| {{#invoke:Shop|getPurchaseIcon|{{#var:purch}}|size=250|notext=true}}
| style="text-align:center;" | {{#invoke:Shop|getPurchaseIcon|{{#var:purch}}|size=250|notext=true}}
|-
|-
| style="text-align: center;" | {{#invoke:Shop|getPurchaseStat|{{#var:purch}}|description}}
| style="text-align: center;" | {{#invoke:Shop|getPurchaseStat|{{#var:purch}}|description}}

Latest revision as of 14:25, 5 June 2022

Makes use of Module:Shop to automatically generate a purchase box for various shop purchases.

Usage: {{PurchaseBox|<Shop Purchase Name>}}. If the name parameter is omitted, the page name is used instead.

For example, {{PurchaseBox|Generous Resupply}} returns:

Generous Resupply
Generous Resupply
+200 Rune Arrows, +200 Ruby Bolts, +1,000 Light Runes, +200 Sharks, +1,000 Magic Bones
Type: Item Bundle
Cost: 20,000SC
Requirements:
Error creating thumbnail: File missing
Level 75
Contains:
200 Rune Arrows
200 Ruby Bolts
1,000 Light Rune
200 Shark
1,000 Magic Bones