Template:Vendoritem: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
mNo edit summary
mNo edit summary
 
(11 intermediate revisions by 4 users not shown)
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:400px;background:#916699;border-radius:10px 10px 0px 0px;">
            <tr>
            <th style = "width:25%;">Number</th>
            <th style = "width:25%;">Vendor</th>
            <th style = "width:25%;">Buy Price</th>
            <th style = "width:25%;">Stock</th>
            </td></tr>
            </table>
        </tr>
        <tr><td>
            <table style ="width:100%;">
            <tr>
            <td style = "width:25%; text-align:center">{{{number}}}</td>
            <td style = "width:25%; text-align:center">{{{vendor}}}</td>
            <td style = "width:25%; text-align:center">{{Coindisplay|input={{{buyprice}}}}}</td>
            <td style = "width:25%; 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:25%; text-align:center">{{{number}}}</td>
  |Item=Wikitext
            <td style = "width:25%; text-align:center">{{{vendor}}}</td>
  |Vendor=String
            <td style = "width:25%; text-align:center">{{Coindisplay|input={{{buyprice}}}}}</td>
  |Price=String
            <td style = "width:25%; text-align:center">{{{stock}}}</td>
  |Stock=Integer
            </td></tr>
}}</noinclude><!--
            </table>
 
        </tr>
### Cargo Store ###
|end =         <tr><td>
--><includeonly>
            <table style ="width:100%;">
{{#cargo_store:_table=VendorItems
            <tr>
  |OrderNumber={{{number}}}
            <td style = "width:25%; text-align:center">{{{number}}}</td>
  |Item={{{item}}}
            <td style = "width:25%; text-align:center">{{{vendor}}}</td>
  |Vendor={{{vendor}}}
            <td style = "width:25%; text-align:center">{{Coindisplay|input={{{buyprice}}}}}</td>
  |Price={{{buyprice}}}
            <td style = "width:25%; text-align:center">{{{stock}}}</td>
  |Stock={{{stock}}}
            </td></tr>
}}<!--
            </table>
        </tr>
</table>
</div>
|<div style = "width:400px;">
<table style = "background:#e6e6e6; border-radius: 10px;border:1px solid black;">
        <tr><td>
            <table style = "width:400px;background:#916699;border-radius:10px 10px 0px 0px;">
            <tr>
            <th style = "width:25%;">Number</th>
            <th style = "width:25%;">Vendor</th>
            <th style = "width:25%;">Buy Price</th>
            <th style = "width:25%;">Stock</th>
            </td></tr>
            </table>
        </tr>
        <tr><td>
            <table style ="width:100%;">
            <tr>
            <td style = "width:25%; text-align:center">{{{number}}}</td>
            <td style = "width:25%; text-align:center">{{{vendor}}}</td>
            <td style = "width:25%; text-align:center">{{Coindisplay|input={{{buyprice}}}}}</td>
            <td style = "width:25%; text-align:center">{{{stock}}}</td>
            </td></tr>
            </table>
        </tr>
</table>
</div>
}}
</includeonly>


<noinclude>
-->|-
  |{{{number}}}
  |{{CraftReq|{{{item}}}}}
  |{{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>
[[Category:Buyable]]

Latest revision as of 05:24, 2 February 2023

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

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