Template:Boss: Difference between revisions

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