Difference between revisions of "Vendor table body/Documentation"

m
Line 1: Line 1:
 
==Description==
 
==Description==
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]. Used in conjunction with [[Template:Vendor table header]].
 
==Usage==
 
==Usage==
<pre>{| class="wikitable sortable"
+
<pre>
! class="NPC-ally" | Vendor !! class="NPC-ally" | Item !! class="NPC-ally" | Price
+
{{vendor table header}}
|-
 
 
{{#ask: [[Sells item::Campfire]]
 
{{#ask: [[Sells item::Campfire]]
 
|?Has vendor
 
|?Has vendor
Line 13: Line 12:
 
|template=Vendor table body
 
|template=Vendor table body
 
|link=none}}
 
|link=none}}
|}</pre>
+
{{table footer}}
 
+
</pre>
 
==Parameters==
 
==Parameters==
 
{{parameter|1|The page to query.}}
 
{{parameter|1|The page to query.}}
Line 21: Line 20:
 
{{parameter|4|The cost of the item.}}
 
{{parameter|4|The cost of the item.}}
 
{{parameter|5|The quality of the item.}}
 
{{parameter|5|The quality of the item.}}
 +
<includeonly>[[Category:Table templates]]</includeonly>

Revision as of 20:21, 16 February 2024

Description

Creates a vendor table row using the parameters provided in the original inline query. Used in conjunction with Vendor table header.

Usage

{{vendor table header}}
{{#ask: [[Sells item::Campfire]]
|?Has vendor
|?Sells item
|?Has item cost
|?Has item quality
|format=template
|template=Vendor table body
|link=none}}
{{table footer}}

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.
Arrow.png5: The quality of the item.
Required.