Difference between revisions of "Template:Vendor item row"

From Project: Gorgon Wiki
Jump to: navigation, search
m
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Underconstruction}}</noinclude><includeonly>|-
+
<includeonly>|-
| style="text-align:left;" | {{Item|{{{item|Item name}}}}}
+
| style="text-align:left;" | {{#if: {{{Icon|}}} | [[Category:Sold/{{{item|Item name}}}]]{{Item|{{{item|Item name}}}|Icon={{{Icon}}}}} | [[Category:Sold/{{{item|Item name}}}]]{{Item|{{{item|Item name}}}}} }}
| style="text-align:right;white-space:nowrap;" |{{#if: cost | {{{cost}}} councils}}
+
| style="text-align:right;white-space:nowrap;" | {{#if: {{{cost|}}} | &nbsp;{{{cost}}} councils&nbsp;}}
|{{{level}}}</includeonly><noinclude>
+
| style="text-align:center;white-space:nowrap;" | {{#if:{{{favor|}}}|&nbsp;{{Favor|{{{favor}}}}}&nbsp;}}
 +
</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
</noinclude>
 
<noinclude>Used for depicting items sold by Vendors.  Not to be confused with [[:Template:Vendor purchase table row]], which is used for information on what a vendor buys and how much they have to spend.
 
__NOTOC__
 
==Syntax==
 
<pre>
 
{{vendor item row
 
| item =
 
| cost =
 
| level =
 
}}
 
</pre>
 
==Parameters==
 
; item
 
: The item name
 
; cost
 
: Optional. The numerical cost eg. "15".  If not provided, an empty column is shown.
 
; level
 
: Optional. The favor level at which the item is available.  If not provided, an column is shown.
 
 
==Description==
 
Create a row in a vendor's table.  Uses the new [[Template:Item icon]] template.
 
 
==Examples==
 
Many generic icons can be used for a variety of items! See [[Item Icons Guide]] for all available icons.
 
<pre>
 
{{vendor table row
 
| item = Saltpeter
 
| cost = 15 gold
 
| level = Neutral
 
}}
 
</pre>
 
 
[[Category:Formatting templates|vendor item row]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 19:15, 8 February 2023

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

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.
The above text is transcluded from Template:Vendor item row/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Vendor item row/doc. (View all subpages of this page.)