Template:InfoStamp: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 22: Line 22:
   |Material={{{material|}}}
   |Material={{{material|}}}
   |Source={{#invoke:SourcesQuery|Main|item={{PAGENAME}}}}
   |Source={{#invoke:SourcesQuery|Main|item={{PAGENAME}}}}
}}{| class="Infobox"
}}<infobox>
|-
<title>
! colspan="2" class="Header" |{{#if:{{#var:SlabNum}}|<div class="SlabNum">[[File:The Slab Icon.png|28px|link=The Slab]][[The Slab|<span>{{#var:SlabNum}}</span>]]</div>}} {{PAGENAME}}
<default>{{#if:{{#var:SlabNum}}|<div class="SlabNum">[[File:The Slab Icon.png|28px|link=The Slab]][[The Slab|<span>{{#var:SlabNum}}</span>]]</div>}} {{PAGENAME}}</default>
|-
</title>
| colspan="2" class="HeaderImage" | [[file:{{PAGENAME}}.png]]
<image>
|-
        <default>[[File:{{PAGENAME}}.png]]</default>
! colspan="2" class="SubHeader" | Stamp Specifics
    </image>
|-
    <header>Stamp Info</header>
! Number
<data source="type">
| {{{number | Number missing}}}
<label>Type</label>
|-
</data>
! Type
<data source="number">
| {{{type}}}
<label>Number</label>
|-
</data>
! Bonus
<data source="bonus">
| {{#ifeq:{{PAGENAME}}|Arcane Stamp|Wis|{{{bonus | }}}}}
<label>Bonus</label>
|-
</data>
{{#if: {{{material|}}} |
<data source="material">
! Material
<label>Material</label>
{{!}} {{CraftReq|{{{material}}}}} }}
        <format>{{CraftReq | {{{material}}} }}</format>
|-
</data>
! colspan="2" class="SubHeader" | Other
    <header>Other Info</header>
|-
    <data source="sellprice">
{{#if: {{{sellprice|}}} |
<label>Sell Price</label>
!Sell Price
        <format>{{Coindisplay | {{{sellprice}}} }}</format>
{{!}} {{Coindisplay | {{{sellprice}}} }} }}
</data>
|-
    <data source="source">
! class="LastTable" | Source
<label>Source</label>
| {{#invoke:LuaVar|var|name=Sources}}
        <default>{{#invoke:LuaVar|var|name=Sources}}</default>
|}
</data>
{{#cargo_query:tables=VendorItems
</infobox><!--
-->{{#cargo_query:tables=VendorItems
  |fields=Vendor=vendor,OrderNumber=number,Price=buyprice,Stock=stock
  |fields=Vendor=vendor,OrderNumber=number,Price=buyprice,Stock=stock
  |where=Item LIKE "{{PAGENAME}}"
  |where=Item LIKE "{{PAGENAME}}"
Line 62: Line 63:
  |outro=</table>
  |outro=</table>
  |order by=OrderNumber
  |order by=OrderNumber
}}
}}<!--
{{#seo:
-->{{#seo:
|image={{PAGENAME}}.png
|image={{PAGENAME}}.png
|description=Type: {{{type}}}
|description=Type: {{{type}}}
{{{bonus}}}
{{{bonus}}}
}}
}}<!--
{{#vardefine:used|{{Usedin}}}}{{#if:{{#var:used}}|{{Usedin/head}}
-->{{#vardefine:used|{{Usedin}}}}{{#if:{{#var:used}}|{{Usedin/head}}
{{#var:used}}
{{#var:used}}
{{!}}}
{{!}}}

Revision as of 16:10, 10 February 2023

This template defines the table "Stamps". View table. Usage

{{stamp
|number=example
|type=example (combat/skills/misc)
|bonus=example 
|material=example
|sellprice=example
|source=example
}}