Template:Augury icon: Difference between revisions

From Project Gorgon
Jump to navigation Jump to search
mNo edit summary
SweetyD (talk | contribs)
point the icon URLs at v482; the CDN no longer serves v445
 
Line 1: Line 1:
{{ #if: {{{1|}}} |  
{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v445/icons/icon_{{ #switch: {{{1|None}}}
{{ #replace: http://cdn.projectgorgon.com/v482/icons/icon_{{ #switch: {{{1|None}}}
| Augury: Undying = 3633
| Augury: Undying = 3633
| Augury: Vulnerable = 3688
| Augury: Vulnerable = 3688
Line 21: Line 21:
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Augury not found</span> }}
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} |  4003 | <span style="color:red">Error: Augury not found</span> }}
}}.png |  
}}.png |  
http://cdn.projectgorgon.com/v445/icons/icon_<span style="color:red">Error: Augury not found</span>.png |  
http://cdn.projectgorgon.com/v482/icons/icon_<span style="color:red">Error: Augury not found</span>.png |  
<span style="color:red">Error: Augury not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
<span style="color:red">Error: Augury not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude>
{{Augury icon/Explanation}}
{{Augury icon/Explanation}}
[[Category:Formatting templates|ItemT]]
[[Category:Formatting templates|ItemT]]
</noinclude>
</noinclude>

Latest revision as of 12:08, 5 September 2026

Description

This accepts a Augury name as input and returns the in-game icon. Be aware that Augury 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

{{Augury icon|<name>}}

Parameters

<name>
The name of the Augury. It must match exactly what is displayed in-game (e.g. "Augury: Vulnerable", not "Vulnerable" or "Augury:vulnerable")

Examples

Basic Use

{{Augury icon|Augury: Vulnerable}}

icon_3688.png


Forcing 32x32 size

<span class="extimage32px">{{Augury icon|Augury: All-Seeing}}</span>

icon_3633.png


Forcing 64x64 size

<span class="extimage64px">{{Augury icon|Augury: Wisdom}}</span>

icon_3633.png