Template:ItemBox: Difference between revisions
From Melvor Idle
(Use infobox class) |
(Remove dependency on Variables extension) |
||
Line 3: | Line 3: | ||
Based on [[Template:Item]], but pulling data from [[Module:Items/data]] filtered through [[Module:Items]] | Based on [[Template:Item]], but pulling data from [[Module:Items/data]] filtered through [[Module:Items]] | ||
<onlyinclude><includeonly> | <onlyinclude><includeonly>{| class="wikitable infobox" | ||
|- | |- | ||
! {{ | ! {{{1|{{PAGENAME}}}}} | ||
|- | |- | ||
|style="text-align:center;"| {{#invoke:Icons|Icon|{{ | |style="text-align:center;"| {{#invoke:Icons|Icon|{{{1|{{PAGENAME}}}}}|type=item|size=250|notext=true}} | ||
|- | |- | ||
| style="text-align: center;" | {{#invoke:Items|getItemStat|{{ | | style="text-align: center;" | {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|description}} | ||
|- | |- | ||
| '''Item ID:''' {{#invoke:Items|getItemStat|{{ | | '''Item ID:''' {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|id}} | ||
|- | |- | ||
| '''Category:''' {{#ifeq:{{#invoke:Items|getItemStat|{{ | | '''Category:''' {{#ifeq:{{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|category}}||None|[[{{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|category}}]]}} | ||
|- | |- | ||
| '''Type:''' {{#invoke:Items|getItemStat|{{ | | '''Type:''' {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|type}} | ||
|- | |- | ||
| '''Sells For:''' {{Icon|Coins|notext=true}} {{#invoke:Items|getItemStat|{{ | | '''Sells For:''' {{Icon|Coins|notext=true}} {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|sellsFor|formatNum=true}}{{#invoke:Items|getOtherItemBoxText|{{{1|{{PAGENAME}}}}}}} | ||
|- | |- | ||
| '''Item Sources:'''<br/>{{#invoke:Items/SourceTables|getItemSources|{{ | | '''Item Sources:'''<br/>{{#invoke:Items/SourceTables|getItemSources|{{{1|{{PAGENAME}}}}}|asList=true|addCategories=true}} | ||
|- | |- | ||
| '''Item Uses:'''<br/>{{#invoke:Items/UseTables|getItemUses|{{ | | '''Item Uses:'''<br/>{{#invoke:Items/UseTables|getItemUses|{{{1|{{PAGENAME}}}}}|addCategories=true}} | ||
|- | |- | ||
| '''Part of 100% Completion''': {{#invoke:Items|getItemStat|{{ | | '''Part of 100% Completion''': {{#invoke:Items|getItemStat|{{{1|{{PAGENAME}}}}}|completionReq}} | ||
|}{{#invoke:Items|getItemCategories|{{ | |}{{#invoke:Items|getItemCategories|{{{1|{{PAGENAME}}}}}}} | ||
</includeonly></onlyinclude> | </includeonly></onlyinclude> |
Revision as of 09:50, 7 October 2022
Topaz |
---|
Standard Gem |
Item ID: melvorD:Topaz |
Category: Gemstone |
Type: Gem |
Sells For: Error creating thumbnail: File missing 225
|
Item Sources:
|
Item Uses: |
Part of 100% Completion: Yes |
Based on Template:Item, but pulling data from Module:Items/data filtered through Module:Items