Template:ShopEntry: Difference between revisions
Created page with "<!-- Template:ShopEntry --> <includeonly>{{#cargo_store:_table=ItemSource |item={{{1}}} |source={{{shop|{{PAGENAME}}}}} |source_type=Shop |cost={{{cost|}}} }}[[{{{1}}}]]</includeonly><noinclude> Stores a shop item source and links to the item. Usage: <code>{{ShopEntry|Iron Sword|cost=150}}</code> Category:Utility templates </noinclude>" |
Revert ShopEntry to original (Cargo storage only) (via update-page on MediaWiki MCP Server) Tag: Manual revert |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#cargo_store:_table=ItemSource|item={{{item|{{{1|}}}}}}|source={{{npc|{{{shop|{{PAGENAME}}}}}}}}|source_type=shop|cost={{{cost|}}}|currency={{{currency|Gold}}}}}<nowiki /></includeonly><noinclude> | |||
<includeonly>{{#cargo_store:_table=ItemSource | {{#cargo_attach:_table=ItemSource}} | ||
|item={{{1}}} | Stores shop item data to the ItemSource Cargo table. Does not produce visible output. | ||
|source={{{shop|{{PAGENAME}}}}} | |||
|source_type= | |||
|cost={{{cost|}}} | |||
Stores | |||
Usage | == Usage == | ||
[[Category: | <pre> | ||
{{ShopEntry|item=Iron Sword|cost=100}} | |||
{{ShopEntry|item=Health Potion|cost=50|currency=Gold}} | |||
</pre> | |||
== 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> | ||
Latest revision as of 12:41, 1 February 2026
This template adds rows to the table "ItemSource", which is declared by the template ItemSource. View table. Stores shop item data to the ItemSource Cargo table. Does not produce visible output.
Usage
[edit source]{{ShopEntry|item=Iron Sword|cost=100}}
{{ShopEntry|item=Health Potion|cost=50|currency=Gold}}
Parameters
[edit source]- 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)