Jump to content

Template:ShopEntry: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Remove visible output, use min/max for quantity, keep cost field (via update-page on MediaWiki MCP Server)
Dane (talk | contribs)
Add currency field, update parameter names (via update-page on MediaWiki MCP Server)
Line 1: Line 1:
<!-- Template:ShopEntry -->
<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
|source_type=shop
|rarity={{{rarity|}}}
|min={{{min|1}}}
|max={{{max|}}}
|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 | Item Name | cost = 100}}
{{ShopEntry|item=Iron Sword|cost=100}}
{{ShopEntry | Item Name | cost = 50 | min = 1 | max = 10}}
{{ShopEntry|item=Health Potion|cost=50|currency=Gold}}
</pre>
</pre>


[[Category:Utility templates]]
== 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)