Template:Boss: Difference between revisions

From IdleOn MMO Wiki
(Undo revision 59984 by NanoZ (talk))
Tag: Undo
mNo edit summary
Line 1: Line 1:
<includeonly><div class="Infobox BossInfobox">
<includeonly><infobox>
<div class="Header">{{PAGENAME}}</div>
<title source="title">
{{#tag:tabber|
<default>{{PAGENAME}}</default>
Normal=
</title>
<div class="HeaderImage">[[file: {{{title | {{PAGENAME}}}}} (boss).png]]</div>
    <panel>
<div class="SubHeader">Stats</div>
    <section>
<dl>
        <label>Normal</label>
<dt>Health</dt>
<image source="image">
<dd>{{Numdisplay|{{{1health | }}}}}</dd>
        <default>[[File:{{PAGENAME}} (boss).png]]</default>
<dt>Accuracy 5%</dt>
    </image>
<dd>{{Numdisplay|{{#if: {{{def1|}}} | {{#expr: {{{def1}}}*0.5}} | }}}}</dd>
    <group name="NormalStats">
<dt>Accuracy 100%</dt>
        <header>Stats</header>
<dd>{{Numdisplay|{{#if: {{{def1|}}} | {{#expr: {{{def1}}}*1.5}} | }}}}</dd>
<data source="1health">
<dt>Experience</dt>
<label>Health</label>
<dd>{{Numdisplay|{{{1exp | }}}}}</dd>
            <format>{{Numdisplay|{{{1health | }}}}}</format>
</dl>
</data>
<div class="SubHeader">Attacks</div>
        <data source="def1">
<dl>
<label>Accuracy 5%</label>
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{NormalDamages|}}}}}
            <format>{{Numdisplay|{{#expr: {{{def1}}}*0.5}}}}</format>
</dl>
</data>
{{#ifeq: {{{hascard}}} | yes | {{#cargo_query:tables=Cards
        <data source="def1">
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
<label>Accuracy 100%</label>
|where= Title LIKE "{{PAGENAME}}" OR Title LIKE "{{PAGENAME}} Card"
            <format>{{Numdisplay|{{#expr: {{{def1}}}*1.5}}}}</format>
|format=template
</data>
|template=InfoCard/boxrow
        <data source="1exp">
|named args=yes
<label>Experience</label>
|default=
            <format>{{Numdisplay|{{{1exp | }}}}}</format>
}} }}
</data>
{{!}}-{{!}}
        <header>Attacks</header>
Chaotic=
        <data source="NormalDamages">
<div class="HeaderImage">{{#ifexist:File:{{PAGENAME}}_(Chaotic_boss).png|[[file: {{PAGENAME}}_(Chaotic_boss).png]]}}</div>
            <format>{{#invoke:Loops|bossAttacksInfoBox|attackList={{{AttackList|}}}|damageList={{{NormalDamages|}}}}}</format>
<div class="SubHeader">Stats</div>
        </data>
<dl>
    </group>
<dt>Health</dt>
    <group name="NormalCard">
<dd>{{Numdisplay|{{{2health | }}}}}</dd>
        <header>Card Bonus</header>
<dt>Accuracy 5%</dt>
<data source="hascard">
<dd>{{Numdisplay|{{#if: {{{def2|}}} | {{#expr: {{{def2}}}*0.5}} | }}}}</dd>
<label>Effect</label>
<dt>Accuracy 100%</dt>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}</format>
<dd>{{Numdisplay|{{#if: {{{def2|}}} | {{#expr: {{{def2}}}*1.5}} | }}}}</dd>
</data>
<dt>Experience</dt>
<data source="hascard">
<dd>{{Numdisplay|{{{2exp | }}}}}</dd>
<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>
</dl>
</data>
<div class="SubHeader">Attacks</div>
<data source="hascard">
<dl>
<label>Category</label>
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{ChaoticDamages|}}}}}
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:category|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}</format>
</dl>
</data>
{{#ifeq: {{{hascard}}} | yes | {{#cargo_query:tables=Cards
    <data source="hascard">
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
<label>Dropchance</label>
|where= Title LIKE "Chaotic {{{nameOverride|{{PAGENAME}}}}}" OR Title LIKE "Chaotic {{{nameOverride|{{PAGENAME}}}}} Card"
<format>{{Chancedisplay|{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:dropchance|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}}}</format>
|format=template
</data>
|template=InfoCard/boxrow
    </group>
|named args=yes
    </section>
|default=
    <section>
}} }}
        <label>Chaotic</label>
{{!}}-{{!}}
<image source="image">
{{{3rdName|Nightmare}}}=
        <default>[[File:{{PAGENAME}} (Chaotic boss).png]]</default>
<div class="HeaderImage">{{#ifexist:File:{{PAGENAME}}_(Nightmare_boss).png|[[file: {{PAGENAME}}_(Nightmare_boss).png]]}}</div>
    </image>
<div class="SubHeader">Stats</div>
    <group name="ChaoticStats">
<dl>
        <header>Stats</header>
<dt>Health</dt>
<data source="2health">
<dd>{{Numdisplay|{{{3health | }}}}}</dd>
<label>Health</label>
<dt>Accuracy 5%</dt>
            <format>{{Numdisplay|{{{2health | }}}}}</format>
<dd>{{Numdisplay|{{#if: {{{def3|}}} | {{#expr: {{{def3}}}*0.5}} | }}}}</dd>
</data>
<dt>Accuracy 100%</dt>
        <data source="def2">
<dd>{{Numdisplay|{{#if: {{{def3|}}} | {{#expr: {{{def3}}}*1.5}} | }}}}</dd>
<label>Accuracy 5%</label>
<dt>Experience</dt>
            <format>{{Numdisplay|{{#expr: {{{def2}}}*0.5}}}}</format>
<dd>{{Numdisplay|{{{3exp | }}}}}</dd>
</data>
</dl>
        <data source="def2">
<div class="SubHeader">Attacks</div>
<label>Accuracy 100%</label>
<dl>
            <format>{{Numdisplay|{{#expr: {{{def2}}}*1.5}}}}</format>
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{NightmareDamages|}}}}}
</data>
</dl>
        <data source="2exp">
{{#ifeq: {{{hascard}}}|yes| {{#cargo_query:tables=Cards
<label>Experience</label>
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
            <format>{{Numdisplay|{{{2exp | }}}}}</format>
|where= Title LIKE "{{{3rdName|Nightmare}}} {{{nameOverride|{{PAGENAME}}}}}" OR Title LIKE "{{{3rdName|Nightmare}}} {{{nameOverride|{{PAGENAME}}}}} Card"
</data>
|format=template
        <header>Attacks</header>
|template=InfoCard/boxrow
        <data source="ChaoticDamages">
|named args=yes
            <format>{{#invoke:Loops|bossAttacksInfoBox|attackList={{{AttackList|}}}|damageList={{{ChaoticDamages|}}}}}</format>
|default=
        </data>
}} }}<!-- Tabber End -->}}
    </group>
<div class="SubHeader">Location</div>
    <group name="ChaoticCard">
<dl>
        <header>Card Bonus</header>
<dt>World</dt>
<data source="hascard">
<dd>{{{world}}}</dd>
<label>Effect</label>
<dt>Area</dt>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title=Chaotic {{PAGENAME}} Card|count=1|mode=inline|format=,}}</format>
<dd>[[Worlds#{{{area}}} | {{{area}}}]]</dd>
</data>
</dl>
<data source="hascard">
</div>{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}[[Category:World Bosses]]</includeonly><noinclude>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:bonus:bonus:bonus:bonus:bonus|title=Chaotic {{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=Chaotic {{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=Chaotic {{PAGENAME}} Card|count=1|mode=inline|format=,}}}}</format>
</data>
    </group>
    </section>
    <section>
        <label>{{{3rdName|Nightmare}}}</label>
<image source="image">
        <default>[[File:{{PAGENAME}} (Nightmare boss).png]]</default>
    </image>
    <group name="NightmareStats">
        <header>Stats</header>
<data source="3health">
<label>Health</label>
            <format>{{Numdisplay|{{{3health | }}}}}</format>
</data>
        <data source="def3">
<label>Accuracy 5%</label>
            <format>{{Numdisplay|{{#expr: {{{def3}}}*0.5}}}}</format>
</data>
        <data source="def3">
<label>Accuracy 100%</label>
            <format>{{Numdisplay|{{#expr: {{{def3}}}*1.5}}}}</format>
</data>
        <data source="3exp">
<label>Experience</label>
            <format>{{Numdisplay|{{{3exp | }}}}}</format>
</data>
        <header>Attacks</header>
        <data source="NightmareDamages">
            <format>{{#invoke:Loops|bossAttacksInfoBox|attackList={{{AttackList|}}}|damageList={{{NightmareDamages|}}}}}</format>
        </data>
    </group>
    <group name="NightmareCard">
        <header>Card Bonus</header>
<data source="hascard">
<label>Effect</label>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title={{{3rdName|Nightmare}}} {{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={{{3rdName|Nightmare}}} {{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={{{3rdName|Nightmare}}} {{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={{{3rdName|Nightmare}}} {{PAGENAME}} Card|count=1|mode=inline|format=,}}}}</format>
</data>
    </group>
    </section>
    </panel>
    <group name="Location">
    <header>Location</header>
    <data source="world">
<label>World</label>
</data>
    <data source="area">
<label>Area</label>
</data>
    </group>
</infobox>{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}[[Category:World Bosses]]</includeonly><noinclude>
<pre>
<pre>
Usage:
Usage:

Revision as of 03:53, 2 February 2023

Usage:
Attack1-7 is for the name of the attack. The first number of health, exp, accurary and dmg defined the difficulty. 1 for normal. 2 for chaotic, 3 for nightmare. 
{{boss
|1health=example
|2health=example
|3health=example
|1exp=example
|2exp=example
|3exp=example
|def1=example
|def2=example
|def3=example
|AttackList=<attack name 1>, <attack name 2>, <attack name 3>..etc
|NormalDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the normal version of the boss
|ChaoticDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the chaotic version of the boss
|NightmareDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the nightmare version of the boss
|prevenemy=example (previous monster for navigation)
|nextenemy=example (next monster for navigation)
}}