Difference between revisions of "Template:Augury icon"
From Project: Gorgon Wiki
(Added first Augury related template.) |
m |
||
Line 1: | Line 1: | ||
{{ #if: {{{1|}}} | | {{ #if: {{{1|}}} | | ||
− | {{ #replace: http://cdn.projectgorgon.com/ | + | {{ #replace: http://cdn.projectgorgon.com/v332/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/ | + | http://cdn.projectgorgon.com/v332/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 10:18, 15 January 2020
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}}
Forcing 32x32 size
<span class="extimage32px">{{Augury icon|Augury: All-Seeing}}</span>
Forcing 64x64 size
<span class="extimage64px">{{Augury icon|Augury: Wisdom}}</span>