Anonymous

Template:ForceRarity: Difference between revisions

From Elwiki
no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:icon_size|{{#switch:{{{size|}}}|1=20|2=32|#default=64}}}}<div 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|2=-5|#default=0}}px; left: 0; z-index: 1; pointer-events: none;">[[File:Force Rarity - {{#switch:{{{rarity|}}}|Elite|elite=Elite|Unique|unique=Unique|Legend|legend=Legend|#default=Rare}}.png|{{#switch:{{{size|}}}|1=11|2=18|#default=36}}px]]</div> <div style="position: absolute;">[[File:{{{1|}}}|{{#var:icon_size}}px|link={{#if:{{{link|}}}|{{{link|}}}|File:{{{1|}}}}}|{{{name|}}}]]</div></div></includeonly><noinclude>{{Doc}}</noinclude>
<includeonly>{{#vardefine:icon_size|{{#switch:{{{size|}}}|1=20|2=32|#default=64}}}}<div 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|2=-5|#default=0}}px; left: 0; z-index: 1; pointer-events: none;">[[File:Force Rarity - {{#switch:{{{rarity|}}}|Elite|elite=Elite|Unique|unique=Unique|Legend|legend=Legend|#default=Rare}}.png|{{#switch:{{{size|}}}|1=11|2=18|#default=36}}px]]</div> <div style="position: absolute;">[[File:{{{1|}}}|{{#var:icon_size}}px|link={{#if:{{{link|}}}|{{{link|}}}|File:{{{1|}}}}}{{#if: {{{name|}}}|{{!}}{{{name|}}}]]|]]}}]]</div></div></includeonly><noinclude>{{Doc}}</noinclude>
ElEditors
91,136

edits