Difference between revisions of "Template:Ex Testing"
From Project: Gorgon Wiki
Extractum11 (talk | contribs) m (Derp) |
Extractum11 (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | {{ #if: {{{1}}} | http://cdn.projectgorgon.com/v282/icons/icon_{{ #switch: {{{1|None}}} | + | {{ #if: {{{1|}}} | http://cdn.projectgorgon.com/v282/icons/icon_{{ #switch: {{{1|None}}} |
| Acid Bolt 7 = 3650 | | Acid Bolt 7 = 3650 | ||
| Acid Bolt 8 = 3650 | | Acid Bolt 8 = 3650 |
Revision as of 22:34, 18 May 2017
Description
This accepts an ability name as input and returns the in-game icon. Most of these are 64x64, but you can resize them if needed. See the Examples section below.
Syntax
{{Ability icon|<name>|<size selection>}}
Parameters
- <name>
- The name of the ability. It must match exactly what is displayed in-game (e.g. "Super Fireball", not "SUPER fireball" or "Fireball")
- If omitted or empty, template returns a blank icon image.
- If no match is found, template returns an error.
- <size selection>
- 1 or 32 for 32x32.
- 2 or 64 for 64x64.
- If omitted, empty, or anything else, image isn't resized.
Examples
Standard Use
{{Ability icon|Ring of Fire}} {{Ability icon}} {{Ability icon|FakeAbilityReturnsError}}
Error: Ability not found
Resizing
{{Ability icon|Ring of Fire}} <!-- default size is 64x64 --> {{Ability icon|Ring of Fire|64}} {{Ability icon|Ring of Fire|32}}
Alternative Resizing (old method)
You can also manually resize the images if you wish (using the template just wraps the image in this span automatically).
<span class="extimage32px">{{Ability icon|Ring of Fire}}</span> <span class="extimage64px">{{Ability icon|Ring of Fire}}</span>