Open main menu

Project: Gorgon Wiki β

Difference between revisions of "Template:Vendor item row/doc"

< Template:Vendor item row
m (Examples)
m
 
(7 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
  | item =
 
  | item =
 
  | cost =
 
  | cost =
  | level =
+
  | favor =
 
}}
 
}}
 
</pre>
 
</pre>
Line 16: Line 16:
 
; cost
 
; cost
 
: Optional. The numerical cost eg. "15".  If not provided, an empty column is shown.
 
: Optional. The numerical cost eg. "15".  If not provided, an empty column is shown.
; level
+
; favor
 
: Optional. The favor level at which the item is available.  If not provided, an empty column is shown.
 
: Optional. The favor level at which the item is available.  If not provided, an empty column is shown.
 +
; Icon
 +
: Optional. If the item icon does not match that for the item name, an alternate item name may be used here.  The icon for that alternate item name will be shown.  Used for 'Learn' and 'Unlock' type items.  Note: This argument is intentionally capitalized to indicate that <kbd>Item icon</kbd> is being used instead of older <kbd>Icon</kbd>, which used lowercase argument.
  
 
== Sample output ==
 
== Sample output ==
 
<pre>
 
<pre>
 +
{{vendor table first}}
 +
 
{{vendor item row
 
{{vendor item row
 
  | item = Mild Cheddar Cheese
 
  | item = Mild Cheddar Cheese
 
  | cost = 980
 
  | cost = 980
 
}}
 
}}
 +
 +
|}
 
</pre>
 
</pre>
 
{{vendor table first}}
 
{{vendor table first}}
Line 39: Line 45:
  
 
== Note ==
 
== Note ==
: Uses the new [[Template:Item icon]] template.
+
: Uses [[Template:Item icon]], which supercedes the older [[Template:Icon]].
 
<includeonly>
 
<includeonly>
 
<!-- Categories/interwikis for the template itself -->
 
<!-- Categories/interwikis for the template itself -->
[[Category:Formatting templates|vendor item row]]
+
[[Category:Formatting templates]]
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
<!-- Categories/interwikis for this documentation itself -->
 
<!-- Categories/interwikis for this documentation itself -->
 
[[Category:Template documentation|{{PAGENAME}}]]
 
[[Category:Template documentation|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:19, 17 June 2021

Description

Use this template to create a row in the table of items sold by a vendor.

Syntax

{{vendor item row
 | item =
 | cost =
 | favor =
}}

Parameters

item
The item name
cost
Optional. The numerical cost eg. "15". If not provided, an empty column is shown.
favor
Optional. The favor level at which the item is available. If not provided, an empty column is shown.
Icon
Optional. If the item icon does not match that for the item name, an alternate item name may be used here. The icon for that alternate item name will be shown. Used for 'Learn' and 'Unlock' type items. Note: This argument is intentionally capitalized to indicate that Item icon is being used instead of older Icon, which used lowercase argument.

Sample output

{{vendor table first}}

{{vendor item row
 | item = Mild Cheddar Cheese
 | cost = 980
}}

|}
 980 councils 


Examples

See Braigon Sells and Training for examples.

Note

Uses Template:Item icon, which supercedes the older Template:Icon.