Site News
Warning: This wiki contains spoilers. Read at your own risk!

Social media: If you would like, please join our Discord server, and/or follow us on Twitter (X) or Tumblr!

Template:FE4 growth: Difference between revisions

From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
m (Changing it so that it floors decimals)
mNo edit summary
Line 1: Line 1:
{{#expr: floor({{#if:{{{holyblood|}}} | {{get|FE4_growths|{{{1}}}|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|{{{1}}}|{{{parent1|}}}}} + {{get|FE4_growths|{{{1}}}|{{{parent2|}}}}}/2 | {{get|FE4_growths|{{{1}}}|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}<noinclude>
{{#expr: floor({{#if:{{{holyblood|}}} | {{get|FE4_growths|{{{1}}}|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|{{{1}}}|{{{parent1|}}}}} + {{get|FE4_growths|{{{1}}}|{{{parent2|}}}}}/2 | {{get|FE4_growths|{{{1}}}|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}<noinclude>
==Usage==
==Usage==
Type A: Units whose growths aren't inherited; example: Sigurd
Type A: Units whose growths aren't inherited; example: Sigurd's strength - {{FE4 growth|str|unit=Sigurd|holyblood=Baldr|major=y}}
<pre>{{FE4 growth|str|unit=Sigurd|holyblood=Baldr|major=y}}</pre>
<pre>{{FE4 growth|str|unit=Sigurd|holyblood=Baldr|major=y}}</pre>
Type B: Units whose growths are inherited; example: Beowolf-fathered Diarmuid
Type B: Units whose growths are inherited; example: Beowolf-fathered Diarmuid's strength - {{FE4 growth|str|parent1=Beowolf|parent2=Lachesis|holyblood=Hezul}}
<pre>{{FE4 growth|str|parent1=Beowolf|parent2=Lachesis|holyblood=Hezul}}</pre>
<pre>{{FE4 growth|str|parent1=Beowolf|parent2=Lachesis|holyblood=Hezul}}</pre>


<code>unit</code> defaults to root page name, and is also unnecessary for units whose growths are based on inheritance. Don't include <code>holyblood</code> or <code>major</code> if the unit has no holy blood. If the unit only has minor holy blood, don't include <code>major</code>.
The first parameter, the stat, can be <code>hp</code>, <code>str</code>, <code>mag</code>, <code>skl</code>, <code>spd</code>, <code>lck</code>, <code>def</code>, or <code>res</code>. <code>unit</code> defaults to root page name, and is also unnecessary for units whose growths are based on inheritance. Don't include <code>holyblood</code> or <code>major</code> if the unit has no holy blood. If the unit only has minor holy blood, don't include <code>major</code>.


[[Category:Stat templates]]
[[Category:Stat templates]]

Revision as of 05:21, 26 December 2020

Expression error: Unexpected < operator.

Usage

Type A: Units whose growths aren't inherited; example: Sigurd's strength - Expression error: Unexpected < operator.

{{FE4 growth|str|unit=Sigurd|holyblood=Baldr|major=y}}

Type B: Units whose growths are inherited; example: Beowolf-fathered Diarmuid's strength - Expression error: Unexpected < operator.

{{FE4 growth|str|parent1=Beowolf|parent2=Lachesis|holyblood=Hezul}}

The first parameter, the stat, can be hp, str, mag, skl, spd, lck, def, or res. unit defaults to root page name, and is also unnecessary for units whose growths are based on inheritance. Don't include holyblood or major if the unit has no holy blood. If the unit only has minor holy blood, don't include major.