Template:StatusEffectIcon: Difference between revisions

From HorizonXI Wiki
(Created page with "<includeonly><onlyinclude> {{#ifeq:{{{1|}}}|{{{icon}}}||[[File:status_effect_{{lc:{{#replace:{{{1}}}|<nowiki/> <nowiki/>|_}}}}.png {{#if:{{{2|}}}|{{!}}{{{2}}}px{{!}}text-top|}}]]}} </onlyinclude></includeonly> <noinclude> A simple template to add the in-game status effects icon to inline text, allowing users to see at a glance similar, if not the same, status effects icons from the game. ==Usage== '''<nowiki>{{SpellIcon|<spell name>|<size>}}</nowiki>''' *icon id - the s...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>
<includeonly><onlyinclude>{{#ifeq: {{{1|}}}|{{{status effect id}}}||[[File:status_effect_{{lc:{{#replace:{{{1}}}|<nowiki/> <nowiki/>|_}}}}.png {{#if:{{{2|}}}|{{!}}{{{2}}}px{{!}}text-top|}}]]}}</onlyinclude></includeonly>
{{#ifeq:{{{1|}}}|{{{icon}}}||[[File:status_effect_{{lc:{{#replace:{{{1}}}|<nowiki/> <nowiki/>|_}}}}.png
{{#if:{{{2|}}}|{{!}}{{{2}}}px{{!}}text-top|}}]]}}
</onlyinclude></includeonly>
<noinclude>
<noinclude>
A simple template to add the in-game status effects icon to inline text, allowing users to see at a glance similar, if not the same, status effects icons from the game.  
A simple template to add the in-game status effects icon to inline text, allowing users to see at a glance similar, if not the same, status effects icons from the game.  
==Usage==
==Usage==
'''<nowiki>{{SpellIcon|<spell name>|<size>}}</nowiki>'''
'''<nowiki>{{SpellIcon|<spell name>|<size>}}</nowiki>'''
*icon id - the status effect id from within the game DATs
*status effect id - the status effect id from within the game DATs
*size - default is 32px; 16px is suitable for an in-line icon.
*size - default is 32px; 16px is suitable for an in-line icon.
</noinclude>
</noinclude>

Latest revision as of 13:58, 8 June 2023


A simple template to add the in-game status effects icon to inline text, allowing users to see at a glance similar, if not the same, status effects icons from the game.

Usage

{{SpellIcon|<spell name>|<size>}}

  • status effect id - the status effect id from within the game DATs
  • size - default is 32px; 16px is suitable for an in-line icon.