Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 19: Line 19:


### Cargo Store ###
### Cargo Store ###
--><includeonly>{{#cargo_query:table=DefenseList|fields=DefenseVal, CrystalDefense|where=AttackVal="{{{attack|1}}}"|format=template|template=DefenseScaling/data|named args=yes}}{{#ifeq:{{#sub:{{PAGENAME}}|0|7}}|Crystal||
--><includeonly>{{#cargo_query:table=DefenseList|fields=DefenseVal, CrystalDefense|where=AttackVal="{{{attack|1}}}"|format=template|template=DefenseScaling/data|named args=yes|default=}}{{#ifeq:{{#sub:{{PAGENAME}}|0|7}}|Crystal||
{{#cargo_store:_table=Enemies
{{#cargo_store:_table=Enemies
   |Image={{PAGENAME}} Idle.gif
   |Image={{PAGENAME}} Idle.gif
Line 84: Line 84:
<data source="respawn" layout="default">
<data source="respawn" layout="default">
<label>Respawn</label>
<label>Respawn</label>
                     <format>{{{respawn}}} sec</format>
                     <format>{{{respawn}}}</format>
</data>
</data>
<data source="type" layout="default">
<data source="type" layout="default">
<label>Type</label>
<label>Type</label>
                     <format>{{{type}}} Monster</format>
                     <format>{{{type}}} Monster[[Category:{{{type}}} Enemy]]</format>
                 </data>
                 </data>
<!--<data source="speed" layout="default">
<!--<data source="speed" layout="default">
Line 157: Line 157:
     <data source="area">
     <data source="area">
<label>Area</label>
<label>Area</label>
<format>{{#invoke:Loops|parseLoop|list1={{{area|}}}|replaceString=[[Worlds#(1)|(1)]]|delimiter=,|returnDelimiter=, }}<!--[[Worlds#{{{area|}}}|{{{area|}}}]]-->
<format>{{Areas|{{{area|}}}}}
         </format>
         </format>
</data>
</data>
Line 174: Line 174:
|allowcachedresults=true
|allowcachedresults=true
}}-->
}}-->
{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}
{{#invoke:EnemyNav|BuildNav|Type={{{type|Normal}}}|Enemy={{PAGENAME}}}}
{{{notes|}}}
{{{notes|}}}
{{#seo:
{{#seo:
Line 192: Line 192:
|exp=example
|exp=example
|world=example
|world=example
|areas=example
|area=example1, example2
|customarea={{Area|area1}}, Special Area
|crystalname=example (e.g. Crystal Carrot for blunder hills)
|crystalname=example (e.g. Crystal Carrot for blunder hills)
|prevenemy=example (previous monster for navigation)
|nextenemy=example (next monster for navigation)
|notes=example (optional)
|notes=example (optional)
}}
}}
</pre>[[Category:Infobox templates]]</noinclude>
</pre>[[Category:Infobox templates]]</noinclude>

Latest revision as of 08:01, 27 July 2024

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

Usage:
{{InfoEnemy
|attack=example
|health=example
|defence=example (this defines the accuracy values required)
|exp=example
|world=example
|area=example1, example2
|customarea={{Area|area1}}, Special Area
|crystalname=example (e.g. Crystal Carrot for blunder hills)
|notes=example (optional)
}}