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
Line 16: Line 16:
{{#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_Items|shop=Page|world_x=Integer|world_y=Integer|world_z=Integer|status=Boolean|notes=Wikitext string|item=String}}
</noinclude><includeonly>
</noinclude><includeonly>
<div class="container">
{{#cargo_store:_table=Shop_Items|shop={{{shop|}}}}}
  <div class="view-stock">
<tr>
    <h3>View Stock</h3>
  <td>{{{item|}}}</td>
    <table class="wikitable mw-collapsible">
  <td>{{{world_x|}}},{{{world_y|}}},{{{world_z|}}}</td>
      <thead>
  <td>{{{status|}}}</td>
        <tr>
  <td>{{{notes|}}}</td>
          <th>Item</th>
</tr>
          <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>

Revision as of 16:56, 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_Items". This table has not been created yet.