Difference between revisions of "Template:Icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Fix butter icon title)
(Add mouseover titles to the food icons.)
Line 4: Line 4:
 
  | saltpeter = item-icon-saltpeter.png{{!}}link=Saltpeter
 
  | saltpeter = item-icon-saltpeter.png{{!}}link=Saltpeter
 
  | sulfur    = item-icon-sulfur.png{{!}}link=Sulfur
 
  | sulfur    = item-icon-sulfur.png{{!}}link=Sulfur
<!-- foods which have similar looking icons, using mouseover title -->
+
<!-- Add mouseover title to help identify similar looking icons in the recipes table -->
 +
| banana    = item-icon-banana.png{{!}}Banana
 +
| beet      = item-icon-beet.png{{!}}Beet
 
  | butter    = item-icon-butter.png{{!}}Butter
 
  | butter    = item-icon-butter.png{{!}}Butter
<!-- look-alike items for which we use the same icons (in alpha) -->
+
  | lemon    = item-icon-banana.png{{!}}Lemon
  | lemon    = item-icon-banana.png
+
  | potato    = item-icon-banana.png{{!}}Potato
  | potato    = item-icon-banana.png
+
| redapple  = item-icon-redapple.png{{!}}Red Apple
 
<!-- default uses the shop item naming convention -->
 
<!-- default uses the shop item naming convention -->
 
  | #default  = item-icon-{{{1|none}}}.png
 
  | #default  = item-icon-{{{1|none}}}.png

Revision as of 15:59, 18 October 2014

Item-icon-none.png

Syntax

{{icon|<name>|size=16px}}

Description

This template has several purposes:

  • Always used instead of direct links, it can save many edits in the future.
  • Reduces custom mediawiki code in the articles.
  • Makes icons link to relevant article pages, instead of the default "File history" page.

Parameters

parameter 1
Name of the icon. See Item Icons Guide for available icons (eg. "firstaid"). If not provided, an empty box is shown.
size
OPTIONAL. Changes the size of the icon (default is 32px).

Examples

{{icon|saltpeter}}