Difference between revisions of "Template:Disease icon"
From Project: Gorgon Wiki
(Added new curse icons.) |
m (Added new curse icons.) |
||
Line 1: | Line 1: | ||
{{ #if: {{{1|}}} | | {{ #if: {{{1|}}} | | ||
− | {{ #replace: http://cdn.projectgorgon.com/ | + | {{ #replace: http://cdn.projectgorgon.com/v356/icons/icon_{{ #switch: {{{1|None}}} |
| Feeble Fever = 2217 | | Feeble Fever = 2217 | ||
| Slimy Tremors = 2217 | | Slimy Tremors = 2217 | ||
Line 8: | Line 8: | ||
| Lice = 2217 | | Lice = 2217 | ||
| Rotbelly = 2217 | | Rotbelly = 2217 | ||
+ | | Hexapox = 2217 | ||
+ | | Swamp Tick = 6451 | ||
+ | | Varleech = 6450 | ||
| Word of Power: Leprosy = 4004 | | Word of Power: Leprosy = 4004 | ||
| Frog Flu = 2217 | | Frog Flu = 2217 | ||
Line 30: | Line 33: | ||
| Snow Raven = 3478 | | Snow Raven = 3478 | ||
| Mallard Form = 3609 | | Mallard Form = 3609 | ||
+ | | Butterfly Transformation = 6329 | ||
| Echolocation = 3485 | | Echolocation = 3485 | ||
| Combat Echolocation = 3485 | | Combat Echolocation = 3485 | ||
Line 60: | Line 64: | ||
| Spirit Virus = 2198 | | Spirit Virus = 2198 | ||
| Frosty Forever = 3501 | | Frosty Forever = 3501 | ||
+ | | Brain Fungus = 2134 | ||
+ | | Mantis Aversion = 2103 | ||
+ | | Poor Student = 3645 | ||
+ | | Darkness Rebuked = 3443 | ||
| #default = {{ #if: {{ #pos: {{{1|}}} | : }} | 4003 | <span style="color:red">Error: Disease not found</span> }} | | #default = {{ #if: {{ #pos: {{{1|}}} | : }} | 4003 | <span style="color:red">Error: Disease not found</span> }} | ||
}}.png | | }}.png | | ||
− | http://cdn.projectgorgon.com/ | + | http://cdn.projectgorgon.com/v356/icons/icon_<span style="color:red">Error: Disease not found</span>.png | |
<span style="color:red">Error: Disease not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude> | <span style="color:red">Error: Disease not found</span> }} | [[File:Item-icon-none.png]] }}<noinclude> | ||
{{Disease icon/Explanation}} | {{Disease icon/Explanation}} | ||
[[Category:Formatting templates|ItemT]] | [[Category:Formatting templates|ItemT]] | ||
</noinclude> | </noinclude> |
Revision as of 16:02, 25 December 2021
Description
This accepts a Disease name (including curses) as input and returns the in-game icon. Be aware that Disease 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
{{Disease icon|<name>}}
Parameters
- <name>
- The name of the Disease or Curse. It must match exactly what is displayed in-game (e.g. "Feeble Fever", not "feeble fever" or "FeebleFever")
Examples
Basic Use
{{Disease icon|Feeble Fever}}
Forcing 32x32 size
<span class="extimage32px">{{Disease icon|Feeble Fever}}</span>
Forcing 64x64 size
<span class="extimage64px">{{Disease icon|Feeble Fever}}</span>