Template:Vendor table row: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Gorgonzola (talk | contribs)
mNo edit summary
Gorgonzola (talk | contribs)
m Using a table cell (TD) for the Shop icons, solves long item names and also use newlines in item to add Favor and other info.
Line 1: Line 1:
|-
|-
! style="font-weight:normal;text-align:left;" | [[Image:item-icon-{{{icon|none}}}.png]] {{{item|Item name}}}
| style="text-align:left;" | [[Image:item-icon-{{{icon|none}}}.png]]
| style="text-align:left;" | {{{item|Item name}}}
| style="text-align:right;white-space:nowrap;" | {{{cost|}}}
| style="text-align:right;white-space:nowrap;" | {{{cost|}}}
<noinclude>
<noinclude>

Revision as of 18:33, 7 October 2014

|- | style="text-align:left;" | | style="text-align:left;" | Item name | style="text-align:right;white-space:nowrap;" |


Syntax

{{vendor table row
 | item =
 | icon = 
 | cost =
}}

Parameters

item
The item name
cost
Cost in full eg. "15 gold"
icon
Optional. If not provided, a generic "empty" icon base is used. If abc is provided, item-icon-abc.png is used.
CHECK Item Icons Guide FOR AVAILABLE ICONS before uploading any new ones!

Description

Create a row in the NPC Show table. This will help with adding icons and maintaining consistency across many tables.

TODO As better extensions are installed in the wiki, a lot of things also can be automated (ie. picking the correct icon based on the item name).

Examples

Many generic icons can be used for a variety of items! See Item Icons Guide for all available icons.

{{vendor table row
 | item = Fire Magic: Introductory Research
 | cost = 75 gold
 | icon = book
}}