Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 40: Line 40:
}}<!--
}}<!--
--><infobox>
--><infobox>
<title source="title">
<title>
<default>{{PAGENAME}}</default>
<default>{{PAGENAME}}</default>
</title>
</title>
Line 57: Line 57:
         </section>
         </section>
     </panel>
     </panel>
     <header>Monster Stats</header>
     <header>({{{type|}}} Monster Stats</header>
<data source="attack">
<data source="attack">
<label>Attack</label>
<label>Attack</label>
Line 72: Line 72:
     <header>Fighting Stats</header>
     <header>Fighting Stats</header>
<data source="defence">
<data source="defence">
<label>Accuracy 5%</label>
<label>5% Accuracy</label>
         <format>{{#expr: ceil({{{defence}}}*0.5)}}</format>
         <format>{{#expr: ceil({{{defence}}}*0.5)}}</format>
</data>
</data>
<data source="defence">
<data source="defence">
<label>Accuracy 100%</label>
<label>100% Accuracy</label>
         <format>{{#expr: ceil({{{defence}}}*1.5)}}</format>
         <format>{{#expr: ceil({{{defence}}}*1.5)}}</format>
</data>
</data>
Line 82: Line 82:
<label>Def for 0</label>
<label>Def for 0</label>
</data>
</data>
    <header>Misc</header>
    <data source="respawn">
<data source="type">
<label>Type</label>
</data>
    <data source="respawn">
<label>Respawn</label>
<label>Respawn</label>
</data>
    <data source="world">
<label>World</label>
</data>
    <data source="area">
<label>Area</label>
        <format>{{#invoke:Loops|parseLoop|list1={{{area|}}}|replaceString=[[Worlds#(1)|(1)]]|delimiter=,|returnDelimiter=, }}<!--[[Worlds#{{{area|}}}|{{{area|}}}]]-->
        </format>
</data>
    <data source="customarea">
<label>Area</label>
</data>
</data>
     <group name="CrystalSection">
     <group name="CrystalSection">
         <header>{{{crystalname|}}}</header>
         <header>{{{crystalname|}}} Stats</header>
         <data source="crystalname">
         <data source="crystalname">
             <label>Attack</label>
             <label>Attack</label>
Line 124: Line 109:
     </group>
     </group>
     <group name="CardSection">
     <group name="CardSection">
         <header>Card Bonus</header>
         <header>Card Info</header>
        <data source="hascard">
<label>Card</label>
<format>[[File:{{PAGENAME}} Card.png|24px]] [[{{PAGENAME}} Card]]</format>
</data>
<data source="hascard">
<data source="hascard">
<label>Effect</label>
<label>Effect</label>
Line 141: Line 130:
</data>
</data>
     </group>
     </group>
    <header>Location</header>
    <data source="world">
<label>World</label>
</data>
    <data source="area">
<label>Area</label>
        <format>{{#invoke:Loops|parseLoop|list1={{{area|}}}|replaceString=[[Worlds#(1)|(1)]]|delimiter=,|returnDelimiter=, }}<!--[[Worlds#{{{area|}}}|{{{area|}}}]]-->
        </format>
</data>
    <data source="customarea">
<label>Area</label>
</data>
</infobox>
</infobox>
<!--  Saving for backup I guess.
<!--  Saving for backup I guess.

Revision as of 17:11, 8 February 2023

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