Template:Face: Difference between revisions

From Elwiki
(Created page with "<includeonly>{{#arraydefine: coords | {{#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 |...")
 
(Replaced content with "<includeonly>{{#invoke:Face|main}}</includeonly><noinclude> {{Doc}}</noinclude>")
Tag: Replaced
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#arraydefine: coords |
<includeonly>{{#invoke:Face|main}}</includeonly><noinclude>
{{#switch:{{{2|}}}
{{Doc}}</noinclude>
|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
|1x4=2, 4
|2x4=3, 4
|4t=4, 4
|3x4=1, 5
}}
}}
<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></includeonly><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: