Template:InfoDungeonEnemy: Difference between revisions

From IdleOn MMO Wiki
No edit summary
mNo edit summary
 
(16 intermediate revisions by 3 users not shown)
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}} Walking.gif]]</div>
</title>
<div class="SubHeader">Stats</div>
    <panel>
<dl>
        <section>
<dt>Attack</dt>
            <image>
<dd>{{{attack}}}</dd>
                <default>
<dt>Health</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>
</div>
    <header>Dungeon Monster Stats</header>
</includeonly>
<data source="attack">
{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}
<label>Attack</label>
{{#if: {{{hascard|}}} | {{#cargo_query:tables=Cards
</data>
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
<data source="health">
|where= Title LIKE "{{PAGENAME}}" OR Title LIKE "{{PAGENAME}} Card"
<label>Base HP</label>
|format=template
</data>
|template=InfoCard/boxrow
    <data source="credits">
|named args=yes
<label>Credits</label>
|default=  
        <format>[[File:Cash.png|20px]] {{{credits}}}</format>
}}}}
</data>
    <group name="CardSection">
        <header>Card Info</header>
        <data source="hascard">
<label>Card</label>
<format>[[File:{{PAGENAME}} Card.png|24px]] [[{{PAGENAME}} Card]]</format>
</data>
<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>
    <header>Location</header>
    <data source="dungeon">
<label>Dungeon</label>
        <format>[[Dungeons/{{{dungeon}}}|{{{dungeon}}}]]</format>
</data>
</infobox>{{#invoke:EnemyNav|BuildNav|Type=Dungeon|Enemy={{PAGENAME}}}}[[Category:Dungeon Enemies]]</includeonly>

Latest revision as of 04:44, 6 April 2024