Template:BossIcon/doc: Difference between revisions

From Elwiki
No edit summary
Line 3: Line 3:
== Code & Parameters ==
== Code & Parameters ==
<pre><nowiki>{{BossIcon|map_no|x|y}}</nowiki></pre>
<pre><nowiki>{{BossIcon|map_no|x|y}}</nowiki></pre>
*<code>map_no</code> - always first, determines whether to use the [https://elwiki.net/w/File:Sprite_-_Boss_Icon_1.png first map] or the [https://elwiki.net/w/File:Sprite_-_Boss_Icon_2.png second map].
*<code>map_no</code> (number value) - always first, determines whether to use the [https://elwiki.net/w/File:Sprite_-_Boss_Icon_1.png first map], [https://elwiki.net/w/File:Sprite_-_Boss_Icon_2.png second map] or the [https://elwiki.net/w/File:Sprite_-_Boss_Icon_3.png third map].
*<code>x</code> - number of the icon (horizontal), count from left to right, from 1, for example [[William]]'s number in the first map is 1.
*<code>x</code> - number of the icon (horizontal), count from left to right, from 1, for example [[William]]'s number in the first map is 1.
*<code>y</code> - number of the icon (vertical), for example [[Chloe]]'s number in the first map is 3.
*<code>y</code> - number of the icon (vertical), for example [[Chloe]]'s number in the first map is 3.

Revision as of 15:53, 8 May 2022

Preview

Code & Parameters

{{BossIcon|map_no|x|y}}
  • map_no (number value) - always first, 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.

Issues

  • Currently, the first map is customized so that it is somehow manageable by the script (the original map is messy). Due to this, some icons may still be offset by 1 or 2 pixels at times.