Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
imported>Wekhter
mNo edit summary
imported>Kiokurashi
No edit summary
Line 87: Line 87:
!Area
!Area
|{{#vardefine:i|0}}
|{{#vardefine:i|0}}
{{#while:
{#invoke:Loops|parseLoop
| {{#if: {{#explode:{{{area|}}}|,|{{#var:i}}}} | true }}
|list1={{{area|}}}
| <nowiki />
|replaceString=[[Worlds#(1)|(1)]],
{{#vardefine:areaE|{{#explode:{{{area|}}}|,|{{#var:i}}}}}}
{{#ifexpr:{{#var:i}}>0|, }}[[Worlds#{{#var:areaE}}|{{#var:areaE}}]]{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}{{#if: {{{customarea|}}} | {{#if:{{{area|}}}|<br>}}{{{customarea}}}}}
}}{{#if: {{{customarea|}}} | {{#if:{{{area|}}}|<br>}}{{{customarea}}}}}
|-
|-

Revision as of 18:11, 28 July 2021

This template defines the table "Enemies". View table.

Usage:
{{InfoEnemy
|attack=example
|health=example
|speed=example
|defence=example (this defines the accuracy values required)
|defence0=How much defence is needed to not take damage.
|exp=example
|world=example
|area=example
|area2=example (optional)
|area3=example (optional)
|crystal=yes (if you want to show the stats for the crystal enemy in the area
|crystalname=example (Crystal Carrot for blunder hills for example)
|hascard=yes
}}