Template:Inventory/doc: Difference between revisions
From Archaelund Wiki
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
|Stock = | |Stock = | ||
|Markup = | |Markup = | ||
|Markup2 = | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 15: | Line 16: | ||
<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>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> | ||
<tr><td>Markup2</td><td>No</td><td>If the markup changes during the course of the game (e.g. after completing certain quests), the modified value can be given here.</td><td>non-negative number</td></tr> | |||
</table> | </table> | ||
Latest revision as of 12:43, 23 March 2025
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 =
|Markup2 =
}}
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 |
| Markup2 | No | If the markup changes during the course of the game (e.g. after completing certain quests), the modified value can be given here. | non-negative number |