Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
imported>Dgg
m (Cleaned up redundant table markings, added spacing for syntax clarification)
Line 6: Line 6:
| colspan="2" class="HeaderImage" | [[file:{{PAGENAME}} Walking.gif]]
| colspan="2" class="HeaderImage" | [[file:{{PAGENAME}} Walking.gif]]
|-
|-
! colspan="2" class="SubHeader" |Stats
! colspan="2" class="SubHeader" | Stats
|-
|-
!Attack
! Attack
|{{{attack}}}
| {{{attack}}}
|-
|-
!Health
! Health
|{{{health}}}
| {{{health}}}
|-
|-
!Speed
! Speed
|{{{speed}}}
| {{{speed}}}
|-
|-
! colspan="2" class="SubHeader" |Fighting
! colspan="2" class="SubHeader" | Fighting
|-
|-
{{#if: {{{defence|}}}|
{{#if: {{{defence|}}} |
!Accuracy 5%
! Accuracy 5%
{{!}}{{#expr:{{{defence}}}*0.5}}}}
{{!}} {{#expr: {{{defence}}}*0.5}} }}
|-
|-
!{{#if: {{{defence|}}}|
{{#if: {{{defence|}}} |
!Accuracy 100%
! Accuracy 100%
{{!}}{{#expr:{{{defence}}}*1.5}}}}
{{!}} {{#expr: {{{defence}}}*1.5}} }}
|-
|-
!Defence for 0
! Defence for 0
|{{{defence0}}}
| {{{defence0}}}
|-
|-
! colspan="2" class="SubHeader" |Misc
! colspan="2" class="SubHeader" | Misc
|-
|-
{{#if: {{{type|}}}{{!}}!Type
{{#if: {{{type|}}} |
{{!}}{{{type}}}{{!}}
!Type
{{!}}-}}
{{!}} {{{type}}}
!Respawn
}}
|{{{respawn}}}
|-
|-
!World
! Respawn
|{{{world}}}
| {{{respawn}}}
|-
! World
| {{{world}}}
|-
|-
!Area
!Area
|{{#if: {{{area|}}}|[[Worlds#{{{area}}}|{{{area}}}]]}}{{#if: {{{area2|}}}|, [[Worlds#{{{area2}}}|{{{area2}}}]]}}{{#if: {{{area3|}}}|, [[Worlds#{{{area3}}}|{{{area3}}}]]}}{{#if: {{{customarea|}}}|{{#if:{{{area|}}}|<br>}}{{{customarea}}}}}
| {{#if: {{{area|}}} | [[Worlds#{{{area}}} | {{{area}}}]] }} {{#if: {{{area2|}}} |, [[Worlds#{{{area2}}} | {{{area2}}} ]] }}
{{#if: {{{area3|}}} |, [[Worlds#{{{area3}}} | {{{area3}}} ]] }} {{#if: {{{customarea|}}} | {{#if:{{{area|}}} | <br>}} {{{customarea}}} }}
|-
|-
{{#ifeq: {{{crystal}}}|yes|
{{#ifeq: {{{crystal}}} | yes |
!colspan="2" class="SubHeader"{{!}}[[{{{crystalname}}}]]
! 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|{{#dpl:  
{{#ifeq: {{{hascard}}}|yes|{{#dpl:  
|namespace=
|namespace=
|category=Cards
|category=Cards

Revision as of 11:40, 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
}}