Template:Boss: Difference between revisions

From IdleOn MMO Wiki
imported>Kiokurashi
No edit summary
mNo edit summary
 
(49 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><infobox>
{| class="Infobox"
<title>
|-
<default>{{PAGENAME}}</default>
! colspan="3" class="Header" | {{{title | {{PAGENAME}}}}}
</title>
|-
    <panel>
| colspan="3" class="HeaderImage" | [[file: {{{title | {{PAGENAME}}}}} (boss).png]]
    <section>
|-
        <label>Normal</label>
| <tabber>
<image source="image">
Normal=
        <default>[[File:{{PAGENAME}} (boss).png]]</default>
{|
    </image>
! colspan="2" class="SubHeader" | Stats
    <group name="NormalStats" row-items="2">
|-
        <header>Boss Stats</header>
! Health
<data source="1health">
| {{{1health | }}}
<label>{{Icons|HP Icon|18|text=Health}}</label>
|-
            <format>{{Numdisplay|{{{1health | }}}}}</format>
! Accuracy 5%
</data>
| {{#if: {{{def1|}}} | {{#expr: {{{def1}}}*0.5}} | }}
            <data source="1exp">
|-
<label>Experience</label>
! Accuracy 100%
            <format>{{Numdisplay|{{{1exp | }}}}}</format>
| {{#if: {{{def1|}}} | {{#expr: {{{def1}}}*1.5}} | }}
</data>
|-
        <data source="def1">
! Experience
<label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label>
| {{{1exp | }}}
            <format>{{Numdisplay|{{#expr: {{{def1}}}*0.5}}}}</format>
|-
</data>
! colspan="2" class="SubHeader" | Attacks
        <data source="def1">
{{#vardefine:i|0}}
<label>100% Accuracy</label>
{{#while:
            <format>{{Numdisplay|{{#expr: {{{def1}}}*1.5}}}}</format>
| {{#if: {{#explode:{{{AttackList|}}}|,|{{#var:i}}}} | true }}
</data>
| <nowiki />
        </group>
{{!}}-
        <group name="NormalAttacks">
! {{#explode:{{{AttackList|}}}|,|{{#var:i}}}}
        <header>{{Icons|Attack Icon|17|text=Attacks}}</header>
{{!}} {{#explode:{{{NormalDamages|}}}|,|{{#var:i}}}} {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
        <data source="NormalDamages">
}}
            <format>{{#invoke:Boss|bossAttacksInfoBox|attackList={{{AttackList|}}}|damageList={{{NormalDamages|}}}}}</format>
|-
        </data>
{{#ifeq: {{{hascard}}} | yes | {{#dpl:  
    </group>
|namespace=
    <group name="NormalCard">
|category=Cards
        <header>Card Info</header>
|uses=Template:InfoCard
<data source="hascard">
|include={InfoCard}/boxrow
<label>Card</label>
|includematch=*{{PAGENAME}} Normal*
<format>{{CraftReq|{{PAGENAME}} Card|24px}}</format>
|format=,,
</data>
|allowcachedresults=true
<data source="hascard">
}} }}
<label>Effect</label>
|}
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}</format>
|-|
</data>
Chaotic=
<data source="hascard">
{|
<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>
! colspan="2" class="SubHeader" | Stats
</data>
|-
<data source="hascard">
! Health
<label>Category</label>
| {{{2health | }}}
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:category|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}</format>
|-
</data>
! Accuracy 5%
    <data source="hascard">
| {{#if: {{{def2|}}} | {{#expr: {{{def2}}}*0.5}} | }}
<label>Dropchance</label>
|-
<format>{{Chancedisplay|{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:dropchance|title={{PAGENAME}} Card|count=1|mode=inline|format=,}}}}</format>
! Accuracy 100%
</data>
| {{#if: {{{def2|}}} | {{#expr: {{{def2}}}*1.5}} | }}
    </group>
|-
    </section>
! Experience
    <section>
| {{{2exp | }}}
        <label>Chaotic</label>
|-
<image source="image">
! colspan="2" class="SubHeader" | Attacks
        <default>[[File:{{PAGENAME}} (Chaotic boss).png]]</default>
{{#vardefine:i|0}}
    </image>
{{#while:
    <group name="ChaoticStats" row-items="2">
| {{#if: {{#explode:{{{AttackList|}}}|,|{{#var:i}}}} | true }}
        <header>Chaotic Boss Stats</header>
| <nowiki />
<data source="2health">
{{!}}-
<label>{{Icons|HP Icon|18|text=Health}}</label>
! {{#explode:{{{AttackList|}}}|,|{{#var:i}}}}
            <format>{{Numdisplay|{{{2health | }}}}}</format>
{{!}} {{#explode:{{{ChaoticDamages|}}}|,|{{#var:i}}}} {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
</data>
}}
            <data source="2exp">
|-
<label>Experience</label>
{{#ifeq: {{{hascard}}} | yes | {{#dpl:
            <format>{{Numdisplay|{{{2exp | }}}}}</format>
|namespace=
</data>
|category=Cards
        <data source="def2">
|uses=Template:InfoCard
<label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label>
|include={InfoCard}/boxrow
            <format>{{Numdisplay|{{#expr: {{{def2}}}*0.5}}}}</format>
|includematch=*{{PAGENAME}} Chaotic*
</data>
|format=,,
        <data source="def2">
|allowcachedresults=true
<label>100% Accuracy</label>
}} }}
            <format>{{Numdisplay|{{#expr: {{{def2}}}*1.5}}}}</format>
|}
</data>
|-|
        </group>
Nightmare=
        <group name="ChaoticAttacks">
{|
        <header>{{Icons|Attack Icon|17|text=Attacks}}</header>
! colspan="2" class="SubHeader" | Stats
        <data source="ChaoticDamages">
|-
            <format>{{#invoke:Boss|bossAttacksInfoBox|attackList={{{AttackList|}}}|damageList={{{ChaoticDamages|}}}}}</format>
! Health
        </data>
| {{{3health | }}}
    </group>
|-
    <group name="ChaoticCard">
! Accuracy 5%
        <header>Card Info</header>
| {{#if: {{{def3|}}} | {{#expr: {{{def3}}}*0.5}} | }}
<data source="hascard">
|-
<label>Card</label>
! Accuracy 100%
<format>{{CraftReq|Chaotic {{{nameOverride|{{PAGENAME}}}}} Card|24px}}</format>
| {{#if: {{{def3|}}} | {{#expr: {{{def3}}}*0.5}} | }}
</data>
|-
<data source="hascard">
! Experience
<label>Effect</label>
| {{{3exp | }}}
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:effect|title=Chaotic {{{nameOverride|{{PAGENAME}}}}} Card|count=1|mode=inline|format=,}}</format>
|-
</data>
! colspan="2" class="SubHeader" | Attacks
<data source="hascard">
{{#vardefine:i|0}}
                <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>
{{#while:
</data>
| {{#if: {{#explode:{{{AttackList|}}}|,|{{#var:i}}}} | true }}
<data source="hascard">
| <nowiki />
<label>Category</label>
{{!}}-
<format>{{#dpl:|uses=Template:InfoCard|includepage={InfoCard}:category|title=Chaotic {{{nameOverride|{{PAGENAME}}}}} Card|count=1|mode=inline|format=,}}</format>
! {{#explode:{{{AttackList|}}}|,|{{#var:i}}}}
</data>
{{!}} {{#explode:{{{NightmareDamages|}}}|,|{{#var:i}}}} {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
    <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>
{{#ifeq: {{{hascard}}}|yes|{{#dpl:
</data>
|namespace=
    </group>
|category=Cards
    </section>
|uses=Template:InfoCard
    <section>
|include={InfoCard}/boxrow
        <label>{{{3rdName|Nightmare}}}</label>
|includematch=*{{PAGENAME}} Nightmare*
<image source="image">
|format=,,
        <default>[[File:{{PAGENAME}} (Nightmare boss).png]]</default>
|allowcachedresults=true
    </image>
}} }}
    <group name="NightmareStats" row-items="2">
|}
        <header>{{{3rdName|Nightmare}}} Boss Stats</header>
</tabber>
<data source="3health">
{|
<label>{{Icons|HP Icon|18|text=Health}}</label>
! colspan="2" class="SubHeader" | Location
            <format>{{Numdisplay|{{{3health | }}}}}</format>
|-
</data>
! World
            <data source="3exp">
| {{{world}}}
<label>Experience</label>
|-
            <format>{{Numdisplay|{{{3exp | }}}}}</format>
! class="LastTable" | Area
</data>
| [[Worlds#{{{area}}} | {{{area}}}]]
        <data source="def3">
|}
<label>{{Icons|Accuracy Icon|15|text=5% Accuracy}}</label>
|}
            <format>{{Numdisplay|{{#expr: {{{def3}}}*0.5}}}}</format>
[[Category:World Bosses]]
</data>
</includeonly><noinclude>
        <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:
Line 143: Line 188:
|def2=example
|def2=example
|def3=example
|def3=example
|attack1=example
|AttackList=<attack name 1>, <attack name 2>, <attack name 3>..etc
|attack2=example
|NormalDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the normal version of the boss
|attack3=example
|ChaoticDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the chaotic version of the boss
|attack4=example
|NightmareDamages=<attack 1 dmg>, <attack 2 dmg>.. etc for the nightmare version of the boss
|attack5=example
|prevenemy=example (previous monster for navigation)
|attack6=example
|nextenemy=example (next monster for navigation)
|attack7=example
|1dmg1=example
|2dmg1=example
|3dmg1=example
|1dmg2=example
|2dmg2=example
|3dmg2=example
|1dmg3=example
|2dmg3=example
|3dmg3=example
|1dmg4=example
|2dmg4=example
|3dmg4=example
|1dmg5=example
|2dmg5=example
|3dmg5=example
|1dmg6=example
|2dmg6=example
|3dmg6=example
|1dmg7=example
|2dmg7=example
|3dmg7=example
}}
}}
</pre>
</pre>
[[category:infobox templates]]
[[category:infobox templates]]
</noinclude>
</noinclude>

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