Difference between revisions of "Template:Augury icon"

From Project: Gorgon Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
{{ #if: {{{1|}}} |  
 
{{ #if: {{{1|}}} |  
{{ #replace: http://cdn.projectgorgon.com/v332/icons/icon_{{ #switch: {{{1|None}}}
+
{{ #replace: http://cdn.projectgorgon.com/v356/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/v332/icons/icon_<span style="color:red">Error: Augury not found</span>.png |  
+
http://cdn.projectgorgon.com/v356/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>

Revision as of 11:58, 23 January 2022

Item-icon-none.png

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