Template:Inventory/doc: Difference between revisions
From Archaelund Wiki
(Created page with "== Description == This template generates the content of an inventory table and is intended to be used for displaying shop items on merchant pages. It requires the Lua module Module:Inventory. == Usage == <pre> {{Inventory |Stock = |Markup = }} </pre> == Parameters == <table class="wikitable"> <tr><th>Name</th><th>Required</th><th>Description</th><th>Values</th></tr> <tr><td>Stock</td><td>Yes</td><td>A list of all items in the merchant's shop.</td><td>a semicolon...") |
No edit summary |
||
| Line 13: | Line 13: | ||
<table class="wikitable"> | <table class="wikitable"> | ||
<tr><th>Name</th><th>Required</th><th>Description</th><th>Values</th></tr> | <tr><th>Name</th><th>Required</th><th>Description</th><th>Values</th></tr> | ||
<tr><td>Stock</td><td>Yes</td><td>A list of all items in the merchant's shop.</td><td>a semicolon-separated list of | <tr><td>Stock</td><td>Yes</td><td>A list of all items in the merchant's shop.</td><td>a semicolon-separated list of armor/item/weapon pagenames</td></tr> | ||
<tr><td>Markup</td><td>No</td><td>A factor that is applied to the regular prices by this merchant. Defaults to 1.</td><td>non-negative number</td></tr> | <tr><td>Markup</td><td>No</td><td>A factor that is applied to the regular prices by this merchant. Defaults to 1.</td><td>non-negative number</td></tr> | ||
</table> | </table> | ||
Revision as of 18:35, 30 August 2023
Description
This template generates the content of an inventory table and is intended to be used for displaying shop items on merchant pages. It requires the Lua module Module:Inventory.
Usage
{{Inventory
|Stock =
|Markup =
}}
Parameters
| Name | Required | Description | Values |
|---|---|---|---|
| Stock | Yes | A list of all items in the merchant's shop. | a semicolon-separated list of armor/item/weapon pagenames |
| Markup | No | A factor that is applied to the regular prices by this merchant. Defaults to 1. | non-negative number |