Template:InfoEnemy: Difference between revisions
From IdleOn MMO Wiki
mNo edit summary |
mNo edit summary |
||
(41 intermediate revisions by 4 users not shown) | |||
Line 19: | Line 19: | ||
### Cargo Store ### | ### Cargo Store ### | ||
--><includeonly>{{#ifeq:{{#sub:{{PAGENAME}}|0|7}}|Crystal|| | --><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}} Idle.gif | |Image={{PAGENAME}} Idle.gif | ||
Line 33: | Line 33: | ||
|EXP={{{exp|}}} | |EXP={{{exp|}}} | ||
|RespawnTime={{{respawn|}}} | |RespawnTime={{{respawn|}}} | ||
|Defence0={{{defence0|}}} | |Defence0={{#var:NDef0|{{{defence0|1}}}}} | ||
}}}}<!-- | }}}}<!-- | ||
--><infobox> | --><infobox> | ||
Line 59: | Line 59: | ||
<group row-items="2"> | <group row-items="2"> | ||
<data source="attack"> | <data source="attack"> | ||
<label>Attack</label> | <label>{{Icons|Attack Icon|17|text=Attack}}</label> | ||
<format>{{#ifeq:{{{attack|}}}|Variable|Variable|{{Numdisplay|{{{attack}}}}}}}</format> | |||
</data> | </data> | ||
<data source="health"> | <data source="health"> | ||
<label>Health</label> | <label>{{Icons|HP Icon|18|text=Health}}</label> | ||
<format>{{Numdisplay|{{{health}}}}}</format> | <format>{{#ifeq:{{{health|}}}|Variable|Variable|{{Numdisplay|{{{health}}}}}}}</format> | ||
</data> | </data> | ||
<data source="defence"> | <data source="defence"> | ||
<label>5% Accuracy</label> | <label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label> | ||
<format>{{#expr: ceil({{{defence}}}*0.5)}}</format> | <format>{{#ifeq:{{{defence|}}}|Variable|Variable|{{Numdisplay|{{#expr: ceil({{{defence}}}*0.5)}}}}}}</format> | ||
</data> | </data> | ||
<data source="defence"> | <data source="defence"> | ||
<label>100% Accuracy</label> | <label>100% Accuracy</label> | ||
<format>{{#expr: ceil({{{defence}}}*1.5)}}</format> | <format>{{#ifeq:{{{defence|}}}|Variable|Variable|{{Numdisplay|{{#expr: ceil({{{defence}}}*1.5)}}}}}}</format> | ||
</data> | </data> | ||
<data source="exp"> | <data source="exp"> | ||
<label>Experience</label> | <label>Experience</label> | ||
<format>{{Numdisplay|{{{exp}}}}}</format> | <format>{{#ifeq:{{{exp|}}}|Variable|Variable|{{Numdisplay|{{{exp}}}}}}}</format> | ||
</data> | </data> | ||
<data source=" | <data source="Ndefence0"> | ||
<label>Def for 0</label> | <label>Def for 0</label> | ||
<default>{{#ifeq:{{{attack|}}}|Variable|Variable|{{#invoke:NumberFormater|main|{{#var:NDef0}}|formattype=tooltip}}}}</default> | |||
</data> | </data> | ||
<data source="respawn" layout="default"> | <data source="respawn" layout="default"> | ||
<label>Respawn</label> | <label>Respawn</label> | ||
<format>{{{respawn}}}</format> | |||
</data> | </data> | ||
<data source="type" layout="default"> | <data source="type" layout="default"> | ||
<label>Type</label> | <label>Type</label> | ||
<format>{{{type}}} Monster[[Category:{{{type}}} Enemy]]</format> | |||
</data> | </data> | ||
<!--<data source="speed" layout="default"> | <!--<data source="speed" layout="default"> | ||
Line 95: | Line 99: | ||
<group name="CrystalSection" row-items="2"> | <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>{{Numdisplay|{{#expr:{{{health}}}*15}}}}</format> | <format>{{Numdisplay|{{#expr:{{{health}}}*15}}}}</format> | ||
</data> | </data> | ||
<data source="crystalname"> | <data source="crystalname"> | ||
<label>5% Accuracy</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>100% Accuracy</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>{{Numdisplay|{{#expr:{{{exp}}}*30}}}}</format> | <format>{{Numdisplay|{{#expr:{{{exp}}}*30}}}}</format> | ||
</data> | |||
<data source="crystalname"> | |||
<label>Def for 0</label> | |||
<format>{{#invoke:NumberFormater|main|{{#var:CDef0}}|formattype=tooltip}}</format> | |||
</data> | </data> | ||
<data source="crystalname" layout="default"> | <data source="crystalname" layout="default"> | ||
<label> | <label>Name</label> | ||
<format>[[{{{crystalname}}}]]</format> | <format>[[{{{crystalname}}}]]</format> | ||
</data> | </data> | ||
Line 125: | Line 133: | ||
<data source="hascard"> | <data source="hascard"> | ||
<label>Card</label> | <label>Card</label> | ||
<format> | <format>{{CraftReq|{{PAGENAME}} Card|24px}}</format> | ||
</data> | </data> | ||
<data source="hascard"> | <data source="hascard"> | ||
Line 132: | 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",-, | <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 149: | Line 157: | ||
<data source="area"> | <data source="area"> | ||
<label>Area</label> | <label>Area</label> | ||
<format>{{ | <format>{{Areas|{{{area|}}}}} | ||
</format> | </format> | ||
</data> | </data> | ||
Line 166: | Line 174: | ||
|allowcachedresults=true | |allowcachedresults=true | ||
}}--> | }}--> | ||
{{# | {{#invoke:EnemyNav|BuildNav|Type={{{type|Normal}}}|Enemy={{PAGENAME}}}} | ||
{{{notes|}}} | {{{notes|}}} | ||
{{#seo: | {{#seo: | ||
|image={{PAGENAME}} | |image={{PAGENAME}}_Idle.gif | ||
|description=Attack: {{{attack}}} | |description=Attack: {{{attack}}} | ||
Health: {{{health}}} | Health: {{{health}}} | ||
Line 181: | Line 189: | ||
|attack=example | |attack=example | ||
|health=example | |health=example | ||
|defence=example (this defines the accuracy values required) | |defence=example (this defines the accuracy values required) | ||
|exp=example | |exp=example | ||
|world=example | |world=example | ||
|area= | |area=example1, example2 | ||
| | |customarea={{Area|area1}}, Special Area | ||
| | |||
|crystalname=example (e.g. Crystal Carrot for blunder hills) | |crystalname=example (e.g. Crystal Carrot for blunder hills) | ||
|notes=example (optional) | |notes=example (optional) | ||
}} | }} | ||
</pre>[[Category:Infobox templates]]</noinclude> | </pre>[[Category:Infobox templates]]</noinclude> |
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) }}