Template:InfoEnemy: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 53: Line 53:
         </section>
         </section>
     </panel>
     </panel>
     <header>{{{type|}}} 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">
        <format>{{Numdisplay|{{{health}}}}}</format>
<label>Attack</label>
</data>
</data>
<data source="speed">
<data source="health">
<label>Speed</label>
<label>Health</label>
</data>
<format>{{Numdisplay|{{{health}}}}}</format>
<data source="exp">
</data>
<label>Experience</label>
<data source="defence">
        <format>{{Numdisplay|{{{exp}}}}}</format>
<label>5% Accuracy</label>
</data>
<format>{{#expr: ceil({{{defence}}}*0.5)}}</format>
    <header>Fighting Stats</header>
</data>
<data source="defence">
<data source="defence">
<label>5% Accuracy</label>
<label>100% Accuracy</label>
        <format>{{#expr: ceil({{{defence}}}*0.5)}}</format>
<format>{{#expr: ceil({{{defence}}}*1.5)}}</format>
</data>
</data>
<data source="defence">
<data source="exp">
<label>100% Accuracy</label>
<label>Experience</label>
        <format>{{#expr: ceil({{{defence}}}*1.5)}}</format>
<format>{{Numdisplay|{{{exp}}}}}</format>
</data>
</data>
<data source="defence0">
<data source="defence0">
<label>Def for 0</label>
<label>Def for 0</label>
</data>
</data>
    <data source="respawn">
<data source="respawn" layout="default">
<label>Respawn</label>
<label>Respawn</label>
</data>
</data>
    <group name="CrystalSection">
<data source="type" layout="default">
        <header>{{{crystalname|}}} Stats</header>
<label>Type</label>           
        <data source="crystalname">
                </data>
            <label>Attack</label>
<!--<data source="speed" layout="default">
            <format>{{#expr:{{{attack}}}*2.5}}</format>
<label>Speed</label>
        </data>
</data>-->
        <data source="crystalname">
</group>
            <label>Health</label>
</section>
            <format>{{Numdisplay|{{#expr:{{{health}}}*15}}}}</format>
<section>
        </data>
<label>Crystal Stats</label>
        <data source="crystalname">
<group name="CrystalSection" row-items="2">
            <label>5% Accuracy</label>
<data source="crystalname">
            <format>{{#expr:{{{defence}}}*0.5*2.5}}</format>
<label>Attack</label>
        </data>
<format>{{#expr:{{{attack}}}*2.5}}</format>
        <data source="crystalname">
</data>
            <label>100% Accuracy</label>
<data source="crystalname">
            <format>{{#expr:{{{defence}}}*1.5*2.5}}</format>
<label>Health</label>
        </data>
<format>{{Numdisplay|{{#expr:{{{health}}}*15}}}}</format>
        <data source="crystalname">
</data>
            <label>Experience</label>
<data source="crystalname">
            <format>{{Numdisplay|{{#expr:{{{exp}}}*30}}}}</format>
<label>5% Accuracy</label>
        </data>
<format>{{#expr:{{{defence}}}*0.5*2.5}}</format>
    </group>
</data>
<data source="crystalname">
<label>100% Accuracy</label>
<format>{{#expr:{{{defence}}}*1.5*2.5}}</format>
</data>
<data source="crystalname">
<label>Experience</label>
<format>{{Numdisplay|{{#expr:{{{exp}}}*30}}}}</format>
</data>
<data source="crystalname" layout="default">
<label>Type</label>
<format>[[{{{crystalname}}}]]</format>
</data>
</group>
</section>
</panel>
     <group name="CardSection">
     <group name="CardSection">
         <header>Card Info</header>
         <header>Card Info</header>
Line 134: Line 149:
     <data source="area">
     <data source="area">
<label>Area</label>
<label>Area</label>
        <format>{{#invoke:Loops|parseLoop|list1={{{area|}}}|replaceString=[[Worlds#(1)|(1)]]|delimiter=,|returnDelimiter=, }}<!--[[Worlds#{{{area|}}}|{{{area|}}}]]-->
<format>{{#invoke:Loops|parseLoop|list1={{{area|}}}|replaceString=[[Worlds#(1)|(1)]]|delimiter=,|returnDelimiter=, }}<!--[[Worlds#{{{area|}}}|{{{area|}}}]]-->
         </format>
         </format>
</data>
</data>
Line 161: Line 176:
Respawn: {{{respawn}}}
Respawn: {{{respawn}}}
World: {{{world}}}
World: {{{world}}}
}}
}}[[Category:Enemies]]</includeonly><noinclude><pre>
[[Category:Enemies]]</includeonly><noinclude><pre>
Usage:
Usage:
{{InfoEnemy
{{InfoEnemy
Line 181: Line 195:
|notes=example (optional)
|notes=example (optional)
}}
}}
</pre>
</pre>[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]
</noinclude>
 
[[Category:Enemies]]

Revision as of 03:02, 2 March 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)
|prevenemy=example (previous monster for navigation)
|nextenemy=example (next monster for navigation)
|notes=example (optional)
}}