Jump to content

Template:Infobox Shop: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Create shop display template (via create-page on MediaWiki MCP Server)
 
Dane (talk | contribs)
Accept embedded entries, add section header (via update-page on MediaWiki MCP Server)
 
Line 1: Line 1:
<includeonly>{{#invoke:NPCShop|display}}</includeonly><noinclude>
<includeonly>{{#if:{{{entries|}}}|== Shop ==
{{{entries|}}}{{#invoke:NPCShop|display}}}}</includeonly><noinclude>
Displays a table of items sold by this NPC.
Displays a table of items sold by this NPC.


== Usage ==
== Usage ==
<pre>{{Infobox Shop}}</pre>
<pre>{{Infobox Shop|entries=
{{ShopEntry|item=Bread|cost=20|currency=Gold}}
{{ShopEntry|item=Torch|cost=5|currency=Gold}}
}}</pre>


Uses the current page name as the NPC. Queries ItemSource table for shop entries.
Uses the current page name as the NPC. Queries ItemSource table for shop entries.

Latest revision as of 12:07, 1 February 2026

Displays a table of items sold by this NPC.

{{Infobox Shop|entries=
{{ShopEntry|item=Bread|cost=20|currency=Gold}}
{{ShopEntry|item=Torch|cost=5|currency=Gold}}
}}

Uses the current page name as the NPC. Queries ItemSource table for shop entries.