Template:InfoStamp: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 9: Line 9:
   |SellPrice=Integer
   |SellPrice=Integer
   |Material=String
   |Material=String
  |Source=Wikitext
}}</noinclude><!--
}}</noinclude><!--


Line 21: Line 20:
   |SellPrice={{{sellprice|}}}
   |SellPrice={{{sellprice|}}}
   |Material={{{material|}}}
   |Material={{{material|}}}
  |Source={{#invoke:SourcesQuery|Main|item={{PAGENAME}}}}
}}<infobox>
}}{| class="Infobox"
<title>
|-
<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>
! colspan="2" class="Header" |{{#if:{{#var:SlabNum}}|<div class="SlabNum" style="float:left;">[[File:The Slab Icon.png|28px|link=The Slab]]<span>:{{#var:SlabNum}}</span></div>}} {{PAGENAME}}
</title>
|-
<image>
| colspan="2" class="HeaderImage" | [[file:{{PAGENAME}}.png]]
        <default>[[File:{{PAGENAME}}.png]]</default>
|-
    </image>
! colspan="2" class="SubHeader" | Stamp Specifics
    <header>Stamp Info</header>
|-
<data source="type">
! Number
<label>Type</label>
| {{{number | Number missing}}}
</data>
|-
<data source="number">
! Type
<label>Number</label>
| {{{type}}}
</data>
|-
<data source="bonus">
! Bonus
<label>Bonus</label>
| {{#ifeq:{{PAGENAME}}|Arcane Stamp|Wis|{{{bonus | }}}}}
</data>
|-
<data source="material">
{{#if: {{{material|}}} |
<label>Material</label>
! Material
        <format>{{CraftReq|{{{material}}}|24px}}</format>
{{!}} {{CraftReq|{{{material}}}}} }}
</data>
|-
    <header>Other Info</header>
! colspan="2" class="SubHeader" | Other
    <data source="sellprice">
|-
<label>Sell Price</label>
{{#if: {{{sellprice|}}} |
        <format>{{Coindisplay | {{{sellprice}}} }}</format>
!Sell Price
</data>
{{!}} {{Coindisplay | {{{sellprice}}} }} }}
    <data source="source">
|-
<label>Source</label>
! class="LastTable" | Source
        <default>{{#invoke:SourcesQuery|PullSourcesFromList|item={{PAGENAME}}}}</default>
| {{#invoke:LuaVar|var|name=Sources}}
</data>
|}
</infobox><!--
{{#cargo_query:tables=VendorItems
-->{{#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 60: Line 59:
  |default=
  |default=
  |intro={{Vendoritem/head}}
  |intro={{Vendoritem/head}}
  |outro=</table>
  |outro={{!}}}
  |order by=OrderNumber
  |order by=OrderNumber
}}
}}
{{#seo:
{{Usedin}}<!--
-->{{#seo:
|image={{PAGENAME}}.png
|image={{PAGENAME}}.png
|description=Type: {{{type}}}
|description=Type: {{{type}}}
{{{bonus}}}
{{{bonus}}}
}}
{{#vardefine:used|{{Usedin}}}}{{#if:{{#var:used}}|{{Usedin/head}}
{{#var:used}}
{{!}}}
}}
}}
[[Category:Stamps]]</includeonly><noinclude>
[[Category:Stamps]]</includeonly><noinclude>
Line 80: Line 76:
|material=example
|material=example
|sellprice=example
|sellprice=example
|source=example
}}</pre>
}}</pre>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 02:50, 22 March 2024

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

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