Template:InfoEnemy: Difference between revisions
From IdleOn MMO Wiki
No edit summary Tag: Manual revert |
Kiokurashi (talk | contribs) mNo edit summary |
||
Line 39: | Line 39: | ||
|Card={{PAGENAME}} Card | |Card={{PAGENAME}} Card | ||
}}<!-- | }}<!-- | ||
-->< | --><infobox> | ||
< | <title source="title"> | ||
< | <default>{{PAGENAME}}</default> | ||
< | </title> | ||
< | <panel> | ||
< | <section> | ||
< | <image> | ||
< | <default> | ||
< | {{#tag:gallery| | ||
< | {{#if:{{{idleonly|}}}|{{PAGENAME}}} Idle.gif{{!}}Idle/Walking | ||
|{{PAGENAME}} Idle.gif{{!}}Idle | |||
< | {{PAGENAME}} Walking.gif{{!}}Walking}} | ||
< | {{PAGENAME}} Death.gif{{!}}Death | ||
</ | }} | ||
< | </default> | ||
< | </image> | ||
</section> | |||
< | </panel> | ||
< | <header>Monster Stats</header> | ||
<data source="attack"> | |||
<label>Attack</label> | |||
< | </data> | ||
< | <data source="health"> | ||
<label>Health</label> | |||
< | </data> | ||
< | <data source="speed"> | ||
</ | <label>Speed</label> | ||
< | </data> | ||
< | <data source="exp"> | ||
<label>Experience</label> | |||
< | </data> | ||
< | <header>Fighting Stats</header> | ||
<data source="defence"> | |||
< | <label>Accuracy 5%</label> | ||
< | <format>{{#expr: ceil({{{defence}}}*0.5)}}</format> | ||
< | </data> | ||
< | <data source="defence"> | ||
< | <label>Accuracy 100%</label> | ||
< | <format>{{#expr: ceil({{{defence}}}*1.5)}}</format> | ||
|list1={{{area|}}} | </data> | ||
|replaceString=[[Worlds#(1)|(1)]] | <data source="defence0"> | ||
|delimiter=, | <label>Def for 0</label> | ||
|returnDelimiter=, | </data> | ||
}}{{#if: {{{customarea|}}} | {{#if:{{{area|}}}|<br>}}{{{customarea}}}}}</ | <header>Misc</header> | ||
</ | <data source="type"> | ||
<label>Type</label> | |||
< | </data> | ||
{{ | <data source="respawn"> | ||
<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=, }}{{#if: {{{customarea|}}} | {{#if:{{{area|}}}|<br>}}{{{customarea}}}}}</format> | ||
}} | </data> | ||
<group name="CrystalSection"> | |||
<header>{{{crystalname|}}}</header> | |||
<data source="attack"> | |||
<label>Attack</label> | |||
<format>{{#expr:{{{attack}}}*2.5}}</format> | |||
</data> | |||
<data source="health"> | |||
<label>Health</label> | |||
<format>{{#expr:{{{health}}}*15}}</format> | |||
</data> | |||
<data source="defence"> | |||
<label>Accuracy 5%</label> | |||
<format>{{#expr:{{{defence}}}*0.5*2.5}}</format> | |||
</data> | |||
<data source="defence"> | |||
<label>Accuracy 100%</label> | |||
<format>{{#expr:{{{defence}}}*1.5*2.5}}</format> | |||
</data> | |||
<data source="exp"> | |||
<label>Experience</label> | |||
<format>{{#expr:{{{exp}}}*35}}</format> | |||
</data> | |||
</group> | |||
<group name="CardSection"> | |||
<header>Card Bonus</header> | |||
<data source="hascard"> | |||
<label>Effect</label> | |||
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}</format> | |||
</data> | |||
<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> | |||
</data> | |||
<data source="hascard"> | |||
<label>Category</label> | |||
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:category|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}</format> | |||
</data> | |||
<data source="hascard"> | |||
<label>Dropchance</label> | |||
<format>{{Chancedisplay|{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:dropchance|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}}}</format> | |||
</data> | |||
</group> | |||
</infobox> | |||
<!-- Saving for backup I guess. | <!-- Saving for backup I guess. | ||
{{#dpl: | {{#dpl: |
Revision as of 22:03, 1 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) }}