Difference between revisions of "Vendor table body/Documentation"

m
m
Line 2: Line 2:
 
Creates a vendor table row using the parameters provided in the original [https://www.semantic-mediawiki.org/wiki/Help:Inline_queries#Parser_function_.23ask inline query].
 
Creates a vendor table row using the parameters provided in the original [https://www.semantic-mediawiki.org/wiki/Help:Inline_queries#Parser_function_.23ask inline query].
 
==Usage==
 
==Usage==
<pre>{{#ask: [[Sells item::Campfire]]
+
<pre>
 +
{| class="wikitable sortable"
 +
! class="NPC-ally" | Vendor !! class="NPC-ally" | Item !! class="NPC-ally" | Price
 +
|-
 +
{{#ask: [[Sells item::Campfire]]
 
|?Has vendor
 
|?Has vendor
 
|?Sells item
 
|?Sells item
 
|?Has item cost
 
|?Has item cost
 
|format=template
 
|format=template
|introtemplate=Vendor table header
 
 
|template=Vendor table body}}
 
|template=Vendor table body}}
 
|}</pre>
 
|}</pre>

Revision as of 23:04, 6 January 2024

Description

Creates a vendor table row using the parameters provided in the original inline query.

Usage

{| class="wikitable sortable"
! class="NPC-ally" | Vendor !! class="NPC-ally" | Item !! class="NPC-ally" | Price
|-
{{#ask: [[Sells item::Campfire]]
|?Has vendor
|?Sells item
|?Has item cost
|format=template
|template=Vendor table body}}
|}

Parameters

Arrow.png1: The page to query.
Required.
Arrow.png2: The vendor selling the item.
Required.
Arrow.png3: The name of the item.
Required.
Arrow.png4: The cost of the item.
Required.