Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
 
(51 intermediate revisions by 4 users not shown)
Line 16: Line 16:
   |RespawnTime=String
   |RespawnTime=String
   |Defence0=String
   |Defence0=String
  |CrystalEnemy=String
  |Card=Page
}}</noinclude><!--
}}</noinclude><!--


### Cargo Store ###
### Cargo Store ###
--><includeonly>
--><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}} Walking.gif
   |Image={{PAGENAME}} Idle.gif
   |Attack={{{attack|}}}
   |Attack={{{attack|}}}
   |Accuracy5={{#iferror: {{#expr: ceil({{{defence|}}}*0.5)}} }}
   |Accuracy5={{#iferror: {{#expr: ceil({{{defence|}}}*0.5)}} }}
Line 35: Line 33:
   |EXP={{{exp|}}}
   |EXP={{{exp|}}}
   |RespawnTime={{{respawn|}}}
   |RespawnTime={{{respawn|}}}
   |Defence0={{{defence0|}}}
   |Defence0={{#var:NDef0|{{{defence0|1}}}}}
  |CrystalEnemy={{{crystalname|None}}}
}}}}<!--
  |Card={{PAGENAME}} Card
}}<!--
--><infobox>
--><infobox>
<title source="title">
<title>
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
</title>
</title>
Line 48: Line 44:
                 <default>
                 <default>
                     {{#tag:gallery|
                     {{#tag:gallery|
                       {{#if:{{{idleonly|}}}|{{PAGENAME}}} Idle.gif{{!}}Idle/Walking
                       {{#if:{{{idleonly|}}}|{{PAGENAME}} Idle.gif{{!}}Idle/Walking
                       |{{PAGENAME}} Idle.gif{{!}}Idle
                       |{{PAGENAME}} Idle.gif{{!}}Idle
                       {{PAGENAME}} Walking.gif{{!}}Walking}}
                       {{PAGENAME}} Walking.gif{{!}}Walking}}
Line 57: Line 53:
         </section>
         </section>
     </panel>
     </panel>
     <header>Monster Stats</header>
     <header>Information</header>
<data source="attack">
    <panel>
<label>Attack</label>
        <section>
</data>
<label>Monster Stats</label>
<data source="health">
<group row-items="2">
<label>Health</label>
<data source="attack">
</data>
<label>{{Icons|Attack Icon|17|text=Attack}}</label>
<data source="speed">
                    <format>{{#ifeq:{{{attack|}}}|Variable|Variable|{{Numdisplay|{{{attack}}}}}}}</format>
<label>Speed</label>
</data>
</data>
<data source="health">
<data source="exp">
<label>{{Icons|HP Icon|18|text=Health}}</label>
<label>Experience</label>
<format>{{#ifeq:{{{health|}}}|Variable|Variable|{{Numdisplay|{{{health}}}}}}}</format>
</data>
</data>
    <header>Fighting Stats</header>
<data source="defence">
<data source="defence">
<label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label>
<label>Accuracy 5%</label>
<format>{{#ifeq:{{{defence|}}}|Variable|Variable|{{Numdisplay|{{#expr: ceil({{{defence}}}*0.5)}}}}}}</format>
        <format>{{#expr: ceil({{{defence}}}*0.5)}}</format>
</data>
</data>
<data source="defence">
<data source="defence">
<label>100% Accuracy</label>
<label>Accuracy 100%</label>
<format>{{#ifeq:{{{defence|}}}|Variable|Variable|{{Numdisplay|{{#expr: ceil({{{defence}}}*1.5)}}}}}}</format>
        <format>{{#expr: ceil({{{defence}}}*1.5)}}</format>
</data>
</data>
<data source="exp">
<data source="defence0">
<label>Experience</label>
<label>Def for 0</label>
<format>{{#ifeq:{{{exp|}}}|Variable|Variable|{{Numdisplay|{{{exp}}}}}}}</format>
</data>
</data>
    <header>Misc</header>
<data source="Ndefence0">
<data source="type">
<label>Def for 0</label>
<label>Type</label>
                    <default>{{#ifeq:{{{attack|}}}|Variable|Variable|{{#invoke:NumberFormater|main|{{#var:NDef0}}|formattype=tooltip}}}}</default>
</data>
</data>
    <data source="respawn">
<data source="respawn" layout="default">
<label>Respawn</label>
<label>Respawn</label>
</data>
                    <format>{{{respawn}}}</format>
    <data source="world">
</data>
<label>World</label>
<data source="type" layout="default">
</data>
<label>Type</label>
    <data source="area">
                    <format>{{{type}}} Monster[[Category:{{{type}}} Enemy]]</format>
<label>Area</label>
                </data>
        <format>{{#invoke:Loops|parseLoop|list1={{{area|}}}|replaceString=[[Worlds#(1)|(1)]]|delimiter=,|returnDelimiter=, }}<!--[[Worlds#{{{area|}}}|{{{area|}}}]]-->
<!--<data source="speed" layout="default">
        </format>
<label>Speed</label>
</data>
</data>-->
    <data source="customarea">
</group>
<label>Area</label>
</section>
</data>
<section>
    <group name="CrystalSection">
<label>Crystal Stats</label>
        <header>{{{crystalname|}}}</header>
<group name="CrystalSection" row-items="2">
        <data source="crystalname">
<data source="crystalname">
            <label>Attack</label>
<label>{{Icons|Attack Icon|17|text=Attack}}</label>
            <format>{{#expr:{{{attack}}}*2.5}}</format>
<format>{{Numdisplay|{{#expr:{{{attack}}}*2.5}}}}</format>
        </data>
</data>
        <data source="crystalname">
<data source="crystalname">
            <label>Health</label>
<label>{{Icons|HP Icon|18|text=Health}}</label>
            <format>{{#expr:{{{health}}}*15}}</format>
<format>{{Numdisplay|{{#expr:{{{health}}}*15}}}}</format>
        </data>
</data>
        <data source="crystalname">
<data source="crystalname">
            <label>Accuracy 5%</label>
<label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label>
            <format>{{#expr:{{{defence}}}*0.5*2.5}}</format>
<format>{{Numdisplay|{{#expr:{{{defence}}}*0.5*2.5}}}}</format>
        </data>
</data>
        <data source="crystalname">
<data source="crystalname">
            <label>Accuracy 100%</label>
<label>100% Accuracy</label>
            <format>{{#expr:{{{defence}}}*1.5*2.5}}</format>
<format>{{Numdisplay|{{#expr:{{{defence}}}*1.5*2.5}}}}</format>
        </data>
</data>
        <data source="crystalname">
<data source="crystalname">
            <label>Experience</label>
<label>Experience</label>
            <format>{{#expr:{{{exp}}}*35}}</format>
<format>{{Numdisplay|{{#expr:{{{exp}}}*30}}}}</format>
        </data>
</data>
    </group>
<data source="crystalname">
<label>Def for 0</label>
                    <format>{{#invoke:NumberFormater|main|{{#var:CDef0}}|formattype=tooltip}}</format>
</data>
<data source="crystalname" layout="default">
<label>Name</label>
<format>[[{{{crystalname}}}]]</format>
</data>
</group>
</section>
</panel>
     <group name="CardSection">
     <group name="CardSection">
         <header>Card Bonus</header>
         <header>Card Info</header>
        <data source="hascard">
<label>Card</label>
<format>{{CraftReq|{{PAGENAME}} Card|24px}}</format>
</data>
<data source="hascard">
<data source="hascard">
<label>Effect</label>
<label>Effect</label>
Line 130: Line 140:
</data>
</data>
<data source="hascard">
<data source="hascard">
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:bonus:bonus:bonus:bonus:bonus|title={{PAGENAME}} Card|count=1|mode = userformat|table = class="pi-horizontal-group",-, Base, [[File:Star1.png|class=CardStar|link=]], [[File:Star2.png|class=CardStar|link=]], [[File:Star3.png|class=CardStar|link=]], [[File:Star4.png|class=CardStar|link=]]|tablerow=%%, <!-- Star1 -->²{#expr:%% * 2}², <!-- Star2 -->²{#expr:%% * 3}², <!-- Star3 -->²{#expr:%% * 4}², <!-- Star4 -->²{#expr:%% * 5}²}}</format>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:bonus:bonus:bonus:bonus:bonus:bonus|title={{PAGENAME}} Card|count=1|mode = userformat|table = class="pi-horizontal-group",-, [[File:Star0.png|class=CardStar|link=]], [[File:Star1.png|class=CardStar|link=]], [[File:Star2.png|class=CardStar|link=]], [[File:Star3.png|class=CardStar|link=]], [[File:Star4.png|class=CardStar|link=]], [[File:Star5.png|class=CardStar|link=]]|tablerow=%%, <!-- Star1 -->²{#expr:%% * 2}², <!-- Star2 -->²{#expr:%% * 3}², <!-- Star3 -->²{#expr:%% * 4}², <!-- Star4 -->²{#expr:%% * 5}², <!-- Star5 -->²{#expr:%% * 6}²}}</format>
</data>
</data>
<data source="hascard">
<data source="hascard">
Line 141: Line 151:
</data>
</data>
     </group>
     </group>
    <header>Location</header>
    <data source="world">
<label>World</label>
</data>
    <data source="area">
<label>Area</label>
<format>{{Areas|{{{area|}}}}}
        </format>
</data>
    <data source="customarea">
<label>Area</label>
</data>
</infobox>
</infobox>
<!--  Saving for backup I guess.
<!--  Saving for backup I guess.
Line 152: Line 174:
|allowcachedresults=true
|allowcachedresults=true
}}-->
}}-->
{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}
{{#invoke:EnemyNav|BuildNav|Type={{{type|Normal}}}|Enemy={{PAGENAME}}}}
{{{notes|}}}
{{{notes|}}}
{{#seo:
{{#seo:
|image={{PAGENAME}}_Walking.gif
|image={{PAGENAME}}_Idle.gif
|description=Attack: {{{attack}}}
|description=Attack: {{{attack}}}
Health: {{{health}}}
Health: {{{health}}}
Line 162: Line 184:
Respawn: {{{respawn}}}
Respawn: {{{respawn}}}
World: {{{world}}}
World: {{{world}}}
}}
}}[[Category:Enemies]]</includeonly><noinclude><pre>
[[Category:Enemies]]</includeonly><noinclude><pre>
Usage:
Usage:
{{InfoEnemy
{{InfoEnemy
|attack=example
|attack=example
|health=example
|health=example
|speed=example
|defence=example (this defines the accuracy values required)
|defence=example (this defines the accuracy values required)
|defence0=example (How much defence is needed to not take damage)
|exp=example
|exp=example
|world=example
|world=example
|area=example
|area=example1, example2
|area2=example (optional)
|customarea={{Area|area1}}, Special Area
|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)
|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)
|notes=example (optional)
}}
}}
</pre>
</pre>[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]
</noinclude>
 
[[Category:Enemies]]

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