Template:Icon: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
Gorgonzola (talk | contribs)
Main template to use for all kinds of icons.
 
Gorgonzola (talk | contribs)
mNo edit summary
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
  | #default = Skill.png
<!-- default uses the shop item naming convention -->
  | #default = item-icon-{{{1}}}.png
}}|{{{size|32px}}}]]<noinclude>
}}|{{{size|32px}}}]]<noinclude>



Revision as of 14:49, 17 October 2014

[[File:item-icon-{{{1}}}.png|32px]]

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
size
OPTIONAL. Changes the size of the icon (default is 32px).

Examples

{{icon|saltpeter}}