Template:Combat Ability/doc: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Description ==
== Description ==
:Use this template whenever you want to display a combat ability icon and name for a creature.
:Use this template whenever you want to display a combat ability icon and description for a creature.
:If you only want to display a combat ability's icon, or use a larger image of the icon, use the [[Template:Combat Ability icon|Combat Ability icon]] template.
:If you only want to display a combat ability's icon, or use a larger image of the icon, use the [[Template:Combat Ability icon|Combat Ability icon]] template.
:If you only want to display a combat ability's description (what players see in-game), use [[Template:Combat Ability name|Combat Ability name]] template.
:If you want to display a rage attack, use [[Template:Combat Ability Rage]].
:If you want to display a rage attack, use [[Template:Combat Ability Rage]].


== Syntax ==
== Syntax ==
:Type <nowiki>{{Combat Ability|name}}</nowiki> where you want the item icon and link to display.
:Type <nowiki>{{Combat Ability|name}}</nowiki> where you want the icon and description to appear.


== Parameters ==
== Parameters ==
; name
; name
: The correct capitalized name of the Combat Ability.
: The correct capitalized "InternalName" (as found in abilities.json in the public data at http://cdn.projectgorgon.com/) of the Combat Ability.


== Sample output ==
== Sample output ==
Line 18: Line 19:
| Output
| Output
|-
|-
| {{tlc|Combat Ability|Horrific Poison Damage Over Time}}
| <nowiki>{{Combat Ability|IceSlimeKick}}</nowiki>
| &rArr;
| &rArr;
| {{Combat Ability|Horrific Poison Damage Over Time}}
| {{Combat Ability|IceSlimeKick}}
|}
; Complex usage
: If the icon you get does not match the in-game icon, check [[List of Combat Ability Icons]]. Some combat abilities have three or four possible icons!
:{| class="wikitable"
| Code
| {{=}}
| Output
|-
| <nowiki>{{Combat Ability|Combat Ability=Crushing Damage 13|Crushing Damage}}</nowiki>
| &rArr;
| {{Combat Ability|Combat Ability=Crushing Damage 13|Crushing Damage}}
|}
|}
== Notes ==
== Notes ==
* Uses the new [[Template:Combat Ability icon]] template.
 
<includeonly>
<includeonly>
<!-- Categories/interwikis for the template itself -->
<!-- Categories/interwikis for the template itself -->

Latest revision as of 23:12, 17 June 2021

Description

Use this template whenever you want to display a combat ability icon and description for a creature.
If you only want to display a combat ability's icon, or use a larger image of the icon, use the Combat Ability icon template.
If you only want to display a combat ability's description (what players see in-game), use Combat Ability name template.
If you want to display a rage attack, use Template:Combat Ability Rage.

Syntax

Type {{Combat Ability|name}} where you want the icon and description to appear.

Parameters

name
The correct capitalized "InternalName" (as found in abilities.json in the public data at http://cdn.projectgorgon.com/) of the Combat Ability.

Sample output

Basic usage
Code = Output
{{Combat Ability|IceSlimeKick}} http://cdn.projectgorgon.com/v445/icons/icon_.png

Error: Combat Ability not found |

Error: Combat Ability not found }}
 

Notes