Information: If you want to test this template, please use Sandbox.
This documentation is transcluded from Template:BossIcon/doc.
Template:BossIcon: Difference between revisions
From Elwiki
No edit summary |
IceSoulMOG (talk | contribs) No edit summary Tag: Manual revert |
||
(24 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="boss-image boss-sprite-{{#switch:{{ | <includeonly>{{ | ||
{{#switch: {{ | {{#arraydefine: data | {{{1|}}}, {{{x|{{{2|}}}}}}, {{{y|{{{3|}}}}}}}} | ||
{{#if: {{{name|}}}| | |||
{{#arraydefine: data | | |||
{{#switch:{{{name|}}} | |||
|KarisTrue=1, 6, 12 | |||
|Helputt|HamelSD=1, 6, 13 | |||
|Karis=1, 6, 11 | |||
|Herbaon=2, 2, 2 | |||
|Maya=2, 1, 21 | |||
|ChaosLeviathan=2, 4, 10 | |||
|Obezaar=2, 5, 25 | |||
|Ifritan=2, 1, 8 | |||
|AncientBoneDragon|BethmaSD=1, 4, 8 | |||
|JinIn|Jin=2, 1, 6 | |||
|DarkAgate=2, 5, 6 | |||
|Ran=1, 5, 7 | |||
|DryadKenta=1, 3, 16 | |||
|BertheFeita=1, 4, 3 | |||
|Chloe|HamelMini=1, 4, 6 | |||
|Karu=1, 5, 12 | |||
|Magmanta=1, 5, 5 | |||
|Joaquin|VelderSD=1, 5, 8 | |||
|Waldo=1, 5, 9 | |||
|Trockta=1, 5, 11 | |||
|Erilot|SanderMini=1, 5, 22 | |||
|Alterasia|AlteraSD=1, 3, 13 | |||
|Sdeing=1, 3, 18 | |||
|ShadowMaster=1, 6, 3 | |||
|Ignia=2, 1, 2 | |||
|In=2, 1, 7 | |||
|Scar=2, 1, 9 | |||
|EnragedManifestation|SanderSD=2, 1, 11 | |||
|Dekal=2, 1, 13 | |||
|MutatedDemonicEnergy|LanoxSD=2, 1, 22 | |||
|HernaOrb=2, 1, 24 | |||
|HernaShield=2, 1, 25 | |||
|DekalMiniboss=2, 2, 1 | |||
|ElsAspiration=2, 3, 24 | |||
|SkinSplitter=2, 3, 25 | |||
|Hennon=2, 4, 6 | |||
|SentinelGuardians=2, 4, 14 | |||
|#default=1, 1, 1 | |||
}} | |||
}} | |||
}}trim2}} | |||
<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}} | |||
|1|#default= | |1|#default= | ||
background-position: -{{#expr: ({{ | background-position: -{{#expr: (({{#arrayindex:data|1}}-1)*77)+1 }}px -{{#expr: (({{#arrayindex:data|2}}-1)*23) }}px" | ||
|2= | |2|3= | ||
background-position: -{{#expr: ({{ | background-position: -{{#expr: (({{#arrayindex:data|1}}-1)*70)+4 }}px -{{#expr: (({{#arrayindex:data|2}}-1)*20)+2 }}px" | ||
}} | }} | ||
></div> | ></div> | ||
</includeonly><noinclude>{{Doc}}</noinclude> | </includeonly><noinclude>{{Doc}}</noinclude> |
Latest revision as of 08:04, 4 July 2024
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.