Jump to content

Template:ShopEntry: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Add cargo_attach for ItemSource table (via update-page on MediaWiki MCP Server)
Dane (talk | contribs)
Compact to single line to prevent whitespace output (via update-page on MediaWiki MCP Server)
Line 1: Line 1:
<includeonly>{{#cargo_store:_table=ItemSource
<includeonly>{{#cargo_store:_table=ItemSource|item={{{item|{{{1|}}}}}}|source={{{npc|{{{shop|{{PAGENAME}}}}}}}}|source_type=shop|cost={{{cost|}}}|currency={{{currency|Gold}}}}}</includeonly><noinclude>
|item={{{item|{{{1|}}}}}}
|source={{{npc|{{{shop|{{PAGENAME}}}}}}}}
|source_type=shop
|cost={{{cost|}}}
|currency={{{currency|Gold}}}
}}</includeonly><noinclude>
{{#cargo_attach:_table=ItemSource}}
{{#cargo_attach:_table=ItemSource}}
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.

Revision as of 22:48, 30 January 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

{{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)