Template:SkillIcon: Difference between revisions
PetraMagna (talk | contribs) m ([InPageEdit]) |
|||
(2 intermediate revisions by one other user not shown) | |||
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:
<div style="position:absolute; z-index:1; top:0px; left:0px; margin:0; padding:0;">
[[File:SkillIcon_Background_{{{1}}}
</div>
<div style="position:absolute; z-index:2; margin:1px; padding:0;">
[[File:{{{2}}}.png|{{#expr:{{{size|64}}}-2}}x{{#expr:{{{size|64}}}-2}}px|center]]
</div>
</div></includeonly><noinclude>▼
</div>▼
▲</includeonly>
== 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 23 ⟶ 21:
<nowiki>{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=32}}</nowiki>
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=32}}
▲</div>
▲<div style="clear:both;"></div>
<nowiki>{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=100}}</nowiki>
<div style="clear:both; position:relative; height:100px">
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=100}}
</div>
<div style="clear:both;"></div>▼
=== Replacement skill version ===
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|plus}}
</div>
=== Relative positioning ===
Disables vertical centering through absolute position {{SkillIcon|Explosive|COMMON_SKILLICON_BURNNIG|relative=}}
== Icon names reference ==
=== Common skills ===
{{#dpl:
|namespace = File
|titlematch = COMMON_SKILLICON_%
▲|{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER}} COMMON_SKILLICON_BARRIER
|ordermethod = title
|includesubpages = true
|mode = inline
▲|{{SkillIcon|Explosive|COMMON_SKILLICON_BURNNIG}} COMMON_SKILLICON_BURNNIG
|format = ,,<div style="display:inline-flex; align-items:center; width:300px; height:70px; position:relative; padding-left: 74px; margin:5px; word-break: break-all;">{{SkillIcon|Explosive|²{#replace:²{#explode:%TITLE%¦.}²¦ ¦_}²}} ²{#replace:²{#explode:%TITLE%¦.}²¦ ¦_}²</div>,
▲|}
=== Character-specific skills ===
{{#dpl:
|namespace = File
|titlematch = SKILLICON_%
|ordermethod = title
|includesubpages = true
|mode = inline
|format = ,,<div style="display:inline-flex; align-items:center; width:300px; height:70px; position:relative; padding-left: 74px; margin:5px; word-break: break-all;">{{SkillIcon|Explosive|²{#replace:²{#explode:%TITLE%¦.}²¦ ¦_}²}} ²{#replace:²{#explode:%TITLE%¦.}²¦ ¦_}²</div>,
▲|}
If you can't find the icon you are looking for here, try
</noinclude>
|
Latest revision as of 05:53, 29 January 2024
Function Edit
{{SkillIcon|DamageType(Explosive/Penetration/Mystic)|IconName[|plus][|size=64][|relative=]}}
Outputs skill icon with relevant background, for use with Template:SkillTable and Template:EXSkillTable. Case sensitive.
Icon size Edit
Use optional size parameter to specify icon size in pixels if needed:
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=32}}
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|size=100}}
Replacement skill version Edit
{{SkillIcon|Explosive|COMMON_SKILLICON_BARRIER|plus}}
Relative positioning Edit
{{SkillIcon|Explosive|COMMON_SKILLICON_BURNNIG|relative=}}
Disables vertical centering through absolute position
Icon names reference Edit
Common skills Edit
Character-specific skills Edit
If you can't find the icon you are looking for here, try purging this pages' cache!