Difference between revisions of "Template:Item icon/doc"

From Project: Gorgon Wiki
Jump to: navigation, search
(Forcing 32x32 size: I think you had an extra pipe in there)
m (The extra pipe was a mistake (ty), the newline was intentional cause I think the spacing looks a bit better (the icons make it seem somewhat "blurry" where the sections end otherwise) )
Line 22: Line 22:
 
<pre><span class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</span></pre>
 
<pre><span class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</span></pre>
 
<span class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</span>
 
<span class="extimage32px">{{Item icon|Glowy Yellow Crystal}}</span>
 +
  
 
=== Forcing 64x64 size ===
 
=== Forcing 64x64 size ===
 
<pre><span class="extimage64px">{{Item icon|Ice Core}}</span></pre>
 
<pre><span class="extimage64px">{{Item icon|Ice Core}}</span></pre>
 
<span class="extimage64px">{{Item icon|Ice Core}}</span>
 
<span class="extimage64px">{{Item icon|Ice Core}}</span>

Revision as of 23:35, 29 January 2017

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