Difference between revisions of "Template:Item icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
 
Line 1: Line 1:
 
{{ #if: {{{1|}}} |  
 
{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v320/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v321/icons/icon_{{ #switch: {{{1|None}}}
 
| "Always The Way" = 5110
 
| "Always The Way" = 5110
 
| "Battle of Fok" = 5793
 
| "Battle of Fok" = 5793

Latest revision as of 12:49, 10 July 2019

Item-icon-none.png

Description

This accepts an item name as input and returns the in-game icon. Be aware that icons have various sizes, and you can use CSS to easily resize them. 99% of the time, you'll want 32x32. If you do NEED 64x64, remember that some icons are not inherently that big so you'll lose image quality. See the Examples section below.

Syntax

{{Item icon|<name>}}

Parameters

<name>
The name of the item. It must match exactly what is displayed in-game (e.g. "Red Apple", not "Apple" or "red apple")

Examples

Basic Use

{{Item icon|Glowy Yellow Crystal}} {{Item icon|Ice Core}}

icon_5702.png icon_5295.png


Forcing 32x32 size

<span class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</span>

icon_5702.png


Forcing 64x64 size

<span class="extimage64px">{{Item icon|Ice Core}}</span>

icon_5295.png