Template:FamilyBonus: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><div class='familyBonusDiv bonusDiv' data-x1='{{{x1}}}' data-x2='{{{x2}}}' data-func='{{{form}}}' data-tier='{{#switch:{{{tier|1}}}|1=9|2=29|3=69|4=500|0}}'><div class="bonusHead">{{PAGENAME}} Family Bonus</div>
<includeonly><div class='familyBonusDiv bonusDiv' data-x1='{{{x1}}}' data-x2='{{{x2}}}' data-func='{{{form}}}' data-tier='{{#switch:{{{tier|1}}}|1=9|2=29|3=69|4=129|0}}'><div class="bonusHead">{{PAGENAME}} Family Bonus</div>
<b>Level:</b> <span class='valInput'></span>
<b>Level:</b> <span class='valInput'></span>
<p>{{#replace:{{{textArr}}}|(Table 1)|<span class='result' style = 'color:#358510;font-weight:bold;'></span>}}</p>
<p>{{#replace:{{{textArr}}}|(Table 1)|<span class='result' style = 'color:#358510;font-weight:bold;'></span>}}</p>
</div></includeonly>
</div></includeonly>
<noinclude><!-- "Tier" values are based on the Tree progression level of the class. I.e. Class, Subclass, Elite, Master, ect.--><pre>
<noinclude><!-- "Tier" values are based on the Tree progression level of the class. I.e. Class, Subclass, Elite, Master, ect. The values they represent are gathered from the ClassAccountBonus function through a bit of deduction.
{{familyBonusDiv
the values for form, x1, and x2 are grabbed from the ClassFamilyBonuses function. -->Example (Blood Berserker):<pre>
|textArr=
{{FamilyBonus
|form=
|textArr=+(Table 1)% Total Damage
|x1=
|form=decay
|x2=
|x1=20
|x2=180
|tier=3      ← The 3rd unlocked class for that chain.
}}
}}
</pre></noinclude>
</pre></noinclude>

Revision as of 12:13, 7 April 2023

Example (Blood Berserker):

{{FamilyBonus
|textArr=+(Table 1)% Total Damage
|form=decay
|x1=20
|x2=180
|tier=3      ← The 3rd unlocked class for that chain.
}}