Template:RitsuTest: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 1: Line 1:
<div class="char-overview-header"><div class="text"></div><div class="image-cropped">[[File:Face - LuCiel.png]]</div></div>
{{#arraydefine: coords |
{{#switch:{{{2|}}}
|base|#default=1, 1
|1x1=1, 2
|1x2=1, 3
|1x3=1, 4
|2x1=2, 1
|2x2=2, 2
|2x3=2, 3
|t1=2, 4
|t2=3, 1
|t3=3, 2
|3x1=3, 3
|3x2=3, 4
|3x3=4, 1
|4x1=4, 2
|4x2=4, 3
|t4=4, 4
|4x3=5, 1
}}
}}
<div class="image-cropped" style="width: 108px; height: 61px; position: relative; overflow: hidden;">
<div class="image-wrap" style="position: absolute;
 
left: -{{#expr: (( {{#arrayindex:coords|0}} -1)*118)+1 }}px;
top: -{{#expr: (( {{#arrayindex:coords|1}} -1)*62)+1 }}px;"
 
">[[File:Face - {{{1|Elsword}}}.png]]</div>
</div>

Revision as of 13:29, 11 May 2022