Difference between revisions of "Template:Attribute icon"
From Project: Gorgon Wiki
(Bot added info for game version v427, bot version 119 . Contact User:Shupitsu for issues concerning this bot edit.) |
m |
||
| Line 3: | Line 3: | ||
<!-- This section has been added automatically by a bot. Please contact [[user:Shupitsu]] if you believe this section is in error. --> | <!-- This section has been added automatically by a bot. Please contact [[user:Shupitsu]] if you believe this section is in error. --> | ||
</noinclude>{{ #if: {{{1|}}} | | </noinclude>{{ #if: {{{1|}}} | | ||
| − | {{ #replace: http://cdn.projectgorgon.com/ | + | {{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_{{ #switch: {{{1|None}}} |
| ABILITYDEBUFF_BOOST_MARKWEAKNESS = 3934 | | ABILITYDEBUFF_BOOST_MARKWEAKNESS = 3934 | ||
| ABILITY_AMMOSTICK_DELTA_KNIFE = 108 | | ABILITY_AMMOSTICK_DELTA_KNIFE = 108 | ||
| Line 1,810: | Line 1,810: | ||
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} | 4003 | <span style="color:red">Error: Attribute not found</span> }} | | #default = {{ #if: {{ #pos: {{{1|}}} | : }} | 4003 | <span style="color:red">Error: Attribute not found</span> }} | ||
}}.png | | }}.png | | ||
| − | http://cdn.projectgorgon.com/ | + | http://cdn.projectgorgon.com/v445/icons/icon_<span style="color:red">Error: Attribute not found</span>.png | |
<span style="color:red">Error: Attribute not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude> | <span style="color:red">Error: Attribute not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude> | ||
{{Attribute icon/Explanation}} | {{Attribute icon/Explanation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:41, 15 January 2026
Description
This accepts an Attribute name as input and returns the in-game icon. Be aware that Attribute 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
{{Attribute icon|<name>}}
Parameters
- <name>
- The name of the Attribute. It must match exactly what the Attributes json uses. NOT the Label.
Examples
Basic Use
{{Attribute icon|ABILITY_AMMOSTICK_DELTA_KNIFE}}
Forcing 32x32 size
<span class="extimage32px">{{Attribute icon|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>
Forcing 64x64 size
<span class="extimage64px">{{Attribute icon|ABILITY_AMMOSTICK_DELTA_KNIFE}}</span>