Template:Combat Ability icon/doc

From Project Gorgon
Jump to navigation Jump to search

Description

This accepts a combat ability internal name as input and returns the in-game icon. Most of these are 64x64, but you can use CSS to force or resize them. See the Examples section below.

Syntax

{{Combat Ability icon|<name>}}

Parameters

<name>
The name of the ability. It must match exactly what is displayed in the json (e.g. "TreantStomp", not "Treant Stomp" or "treantstomp")

Examples

Standard Use

{{Combat Ability icon|TreantStomp}} {{Combat Ability icon|IceSlimeKick}}

{{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_3472.png | http://cdn.projectgorgon.com/v445/icons/icon_.png | Error: Ability not found }} {{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_2176.png | http://cdn.projectgorgon.com/v445/icons/icon_.png | Error: Ability not found }}

Forcing resize to 32x32

<span class="extimage32px">{{Combat Ability icon|IceSlimeKick}}</span>

{{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_2176.png | http://cdn.projectgorgon.com/v445/icons/icon_.png | Error: Ability not found }}

Forcing resize to 64x64

<span class="extimage64px">{{Combat Ability icon|IceSlimeKick}}</span>

{{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_2176.png | http://cdn.projectgorgon.com/v445/icons/icon_.png | Error: Ability not found }}