|
|
Line 1: |
Line 1: |
| <includeonly>{{#arraydefine: coords | | | <includeonly>{{#invoke:Face|main}}</includeonly><noinclude> |
| {{#switch:{{{2|}}}
| |
| |base|#default=1, 1
| |
| |1x1=2, 1
| |
| |2x1=3, 1
| |
| |3x1=4, 1
| |
| |1x2=1, 2
| |
| |2x2=2, 2
| |
| |3x2=3, 2
| |
| |1t=4, 2
| |
| |2t=1, 3
| |
| |3t=2, 3
| |
| |1x3=3, 3
| |
| |2x3=4, 3
| |
| |3x3=1, 4
| |
| |4x1=2, 4
| |
| |4x2=3, 4
| |
| |4t=4, 4
| |
| |4x3=1, 5
| |
| }}
| |
| }}{{#ifeq:{{{1|}}}|Lithia|
| |
| {{#arraydefine: coords |
| |
| {{#switch:{{{2|}}}
| |
| |base|#default=1, 1
| |
| |1x1=2, 1
| |
| |1x2=3, 1
| |
| |1t=4, 1
| |
| |1x3=1, 2
| |
| | |
| |2x1=2, 2
| |
| |2x2=3, 2
| |
| |2t=4, 2
| |
| |2x3=1, 3
| |
| | |
| |3x1=2, 3
| |
| |3x2=3, 3
| |
| |3t=4, 3
| |
| |3x3=1, 4
| |
| | |
| |4x1=2, 4
| |
| |4x2=3, 4
| |
| |4t=4, 4
| |
| |4x3=1, 5
| |
| | |
| }}
| |
| }}
| |
| }}{{#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-wrap" style="position: absolute;
| |
| | |
| left: -{{#expr: ((( {{#arrayindex:coords|0}} -1)*118)+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}}}{{#var:lang}}|{{{link|}}}{{#var:lang}}}}}}]]</div>
| |
| </div></includeonly><noinclude>
| |
| {{Doc}}</noinclude> | | {{Doc}}</noinclude> |
Latest revision as of 00:54, 29 January 2024
Information:
If you want to test this template, please use Sandbox.
This documentation is transcluded from Template:Face/doc.
Examples
Code
{{Face|char_name|path_noxjob_no}}
Transcendence:
{{Face|char_name|path_not}}
Other
The size can also be altered (values between 0 and 1):
{{Face|Rose|scale=0.45}}
Output: