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.
(test)
 
m (Changing it so that it floors decimals)
Line 1: Line 1:
{{#expr: {{#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

Revision as of 05:19, 26 December 2020

Expression error: Unexpected < operator.

Usage

Type A: Units whose growths aren't inherited; example: Sigurd

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

Type B: Units whose growths are inherited; example: Beowolf-fathered Diarmuid

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

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.