Anonymous

Template:Face: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 19: Line 19:
|4x3=1, 5
|4x3=1, 5
}}
}}
}}{{#vardefine: scale | {{#if:{{{scale|}}}|{{{scale|}}}|1}} }}
}}{{#vardefine: scale | {{#if:{{{scale|}}}|{{{scale|}}}|1}} }}{{#vardefine:lang|{{#if:{{{lang|}}}|/{{{lang|}}}}}}}
<div class="image-cropped" style="width: {{#expr:108*{{#var:scale}}}}px; height: {{#expr:61*{{#var:scale}}}}px; position: relative; overflow: hidden; display: inline-block;">
<div class="image-cropped" style="width: {{#expr:108*{{#var:scale}}}}px; height: {{#expr:61*{{#var:scale}}}}px; position: relative; overflow: hidden; display: inline-block;">
<div class="image-wrap" style="position: absolute;
<div class="image-wrap" style="position: absolute;
Line 26: Line 26:
top: -{{#expr: ((( {{#arrayindex:coords|1}} -1)*62)+1)*{{#var:scale}} }}px;"
top: -{{#expr: ((( {{#arrayindex:coords|1}} -1)*62)+1)*{{#var:scale}} }}px;"


">{{#vardefine:size|{{#expr:512*{{#var:scale}}}}}}[[File:Face - {{{1|Elsword}}}.png|{{#var:size}}px|{{#if:{{{link|}}}|link={{#ifeq:{{{link|}}}|base|{{{1|Elsword}}}|{{{link|}}}}}}}]]</div>
">{{#vardefine:size|{{#expr:512*{{#var:scale}}}}}}[[File:Face - {{{1|Elsword}}}.png|{{#var:size}}px|{{#if:{{{link|}}}|link={{#ifeq:{{{link|}}}|base|{{{1|Elsword}}}{{#var:lang}}|{{{link|}}}{{#var:lang}}}}}}]]</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{Doc}}</noinclude>
{{Doc}}</noinclude>