Difference between revisions of "Template:Vendor table row"

From Project: Gorgon Wiki
Jump to: navigation, search
m (WIP. Template for Shop table rows with icons.)
m (WIP. Template for Shop table rows with icons.)
Line 1: Line 1:
 
|-
 
|-
! style="font-weight:normal;text-align:left;" | <span style="display:inline-block;background:#eee;width:32px;height:32px;vertical-align:middle;">&nbsp;</span> {{{item|Item name}}}
+
! style="font-weight:normal;text-align:left;" | [[Image:Item-Icon-{{{icon|none}}}.gif]] {{{item|Item name}}}
 
| style="float:right;" | {{{cost|}}}
 
| style="float:right;" | {{{cost|}}}
 
<noinclude>
 
<noinclude>
Line 11: Line 11:
 
  | cost =
 
  | cost =
 
}}
 
}}
 
[[Image:Item-Icon-{{{icon|none}}}.gif]]
 
 
</pre>
 
</pre>
 
+
<!--backup <span style="display:inline-block;background:#eee;width:32px;height:32px;vertical-align:middle;">&nbsp;</span> -->
 
==Parameters==
 
==Parameters==
 
; item
 
; item

Revision as of 10:41, 6 October 2014

|- ! style="font-weight:normal;text-align:left;" | File:Item-Icon-none.gif Item name | style="float:right;" |


Syntax

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

Parameters

item
The item name
cost
Cost in full "15 gold" (Gorg: template system too limited atm.)

Description

Create a row in the NPC Show table. This will help with adding icons.

Examples

The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name):

{{vendor table row
 | item = Basic Sword
 | cost = 75 gold
}}