Template:Face: Difference between revisions

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}} }}
<div class="image-cropped" style="width: 108px; height: 61px; 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;


left: -{{#expr: (( {{#arrayindex:coords|0}} -1)*118)+1 }}px;
left: -{{#expr: ((( {{#arrayindex:coords|0}} -1)*118)+1)*{{#var:scale}} }}px;
top: -{{#expr: (( {{#arrayindex:coords|1}} -1)*62)+1 }}px;"
top: -{{#expr: ((( {{#arrayindex:coords|1}} -1)*62)+1)*{{#var:scale}} }}px;"


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