Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
imported>Blackwolfe
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="infobox">
{| class="Infobox"
<table><th class="header">{{{title|{{PAGENAME}}}}}</th></table>
|-
<div class="infobox-image">[[File:{{PAGENAME}} Walking.gif]]</div>
! colspan="2" class="Header" | {{PAGENAME}}
<div style="font-size: 80%; font-style: italic; text-align: center;">{{{caption|}}}</div>
|-
<table>
| colspan="2" class="HeaderImage" | [[file:{{PAGENAME}} Walking.gif]]
    <th class="subheader" colspan="2">Stats</th>
|-
    </tr>
! colspan="2" class="SubHeader" |Stats
    <th>Attack</th>
|-
    <td>{{{attack}}}</td>
!Attack
    </tr>
|{{{attack}}}
    <th>Health</th>
|-
    <td>{{{health}}}</td>
!Health
    </tr>
|{{{health}}}
    <th>Move Speed</th>
|-
    <td>{{{speed}}}</td>
!Speed
    </tr>
|{{{speed}}}
    <th class="subheader" colspan="2">Fighting</th>
|-
    </tr>
! colspan="2" class="SubHeader" |Fighting
    {{#if: {{{defence|}}}|<th>Accuracy 5%</th>
|-
    <td>{{#expr:{{{defence}}}*0.5}}</td>
{{#if: {{{defence|}}}|
    </tr>}}
!Accuracy 5%
    {{#if: {{{defence|}}}|<th>Accuracy 100%</th>
{{!}}{{#expr:{{{defence}}}*0.5}}}}
    <td>{{#expr:{{{defence}}}*1.5}}</td>
|-
    </tr>}}
!{{#if: {{{defence|}}}|
    <th>Defence for 0</th>
!Accuracy 100%
    <td>{{{defence0}}}</td>
{{!}}{{#expr:{{{defence}}}*1.5}}}}
    </tr>
|-
    </tr>
!Defence for 0
    <th class="subheader" colspan="2">Misc</th>
|{{{defence0}}}
    </tr>
|-
    {{#if:{{{type|}}}|<th>Type</th>
! colspan="2" class="SubHeader" |Misc
    <td>{{{type}}}</td>
|-
    </tr>||}}
{{#if: {{{type|}}}{{!}}!Type
    <th>Experience</th>
{{!}}{{{type}}}{{!}}
    <td>{{{exp}}}</td>
{{!}}-}}
    </tr>
!Respawn
    <th>Respawn Time</th>
|{{{respawn}}}
    <td>{{{respawn}}}</td>
|-
    </tr>
!World
    <th class="subheader" colspan="2">Location</th>
|{{{world}}}
    </tr>
|-
    <th>World</th>
!Area
    <td>{{{world}}}</td>
|{{#if: {{{area|}}}|[[Worlds#{{{area}}}|{{{area}}}]]}}{{#if: {{{area2|}}}|, [[Worlds#{{{area2}}}|{{{area2}}}]]}}{{#if: {{{area3|}}}|, [[Worlds#{{{area3}}}|{{{area3}}}]]}}{{#if: {{{customarea|}}}|{{#if:{{{area|}}}|<br>}}{{{customarea}}}}}
    </tr>
|-
    <th style="border-radius: 0 0 0 0.4em">Area</th>
{{#ifeq: {{{crystal}}}|yes|
    <td>{{#if: {{{area|}}}|[[Worlds#{{{area}}}|{{{area}}}]]}}{{#if: {{{area2|}}}|, [[Worlds#{{{area2}}}|{{{area2}}}]]}}{{#if: {{{area3|}}}|, [[Worlds#{{{area3}}}|{{{area3}}}]]}}{{#if: {{{customarea|}}}|{{#if:{{{area|}}}|<br>}}{{{customarea}}}}}</td></tr>
!colspan="2" class="SubHeader"{{!}}[[{{{crystalname}}}]]
    {{#ifeq: {{{crystal}}}|yes|<th class="subheader" colspan="2">[[{{{crystalname}}}]]</th></tr>
{{!}}-
    {{infoEnemy/crystalstats|attack={{{attack}}}|health={{{health}}}|defence={{{defence}}}|exp={{{exp}}}}}
{{infoEnemytest/crystalstats|attack={{{attack}}}|health={{{health}}}|defence={{{defence}}}|exp={{{exp}}}}}
     }}</tr>
     }}
|-
     {{#ifeq: {{{hascard}}}|yes|{{#dpl:  
     {{#ifeq: {{{hascard}}}|yes|{{#dpl:  
|namespace=
|namespace=
|category=Cards
|category=Cards
|uses=Template:InfoCard
|uses=Template:InfoCard
|include={infoCard}/boxrow
|include={infoCard}/boxrowtest
|titlematch={{PAGENAME}} Card
|titlematch={{PAGENAME}} Card
|format=,,
|format=,,
|allowcachedresults=true
|allowcachedresults=true
}}}}
}}}}
</table>
</div>
{{#switch: {{PAGENAME}}
{{#switch: {{PAGENAME}}
|Baba Yaga = [[File:Backarrow.png|15px]][[Bosses]]  
|Baba Yaga = [[File:Backarrow.png|15px]][[Bosses]]  

Revision as of 01:46, 15 March 2021


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
}}