Template:ItemBox: Difference between revisions

From Melvor Idle
(Added getOtherItemBoxText argument)
mNo edit summary
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{ItemBox|Topaz}}
{{ItemBox|Iridium Runestone Necklace}}


Based on [[Template:Item]], but pulling data from [[Module:Items/data]] filtered through [[Module:Items]]
Generates the item sidebar present on all [[:Category:Items|item pages]], pulling data from [[Module:Items]]


<onlyinclude><includeonly>{{#vardefine:item|{{{1|{{PAGENAME}}}}}}}{| class="wikitable" style="float:right; clear:right; margin: 0rem 0rem 1rem 1rem;"
<onlyinclude><includeonly>{| class="wikitable infobox"
|-  
|-  
! {{#var:item}}
! {{#invoke:Items|getExpansionIcon|{{{1|{{PAGENAME}}}}}}}{{{1|{{PAGENAME}}}}}
|-
|-
| {{#invoke:Icons|Icon|{{#var:item}}|type=item|size=250|notext=true}}
|style="text-align:center;"| {{#invoke:Icons|Icon|{{{1|{{PAGENAME}}}}}|type=item|size=250|notext=true}}
|-
|-
| style="text-align: center;" | Item ID: {{#invoke:Items|getItemStat|{{#var:item}}|id}}
| style="text-align: center;" | {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|description}}
|-
|-
| Category: [[{{#invoke:Items|getItemStat|{{#var:item}}|category}}]]
| '''Item ID:''' {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|id}}
|-
|-
| Type: {{#invoke:Items|getItemStat|{{#var:item}}|type}}
| '''Category:''' {{#ifeq:{{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|category}}||None|[[{{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|category}}]]}}
|-
|-
| Sells For: {{Icon|Coins|notext=true}} {{#invoke:Items|getItemStat|{{#var:item}}|sellsFor|formatNum=true}}{{#invoke:Items|getOtherItemBoxText|{{#var:item}}}}
| '''Type:''' {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|type}}
|-
|-
| Item Sources:<br/>{{#invoke:Items|getItemSources|{{#var:item}}|asList=true}}
| {{#invoke:Items|getCurrencyItemBoxText|{{{1|{{PAGENAME}}}}}}}
{{#invoke:Items|getOtherItemBoxText|{{{1|{{PAGENAME}}}}}}}
|-
|-
| Item Uses:<br/>{{#invoke:Items|getItemUses|{{#var:item}}}}
| '''Item Sources:'''<br/>{{#invoke:Items/SourceTables|getItemSources|{{{1|{{PAGENAME}}}}}|asList=true|addCategories=true}}
|}{{#invoke:Items|getItemCategories|{{#var:item}}}}
|-
| '''Item Uses:'''<br/>{{#invoke:Items/UseTables|getItemUses|{{{1|{{PAGENAME}}}}}|addCategories=true}}
|-
| '''Part of 100% Completion''': {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|completionReq}}
|}{{#invoke:Items|getItemCategories|{{{1|{{PAGENAME}}}}}}}{{MainOnly|[[Category:Items]]}}
</includeonly></onlyinclude>
</includeonly></onlyinclude>

Latest revision as of 23:39, 22 July 2024

TotH.svg Iridium Runestone Necklace
Iridium Runestone Necklace
Passive: +5% Magic Maximum Hit. This value is tripled if fighting a Melee Enemy
Item ID: melvorTotH:Iridium_Runestone_Necklace
Category: Combat
Type: Amulet
Sells For: 1,500GP
Equipment Slot: Amulet, Passive
Modifiers:

Passive:
+5% Magic Max Hit. This value is tripled if fighting a Melee Enemy

Item Sources:
  • Error creating thumbnail: File missing
    Level 108
Item Uses:
Part of 100% Completion: Yes


Generates the item sidebar present on all item pages, pulling data from Module:Items