Template:Fishingaccessory: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 32: Line 32:
   |Type={{{type|Null}}}
   |Type={{{type|Null}}}
   |Source={{#invoke:SourcesQuery|Main|item={{{title|{{PAGENAME}}}}}}}
   |Source={{#invoke:SourcesQuery|Main|item={{{title|{{PAGENAME}}}}}}}
}}}}
}}}}<infobox>
{| class="Infobox"
<title source="title">
|-
<default>{{#if:{{#var:SlabNum}}|<div class="SlabNum" style="float:left;">[[File:The Slab Icon.png|28px|link=The Slab]]<span>{{#var:SlabNum}}</span></div>}} {{PAGENAME}}</default>
! colspan="2" class="Header" |{{#if:{{#var:SlabNum}}|<div style="float:left;">[[File:The Slab Icon.png|28px|link=The Slab]]:{{#var:SlabNum}}</div>}} {{{title | {{PAGENAME}}}}}
</title>
|-
<image source="image">
| colspan="2" class="HeaderImage" | [[file:{{{title | {{PAGENAME}}}}}.png]]
        <default>[[File:{{PAGENAME}}.png]]</default>
|-
    </image>
! colspan="2" class="SubHeader" | Bonuses
    <header>Fishing Stats</header>
|-
    <group name="FishDepth" layout="horizontal">
{{#if: {{{depth1|}}} |
<data source="depth1">
! style="color:green;" {{!}} X
<label>[[File:Fishing Depth G.png|class=FishDepth|link=]]</label>
{{!}} {{{depth1}}} }}
<default>-</default>
|-
</data>
{{#if: {{{depth2|}}} |
<data source="depth2">
! style="color:yellow;" {{!}} X
<label>[[File:Fishing Depth Y.png|class=FishDepth|link=]]</label>
{{!}} {{{depth2}}} }}
<default>-</default>
|-
</data>
{{#if: {{{depth3|}}} |
<data source="depth3">
! style="color:red;" {{!}} X
<label>[[File:Fishing Depth R.png|class=FishDepth|link=]]</label>
{{!}} {{{depth3}}} }}
<default>-</default>
|-
</data>
{{#if: {{{depth4|}}} |
<data source="depth4">
! style="color:purple;" {{!}} X
<label>[[File:Fishing Depth P.png|class=FishDepth|link=]]</label>
{{!}} {{{depth4}}} }}
<default>-</default>
|-
</data>
{{#if: {{{fishingexp|}}} |
</group>
! Fishing Exp
    <group name="FishBonus" layout="horizontal">
{{!}} {{{fishingexp}}} }}
<data source="fishingexp">
|-
<label>Fish Exp</label>
{{#if: {{{fishingspeed|}}} |
<default>-</default>
! Fishing Speed
</data>
{{!}} {{{fishingspeed}}} }}
<data source="fishingspeed">
|-
<label>Fish Speed</label>
{{#if: {{{fishingpower|}}} |
<default>-</default>
! Fishing Power
</data>
{{!}} {{{fishingpower}}} }}
<data source="fishingpower">
|-
<label>Fish POW</label>
! colspan="2" class="SubHeader" | Other
<default>-</default>
|-
</data>
! Type
</group>
| {{{type}}}
    <header>Other Details</header>
|-
<data source="type">
{{#if: {{{sellprice|}}} |
<label>Type</label>
! Sell Price
</data>
{{!}} {{Coindisplay | {{{sellprice}}}}} }}
    <data source="sellprice">
|-
<label>Sell Price</label>
! Source
        <format>{{Coindisplay | {{{sellprice}}}}}</format>
| {{#invoke:LuaVar|var|name=Sources}}
</data>
|-
    <data source="order">
|}
<label>Order</label>
{{#cargo_query:tables=VendorItems
</data>
    <data source="source">
<label>Source</label>
        <default>{{#invoke:LuaVar|var|name=Sources}}</default>
</data>
</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}}"

Revision as of 05:21, 7 February 2023

This template defines the table "Fishing_Accessories". View table. How to copy the template into the editor

{{class
|depth1=
|depth2=
|depth3=
|depth4=
|fishingexp=
|fishingspeed=
|fishingpower=
|type=
|source=
}}