Template:ShopEntry: Difference between revisions
Remove visible output, use min/max for quantity, keep cost field (via update-page on MediaWiki MCP Server) |
Add currency field, update parameter names (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#cargo_store:_table=ItemSource | <includeonly>{{#cargo_store:_table=ItemSource | ||
|item={{{1}}} | |item={{{item|{{{1|}}}}}} | ||
|source={{{shop|{{PAGENAME}}}}} | |source={{{npc|{{{shop|{{PAGENAME}}}}}}}} | ||
|source_type=shop | |||
| | |||
|cost={{{cost|}}} | |cost={{{cost|}}} | ||
|currency={{{currency|Gold}}} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Stores shop item data to the ItemSource Cargo table. Does not produce visible output. | Stores shop item data to the ItemSource Cargo table. Does not produce visible output. | ||
| Line 13: | Line 10: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{ShopEntry | | {{ShopEntry|item=Iron Sword|cost=100}} | ||
{{ShopEntry | | {{ShopEntry|item=Health Potion|cost=50|currency=Gold}} | ||
</pre> | </pre> | ||
[[Category: | == Parameters == | ||
* '''item''' - The item being sold (required) | |||
* '''cost''' - The price (required) | |||
* '''currency''' - Currency type (defaults to Gold) | |||
* '''npc''' - The NPC selling this item (defaults to page name) | |||
[[Category:Data templates]] | |||
</noinclude> | </noinclude> | ||
Revision as of 17:42, 30 January 2026
Stores shop item data to the ItemSource Cargo table. Does not produce visible output.
Usage
{{ShopEntry|item=Iron Sword|cost=100}}
{{ShopEntry|item=Health Potion|cost=50|currency=Gold}}
Parameters
- item - The item being sold (required)
- cost - The price (required)
- currency - Currency type (defaults to Gold)
- npc - The NPC selling this item (defaults to page name)