Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Shop Item: Difference between revisions

Template page
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Shop_Items|shop=Page|world_x=Integer|world_y=Integer|world_z=Integer|status=Boolean|notes=Wikitext string|item=String}}
{{#cargo_declare:_table=Shop_Item|shop=Page|world_x=Integer|world_y=Integer|world_z=Integer|status=Boolean|notes=Wikitext string|item=String}}
</noinclude><includeonly>
</noinclude><includeonly>{{#cargo_store:_table=Shop_Item|shop={{{shop|}}}}}
<div class="container">
|-
  <div class="view-stock">
| {{{item|}}} || {{{world_x|}}},{{{world_y|}}},{{{world_z|}}} || {{{status|}}} || {{{notes|}}}  
    <h3>View Stock</h3>
    <table class="wikitable mw-collapsible">
      <thead>
        <tr>
          <th>Item</th>
          <th>X Y Z</th>
          <th>Status</th>
          <th>Notes</th>
        </tr>
      </thead>
      <tbody>
        {{#cargo_store:_table=Shop_Items|shop={{{shop|}}}}}
        <tr>
          <td>{{{item|}}}</td>
          <td>{{{world_x|}}},{{{world_y|}}},{{{world_z|}}}</td>
          <td>{{{status|}}}</td>
          <td>{{{notes|}}}</td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
</includeonly>
</includeonly>

Latest revision as of 17:36, 16 December 2024

This is the "Shop Item" template. It should be called in the following format:

{{Shop Item
|shop=
|world_x=
|world_y=
|world_z=
|status=
|notes=
|item=
}}

Edit the page to see the template text. This template defines the table "Shop_Item". View table.