Difference between revisions of "Template:Vendor table row"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Changing icon system to PNG.)
(Trying to fix this again.... can't figure out what i did wrong)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
|-
+
<includeonly>|-
! style="font-weight:normal;text-align:left;" | [[Image:item-icon-{{{icon|none}}}.png]] {{{item|Item name}}}
+
| style="text-align:left;width:40px;" | {{icon|{{{icon|none}}}}}
| style="float:right;" | {{{cost|}}}
+
| style="text-align:left;" | {{{item|Item name}}}
<noinclude>
+
| style="text-align:right;white-space:nowrap;" | {{{cost|}}}</includeonly>
 +
<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__
 
__NOTOC__
 
==Syntax==
 
==Syntax==
Line 17: Line 18:
 
: 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.
 +
: <span style="color:#F00;background:#FF8">CHECK [[Item Icons Guide]] FOR AVAILABLE ICONS before uploading any new ones!</span>
  
 
==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.
  
'''PNG'' file format was chosen because it gives the flexibility with one file extension:
+
'''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).
* 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==
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):
+
Many generic icons can be used for a variety of items! See [[Item Icons Guide]] for all available icons.
 
<pre>
 
<pre>
 
{{vendor table row
 
{{vendor table row
  | item = Basic Sword
+
  | item = Fire Magic: Introductory Research
 
  | cost = 75 gold
 
  | cost = 75 gold
 +
| icon = book
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 01:46, 26 January 2017

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.

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