Template:Vendoritem: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
m (Text replacement - ";background:#916699;" to "")
imported>Kiokurashi
No edit summary
Line 1: Line 1:
<includeonly>
<noinclude><!--
{{#switch: {{{state}}}
|start =<div style = "width:400px;">
        <table style = "background:#e6e6e6; border-radius: 10px;border:1px solid black;">
        <tr><td>
            <table style = "width:400pxborder-radius:10px 10px 0px 0px;">
            <tr>
            <th style = "width:10%;">No.</th>
            <th style = "width:40%;">Vendor</th>
            <th style = "width:40%;">Buy Price</th>
            <th style = "width:10%;">Stock</th>
            </td></tr>
            </table>
        </tr>
        <tr><td>
            <table style ="width:100%;">
            <tr>
            <td style = "width:10%; text-align:center">{{{number}}}</td>
            <td style = "width:40%; text-align:center">{{{vendor}}}</td>
            <td style = "width:40%; text-align:center">{{Coindisplay|{{{buyprice}}}}}</td>
            <td style = "width:10%; text-align:center">{{{stock}}}</td>
            </td></tr>
            </table>
        </tr>


|middle = <tr><td>
### Cargo Declare ###
            <table style ="width:100%;">
-->{{#cargo_declare:_table=VendorItems
            <tr>
  |OrderNumber=Integer
            <td style = "width:10%; text-align:center">{{{number}}}</td>
  |Vendor=String
            <td style = "width:40%; text-align:center">{{{vendor}}}</td>
  |Price=Integer
            <td style = "width:40%; text-align:center">{{Coindisplay|{{{buyprice}}}}}</td>
  |Stock=Integer
            <td style = "width:10%; text-align:center">{{{stock}}}</td>
}}</noinclude><!--
            </td></tr>
 
            </table>
### Cargo Store ###
        </tr>
--><includeonly>{{#ifeq:{{PAGENAME}}|Secrets||
|end =         <tr><td>
{{#cargo_store:_table=VendorItems
            <table style ="width:100%;">
  |OrderNumber=
            <tr>
}}}}<!--
            <td style = "width:10%; text-align:center">{{{number}}}</td>
            <td style = "width:40%; text-align:center">{{{vendor}}}</td>
            <td style = "width:40%; text-align:center">{{Coindisplay|{{{buyprice}}}}}</td>
            <td style = "width:10%; text-align:center">{{{stock}}}</td>
            </td></tr>
            </table>
        </tr>
</table>
</div>
| #default = <div style = "width:400px;">
<table style = "background:#e6e6e6; border-radius: 10px;border:1px solid black;">
        <tr><td>
            <table style = "width:400pxborder-radius:10px 10px 0px 0px;">
            <tr>
            <th style = "width:10%;">No.</th>
            <th style = "width:40%;">Vendor</th>
            <th style = "width:40%;">Buy Price</th>
            <th style = "width:10%;">Stock</th>
            </td></tr>
            </table>
        </tr>
        <tr><td>
            <table style ="width:100%;">
            <tr>
            <td style = "width:10%; text-align:center">{{{number}}}</td>
            <td style = "width:40%; text-align:center">{{{vendor}}}</td>
            <td style = "width:40%; text-align:center">{{Coindisplay|{{{buyprice}}}}}</td>
            <td style = "width:10%; text-align:center">{{{stock}}}</td>
            </td></tr>
            </table>
        </tr>
</table>
</div>
}}
[[Category:Buyable]]
</includeonly>


<noinclude>
-->|-
  |{{{number}}}
  |{{{vendor}}}
  |{{Coindisplay|{{{buyprice}}}}}
  |{{{stock}}}
[[category:Buyable]]</includeonly><noinclude>
<pre>
<pre>
{{Vendoritem
{{vendoritem/tablerow
|number=example - The number in the store
|number=
|vendor=example - Which vendor, must be a link
|vendor=
|buyprice=example - How much we buy it for, before bribe
|buyprice=
|stock=example - How much is in stock at the vendor
|stock=
}}
}}
</pre>
</pre>
[[category:Table templates]]
</noinclude>
</noinclude>

Revision as of 02:46, 20 July 2021

This template defines the table "VendorItems". View table.

{{vendoritem/tablerow
|number=
|vendor=
|buyprice=
|stock=
}}