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 (Changing icon system to PNG.)
Line 1: Line 1:
 
|-
 
|-
! style="font-weight:normal;text-align:left;" | [[Image:item-icon-{{{icon|none}}}.gif]] {{{item|Item name}}}
+
! style="font-weight:normal;text-align:left;" | [[Image:item-icon-{{{icon|none}}}.png]] {{{item|Item name}}}
 
| style="float:right;" | {{{cost|}}}
 
| style="float:right;" | {{{cost|}}}
 
<noinclude>
 
<noinclude>
Line 20: Line 20:
  
 
==Description==
 
==Description==
Create a row in the NPC Show table. This will help with adding icons.
+
Create a row in the NPC Show table. This will help with adding icons and maintaining consistency across many tables. 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).
 +
 
 +
'''PNG'' file format was chosen because it gives the flexibility with one file extension:
 +
* Save as PNG 8 bit (256 color) for smaller file size and sharp image, for most icons.
 +
* Save as PNG 24 bit if the icon somehow needs more colour.
  
 
==Examples==
 
==Examples==

Revision as of 15:14, 6 October 2014

|- ! style="font-weight:normal;text-align:left;" | Item-icon-none.png 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 and maintaining consistency across many tables. 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).

'PNG file format was chosen because it gives the flexibility with one file extension:

  • Save as PNG 8 bit (256 color) for smaller file size and sharp image, for most icons.
  • Save as PNG 24 bit if the icon somehow needs more colour.

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
}}