Template:SkillIcon: Difference between revisions

Jump to navigation Jump to search
Support replacement skill icons
(Vertically centered icon in SkillTables)
(Support replacement skill icons)
Line 1:
<includeonly>
<div style="{{#ifeq:{{{relative|}}}|{{{relative}}}| display:inline-block; position:relative; | position:absolute; top:50%; left:0.4em; transform: translateY(-50%); float:left; }} height:{{{size|64}}}px; width:{{{size|64}}}px; overflow:hiddenvisible; margin:0; padding:0; line-height: 1;">
<div style="position:absolute; z-index:1; top:0px; left:0px; margin:0; padding:0;">
[[File:SkillIcon_Background_{{{1}}}.svg|{{#ifeq: {size{{3|64}}} | plus | _Plus }}.svg|x{{{size|64}}}px|center|frameless|link=]]
</div>
<div style="position:absolute; z-index:2; margin:1px; padding:0;">
Line 11:
== Function ==
 
<nowiki>{{SkillIcon|DamageType(Explosive/Penetration/Mystic)|IconName[|plus][|size=64][|relative=]}}</nowiki>
 
Outputs skill icon with relevant background, for use with [[Template:SkillTable]] and [[Template:EXSkillTable]]. Case sensitive.
Line 21:
 
<nowiki>{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=32}}</nowiki>
<div style="clear:both; position:relative; height:32px64px">
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=32}}
</div>
 
 
<nowiki>{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=100}}</nowiki>
Line 30 ⟶ 29:
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=100}}
</div>
 
 
=== Replacement skill version ===
<nowiki>{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|plus}}</nowiki>
<div style="clear:both; position:relative; height:32px">
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|plus}}
</div>
 
 
=== Relative positioning ===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu