Difference between revisions of "Template:EffectIcon"

From SMT: Dx2 Wiki
Jump to: navigation, search
(lydia link)
(repels)
Line 7: Line 7:
 
|Rebellion=[[File:Icon Critical.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Might|{{{1|}}}]]|}}
 
|Rebellion=[[File:Icon Critical.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Might|{{{1|}}}]]|}}
 
|Lydia=[[File:Icon Lydia.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Lydia (status effect)|{{{1|}}}]]|}}
 
|Lydia=[[File:Icon Lydia.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Lydia (status effect)|{{{1|}}}]]|}}
 +
|Repel Physical=[[File:Icon Repel Physical.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Repel Physical|{{{1|}}}]]|}}
 +
|Tetrakarn=[[File:Icon Repel Physical.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Repel Physical|{{{1|}}}]]|}}
 +
|Repel Almighty Physical=[[File:Icon Repel Almighty Physical.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Repel Physical|{{{1|}}}]]|}}
 +
|Repel Magic=[[File:Icon Repel Magic.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Repel Magic|{{{1|}}}]]|}}
 +
|Makarakarn=[[File:Icon Repel Magic.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Repel Magic|{{{1|}}}]]|}}
 +
|Repel Almighty Magic=[[File:Icon Repel Almighty Magic.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Repel Magic|{{{1|}}}]]|}}
 
|Null Mortal=[[File:Icon Null Mortal.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Mortal|{{{1|}}}]]|}}
 
|Null Mortal=[[File:Icon Null Mortal.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Mortal|{{{1|}}}]]|}}
 
|Mortal Immunity=[[File:Icon Null Mortal.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Mortal|{{{1|}}}]]|}}
 
|Mortal Immunity=[[File:Icon Null Mortal.png|{{{size|20px}}}|link=]] {{#if:{{{name|}}}|[[Mortal|{{{1|}}}]]|}}
Line 50: Line 56:
 
* {{EffectIcon|Critical|name=1}}
 
* {{EffectIcon|Critical|name=1}}
 
* {{EffectIcon|Rebellion|name=1}}
 
* {{EffectIcon|Rebellion|name=1}}
 
 
</noinclude>
 
</noinclude>

Revision as of 20:19, 3 January 2023

Displays an effect icon, given its name.

  • If an effect has multiple names, all will work.

Optionally, can specify the size of the icon (default is 20px).

Optionally, can also display a link to the effect page.

  • The visible linked word(s) will be the given name
  • Example: If you enter "Rebellion" then the link will appear as the word "Rebellion", but the link will go to "Might (status effect)"

Usage Examples

{{EffectIcon|Barrier}}

Icon Barrier.png

{{EffectIcon|Barrier|name=1}}

Icon Barrier.png Barrier

{{EffectIcon|Barrier|size=32px}}

Icon Barrier.png

Alternate Names Example

* {{EffectIcon|Might|name=1}}
* {{EffectIcon|Critical|name=1}}
* {{EffectIcon|Rebellion|name=1}}