Difference between revisions of "Template:Vendor table row"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Changing icon system to PNG.)
m (Documenting icon naming and uploading guidelines)
Line 17: Line 17:
 
: The item name
 
: The item name
 
; cost
 
; cost
: Cost in full "15 gold" (Gorg: template system too limited atm.)
+
: 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.
  
 
==Description==
 
==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).
 
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:
+
====Guidlines for Uploading and Naming Icons====
* Save as PNG 8 bit (256 color) for smaller file size and sharp image, for most icons.
+
* File name MUST be in the form "item-icon-xxxxxx.png" where xxxxxx is a label of your choice.
* Save as PNG 24 bit if the icon somehow needs more colour.
+
* Use a short generic label for generic and common icons. Eg. use "book" not "Fire Magic: Introductory Research" since most skill teaching books have the same book icon, use "seeds" not "dahliaseeds" since most seeds in-game have the same icon.
 +
* In alpha there are no icons that need more than 256 color. Save the SMALLEST file size , 8 bit PNG.
  
 
==Examples==
 
==Examples==

Revision as of 15:27, 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 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.

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).

Guidlines for Uploading and Naming Icons

  • File name MUST be in the form "item-icon-xxxxxx.png" where xxxxxx is a label of your choice.
  • Use a short generic label for generic and common icons. Eg. use "book" not "Fire Magic: Introductory Research" since most skill teaching books have the same book icon, use "seeds" not "dahliaseeds" since most seeds in-game have the same icon.
  • In alpha there are no icons that need more than 256 color. Save the SMALLEST file size , 8 bit PNG.

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