Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
imported>Wekhter
mNo edit summary
imported>Wekhter
mNo edit summary
Line 39: Line 39:
   |Card={{PAGENAME}} Card
   |Card={{PAGENAME}} Card
}}<!--
}}<!--
--><div class="Infobox">
-->{| class="Infobox"
<div class="Header">{{PAGENAME}}</div>
|-
<div class="HeaderImage">[[file:{{PAGENAME}} Walking.gif]]</div>
! colspan="2" class="Header" | {{PAGENAME}}
<div class="SubHeader">Stats</div>
|-
<dl>
| colspan="2" class="HeaderImage" | [[file:{{PAGENAME}} Walking.gif]]
<dt>Attack</dt>
|-
<dd>{{{attack}}}</dd>
! colspan="2" class="SubHeader" | Stats
<dt>Health</dt>
|-
<dd>{{{health}}}</dd>
! Attack
<dt>Speed</dt>
| {{{attack}}}
<dd>{{{speed}}}</dd>
|-
<dt>Experience</dt>
! Health
<dd>{{{exp}}}</dd>
| {{{health}}}
</dl>
|-
<div class="SubHeader">Fighting</div>
! Speed
<dl>
| {{{speed}}}
|-
! Experience
| {{{exp}}}
|-
! colspan="2" class="SubHeader" | Fighting
|-
{{#if: {{{defence|}}} |
{{#if: {{{defence|}}} |
<dt>Accuracy 5%</dt>
! Accuracy 5%
<dd>{{#expr: ceil({{{defence}}}*0.5)}}</dd>
{{!}} {{#expr: ceil({{{defence}}}*0.5)}} }}
}}
|-
{{#if: {{{defence|}}} |
{{#if: {{{defence|}}} |
<dt>Accuracy 100%</dt>
! Accuracy 100%
<dd>{{#expr: ceil({{{defence}}}*1.5)}}</dd>
{{!}} {{#expr: ceil({{{defence}}}*1.5)}} }}
}}
|-
<dt>Defence for 0</dt>
! Defence for 0
<dd>{{{defence0}}}</dd>
| {{{defence0}}}
</dl>
|-
<div class="SubHeader">Misc</div>
! colspan="2" class="SubHeader" | Misc
<dl>
|-
{{#if: {{{type|}}} |
{{#if: {{{type|}}} |
<dt>Type</dt>
!Type
<dd>{{{type}}}</dd>
{{!}} {{{type}}}
}}
}}
<dt>Respawn</dt>
|-
<dd>{{{respawn}}}</dd>
! Respawn
<dt>World</dt>
| {{{respawn}}}
<dd>{{{world}}}</dd>
|-
<dt>Area</dt>
! World
<dd>{{#invoke:Loops|parseLoop
| {{{world}}}
|-
!Area
|{{#invoke:Loops|parseLoop
|list1={{{area|}}}
|list1={{{area|}}}
|replaceString=[[Worlds#(1)|(1)]]
|replaceString=[[Worlds#(1)|(1)]]
|delimiter=,
|delimiter=,
|returnDelimiter=, 
|returnDelimiter=, 
}}{{#if: {{{customarea|}}} | {{#if:{{{area|}}}|<br>}}{{{customarea}}}}}</dd>
}}{{#if: {{{customarea|}}} | {{#if:{{{area|}}}|<br>}}{{{customarea}}}}}
</dl>
|-
{{#if: {{{crystalname|}}} |
{{#if: {{{crystalname|}}} |
<div class="SubHeader">[[{{{crystalname}}}]]</div>
! colspan="2" class="SubHeader" {{!}} [[{{{crystalname}}}]]
{|
|-
{{infoEnemy/crystalstats | attack={{{attack}}} | health={{{health}}} | defence={{{defence}}} | exp={{{exp}}}}}
{{infoEnemy/crystalstats | attack={{{attack}}} | health={{{health}}} | defence={{{defence}}} | exp={{{exp}}}}}
|}
}}
}}
|-
{{#ifeq: {{{hascard}}} | Yes | {{#cargo_query:tables=Cards
{{#ifeq: {{{hascard}}} | Yes | {{#cargo_query:tables=Cards
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
Line 109: Line 116:
|allowcachedresults=true
|allowcachedresults=true
}}--> }}
}}--> }}
</div>
|}
{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}
{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}
{{{notes|}}}
{{{notes|}}}

Revision as of 19:13, 17 December 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=example (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 (e.g. Crystal Carrot for blunder hills)
|hascard=yes
|prevenemy=example (previous monster for navigation)
|nextenemy=example (next monster for navigation)
|notes=example (optional)
}}