Template:BossIcon: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#arraydefine: data | {{{1|}}}, {{{x|{{{2|}}}}}}, {{{y|{{{3|}}}}}}}}
<includeonly>{{ {{#arraydefine: data | {{{1|}}}, {{{x|{{{2|}}}}}}, {{{y|{{{3|}}}}}}}}
{{#if: {{{name|}}}|
{{#if: {{{name|}}}|
{{#arraydefine: data |
{{#arraydefine: data |
Line 16: Line 16:
}}
}}
}}
}}
}}
}}trim2}}
<div class="boss-image boss-sprite-{{#switch:{{#arrayindex:data|0}}|1|#default=1|2=2|3=3}}" style="height: 18px; width: 67px;
<div class="boss-image boss-sprite-{{#switch:{{#arrayindex:data|0}}|1|#default=1|2=2|3=3}}" style="height: 18px; width: 67px;
{{#switch: {{#arrayindex:data|0}}
{{#switch: {{#arrayindex:data|0}}

Revision as of 19:11, 8 May 2022

Information: If you want to test this template, please use Sandbox.
This documentation is transcluded from Template:BossIcon/doc.

Preview

Code & Parameters

{{BossIcon|map_no|x|y}}
  • map_no - always first, a number that determines whether to use the first map, second map or the third map.
  • x - number of the icon (horizontal), count from left to right, from 1, for example William's number in the first map is 1.
  • y - number of the icon (vertical), for example Chloe's number in the first map is 3.
  • name - (optional) call a preset for a specific boss. Overwrites other parameters. The list can be found in the template's source code.