Template:Boss: Difference between revisions

From IdleOn MMO Wiki
imported>Wekhter
mNo edit summary
mNo edit summary
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div class="Infobox BossInfobox">
<includeonly><infobox>
<div class="Header">{{PAGENAME}}</div>
<title>
<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" row-items="2">
<dt>Accuracy 100%</dt>
        <header>Boss Stats</header>
<dd>{{Numdisplay|{{#if: {{{def1|}}} | {{#expr: {{{def1}}}*1.5}} | }}}}</dd>
<data source="1health">
<dt>Experience</dt>
<label>{{Icons|HP Icon|18|text=Health}}</label>
<dd>{{Numdisplay|{{{1exp | }}}}}</dd>
            <format>{{Numdisplay|{{{1health | }}}}}</format>
</dl>
</data>
<div class="SubHeader">Attacks</div>
            <data source="1exp">
<dl>
<label>Experience</label>
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{NormalDamages|}}}}}
            <format>{{Numdisplay|{{{1exp | }}}}}</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>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label>
|where= Title LIKE "{{PAGENAME}}" OR Title LIKE "{{PAGENAME}} Card"
            <format>{{Numdisplay|{{#expr: {{{def1}}}*0.5}}}}</format>
|format=template
</data>
|template=InfoCard/boxrow
        <data source="def1">
|named args=yes
<label>100% Accuracy</label>
|default=
            <format>{{Numdisplay|{{#expr: {{{def1}}}*1.5}}}}</format>
}} }}
</data>
|-|
        </group>
Chaotic=
        <group name="NormalAttacks">
<div class="HeaderImage">{{#ifexist:File:{{PAGENAME}}_(Chaotic_boss).png|[[file: {{PAGENAME}}_(Chaotic_boss).png]]}}</div>
        <header>{{Icons|Attack Icon|17|text=Attacks}}</header>
<div class="SubHeader">Stats</div>
        <data source="NormalDamages">
<dl>
            <format>{{#invoke:Boss|bossAttacksInfoBox|attackList={{{AttackList|}}}|damageList={{{NormalDamages|}}}}}</format>
<dt>Health</dt>
        </data>
<dd>{{Numdisplay|{{{2health | }}}}}</dd>
    </group>
<dt>Accuracy 5%</dt>
    <group name="NormalCard">
<dd>{{Numdisplay|{{#if: {{{def2|}}} | {{#expr: {{{def2}}}*0.5}} | }}}}</dd>
        <header>Card Info</header>
<dt>Accuracy 100%</dt>
<data source="hascard">
<dd>{{Numdisplay|{{#if: {{{def2|}}} | {{#expr: {{{def2}}}*1.5}} | }}}}</dd>
<label>Card</label>
<dt>Experience</dt>
<format>{{CraftReq|{{PAGENAME}} Card|24px}}</format>
<dd>{{Numdisplay|{{{2exp | }}}}}</dd>
</data>
</dl>
<data source="hascard">
<div class="SubHeader">Attacks</div>
<label>Effect</label>
<dl>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}</format>
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{ChaoticDamages|}}}}}
</data>
</dl>
<data source="hascard">
{{#ifeq: {{{hascard}}} | yes | {{#cargo_query:tables=Cards
<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>
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
</data>
|where= Title LIKE "Chaotic {{PAGENAME}}" OR Title LIKE "Chaotic {{PAGENAME}} Card"
<data source="hascard">
|format=template
<label>Category</label>
|template=InfoCard/boxrow
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:category|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}</format>
|named args=yes
</data>
|default=
    <data source="hascard">
}} }}
<label>Dropchance</label>
|-|
<format>{{Chancedisplay|{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:dropchance|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}}}</format>
Nightmare=
</data>
<div class="HeaderImage">{{#ifexist:File:{{PAGENAME}}_(Nightmare_boss).png|[[file: {{PAGENAME}}_(Nightmare_boss).png]]}}</div>
    </group>
<div class="SubHeader">Stats</div>
    </section>
<dl>
    <section>
<dt>Health</dt>
        <label>Chaotic</label>
<dd>{{Numdisplay|{{{3health | }}}}}</dd>
<image source="image">
<dt>Accuracy 5%</dt>
        <default>[[File:{{PAGENAME}} (Chaotic boss).png]]</default>
<dd>{{Numdisplay|{{#if: {{{def3|}}} | {{#expr: {{{def3}}}*0.5}} | }}}}</dd>
    </image>
<dt>Accuracy 100%</dt>
    <group name="ChaoticStats" row-items="2">
<dd>{{Numdisplay|{{#if: {{{def3|}}} | {{#expr: {{{def3}}}*1.5}} | }}}}</dd>
        <header>Chaotic Boss Stats</header>
<dt>Experience</dt>
<data source="2health">
<dd>{{Numdisplay|{{{3exp | }}}}}</dd>
<label>{{Icons|HP Icon|18|text=Health}}</label>
</dl>
            <format>{{Numdisplay|{{{2health | }}}}}</format>
<div class="SubHeader">Attacks</div>
</data>
<dl>
            <data source="2exp">
{{#invoke:Loops|bossAttacks|attackList={{{AttackList|}}}|damageList={{{NightmareDamages|}}}}}
<label>Experience</label>
</dl>
            <format>{{Numdisplay|{{{2exp | }}}}}</format>
{{#ifeq: {{{hascard}}}|yes| {{#cargo_query:tables=Cards
</data>
|fields=CardOrder=order, Category=category, Effect=effect, Bonus=bonus, DropChance=dropchance
        <data source="def2">
|where= Title LIKE "Nightmare {{PAGENAME}}" OR Title LIKE "Nightmare {{PAGENAME}} Card"
<label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label>
|format=template
            <format>{{Numdisplay|{{#expr: {{{def2}}}*0.5}}}}</format>
|template=InfoCard/boxrow
</data>
|named args=yes
        <data source="def2">
|default=
<label>100% Accuracy</label>
}} }}</tabber>
            <format>{{Numdisplay|{{#expr: {{{def2}}}*1.5}}}}</format>
<div class="SubHeader">Location</div>
</data>
<dl>
        </group>
<dt>World</dt>
        <group name="ChaoticAttacks">
<dd>{{{world}}}</dd>
        <header>{{Icons|Attack Icon|17|text=Attacks}}</header>
<dt>Area</dt>
        <data source="ChaoticDamages">
<dd>[[Worlds#{{{area}}} | {{{area}}}]]</dd>
            <format>{{#invoke:Boss|bossAttacksInfoBox|attackList={{{AttackList|}}}|damageList={{{ChaoticDamages|}}}}}</format>
</dl>
        </data>
</div>{{#if:{{{prevenemy|}}}{{{nextenemy|}}}|{{EnemyNavigation|{{{prevenemy|}}}|{{{nextenemy|}}}}}}}[[Category:World Bosses]]</includeonly><noinclude>
    </group>
    <group name="ChaoticCard">
        <header>Card Info</header>
<data source="hascard">
<label>Card</label>
<format>{{CraftReq|Chaotic {{{nameOverride|{{PAGENAME}}}}} Card|24px}}</format>
</data>
<data source="hascard">
<label>Effect</label>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title=Chaotic {{{nameOverride|{{PAGENAME}}}}} Card|count=1|mode=inline|format=,}}</format>
</data>
<data source="hascard">
                <format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:bonus:bonus:bonus:bonus:bonus:bonus|title=Chaotic {{{nameOverride|{{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 source="hascard">
<label>Category</label>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:category|title=Chaotic {{{nameOverride|{{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 {{{nameOverride|{{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" row-items="2">
        <header>{{{3rdName|Nightmare}}} Boss Stats</header>
<data source="3health">
<label>{{Icons|HP Icon|18|text=Health}}</label>
            <format>{{Numdisplay|{{{3health | }}}}}</format>
</data>
            <data source="3exp">
<label>Experience</label>
            <format>{{Numdisplay|{{{3exp | }}}}}</format>
</data>
        <data source="def3">
<label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label>
            <format>{{Numdisplay|{{#expr: {{{def3}}}*0.5}}}}</format>
</data>
        <data source="def3">
<label>100% Accuracy</label>
            <format>{{Numdisplay|{{#expr: {{{def3}}}*1.5}}}}</format>
</data>
        </group>
        <group name="NightmareAttacks">
        <header>{{Icons|Attack Icon|17|text=Attacks}}</header>
        <data source="NightmareDamages">
            <format>{{#invoke:Boss|bossAttacksInfoBox|attackList={{{AttackList|}}}|damageList={{{NightmareDamages|}}}}}</format>
        </data>
    </group>
    <group name="NightmareCard">
        <header>Card Info</header>
<data source="hascard">
<label>Card</label>
<format>{{CraftReq|{{{3rdName|Nightmare}}} {{{nameOverride|{{PAGENAME}}}}} Card|24px}}</format>
</data>
<data source="hascard">
<label>Effect</label>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title={{{3rdName|Nightmare}}} {{{nameOverride|{{PAGENAME}}}}} Card|count=1|mode=inline|format=,}}</format>
</data>
<data source="hascard">
                <format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:bonus:bonus:bonus:bonus:bonus:bonus|title={{{3rdName|Nightmare}}} {{{nameOverride|{{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 source="hascard">
<label>Category</label>
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:category|title={{{3rdName|Nightmare}}} {{{nameOverride|{{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}}} {{{nameOverride|{{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>
            <format>{{Area|{{{area|}}}}}</format>
</data>
    </group>
</infobox>{{#invoke:EnemyNav|BuildNav|Type=Boss|Enemy={{PAGENAME}}}}[[Category:World Bosses]]</includeonly><noinclude>
<pre>
<pre>
Usage:
Usage:

Latest revision as of 08:17, 27 July 2024

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)
}}