Template:Force: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div style="position: relative; width:{{#ifeq:{{{size|}}}|1|20|54}}px; height:{{#ifeq:{{{size|}}}|1|20|54}}px; display: inline-block; vertical-align: middle"><div style="position: absolute; top:{{#ifeq:{{{size|}}}|1|-5|-2}}px; left: 0; z-index: 2;">[[File:ForceIcon.png|{{#ifeq:{{{size|}}}|1|10|24}}px]]</div> <div style="position: absolute;">[[File:{{{1|}}}|{{#ifeq:{{{size|}}}|1|20|54}}px|link={{#if:{{{link|}}}|{{{link|}}}/ModA|File:{{{1|}}}}}]]</div></div></includeonly>
<includeonly>{{#vardefine:icon_size|{{#switch:{{{size|}}}|1=20|2=27|3=30|#default=54}}}}<div class="force-skill-icon" style="{{#if:{{{float|}}}|float: {{{float|}}};}}position: relative; width:{{#var:icon_size}}px; height:{{#var:icon_size}}px; display: inline-block; vertical-align: {{#if:{{{valign|}}}|{{{valign|}}}|middle}}"><div style="position: absolute; top:{{#switch:{{{size|}}}|1=-5|2=-7|3=-9|#default=-2}}px; left: 0; z-index: 1; pointer-events: none;">[[File:ForceIcon.png|{{#switch:{{{size|}}}|1=10|2|3=13|#default=24}}px]]</div> <div style="position: absolute;">[[File:{{{1|}}}|{{#var:icon_size}}px|link={{#if:{{{link|}}}|{{{link|}}}/ModA{{#if:{{{language|}}}|/{{{language|}}}|}}{{!}}[Mod] {{{link|}}}|File:{{{1|}}}}}|{{#if: {{{name|}}}|{{!}}{{{name|}}}]]|]]}}</div></div></includeonly><noinclude>{{Doc}}</noinclude>