Template:InfoDungeonEnemy: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly><infobox>
<div class="Infobox">
<title source="title">
<div class="Header">{{PAGENAME}}</div>
<default>{{PAGENAME}}</default>
<div class="HeaderImage">[[file:{{PAGENAME}} Idle.gif]]</div>
</title>
<div class="SubHeader">Stats</div>
    <panel>
<dl>
        <section>
<dt>Attack</dt>
            <image>
<dd>{{{attack}}}</dd>
                <default>
<dt>Base HP</dt>
                    {{#tag:gallery|
<dd>{{{health}}}</dd>
                      {{#if:{{{idleonly|}}}|{{PAGENAME}} Idle.gif{{!}}Idle/Walking
</dl>
                      |{{PAGENAME}} Idle.gif{{!}}Idle
<div class="SubHeader">Misc</div>
                      {{PAGENAME}} Walking.gif{{!}}Walking}}
<dl>
                      {{PAGENAME}} Death.gif{{!}}Death
<dt>Dungeon</dt>
                    }}
<dd>[[Dungeons/{{{dungeon}}}|{{{dungeon}}}]]</dd>
                </default>
<dt>Credits</dt>
            </image>
<dd>[[File:Cash.png|20px]] {{{credits}}}</dd>
        </section>
</dl>
    </panel>
{{#if: {{{hascard|}}} | {{#cargo_query:tables=Cards
    <header>Monster Stats</header>
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
<data source="attack">
|where= Title LIKE "{{PAGENAME}}" OR Title LIKE "{{PAGENAME}} Card"
<label>Attack</label>
|format=template
</data>
|template=InfoCard/boxrow
<data source="health">
|named args=yes
<label>Base HP</label>
|default=  
</data>
}}}}
    <header>Misc</header>
</div>
    <data source="dungeon">
</includeonly>
<label>Dungeon</label>
{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}
        <format>[[Dungeons/{{{dungeon}}}|{{{dungeon}}}]]</format>
</data>
    <data source="credits">
<label>Credits</label>
        <format>[[File:Cash.png|20px]] {{{credits}}}</format>
</data>
    <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>{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}[[Category:Dungeon Enemies]]</includeonly>

Revision as of 04:20, 3 February 2023