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
m (Text replacement - "lord knight" to "knight lord") |
m (templates don't allow that) |
||
Line 1: | Line 1: | ||
{{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|{{{1}}}|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#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's strength - {{FE4 growth|str|unit=Sigurd|holyblood=Baldr|major=y}} | Type A: Units whose growths aren't inherited; example: Sigurd's strength - {{FE4 growth|str|unit=Sigurd|holyblood=Baldr|major=y}} | ||
<pre>{{FE4 growth|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's strength - {{FE4 growth|parent1=Beowolf|parent2=Lachesis|holyblood=Hezul}} | 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> | ||
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. | <code>unit</code> defaults to root page name, and is also unnecessary for units whose growths are based on inheritance. | ||
Line 20: | Line 13: | ||
<code>parent1</code> and <code>parent2</code> are for inheritance. <code>parent1</code> is for the parent with the same gender as the unit, and <code>parent2</code> is the other one. | <code>parent1</code> and <code>parent2</code> are for inheritance. <code>parent1</code> is for the parent with the same gender as the unit, and <code>parent2</code> is the other one. | ||
[[Category:Stat templates]] | [[Category:Stat templates]] |
Revision as of 06:29, 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 a unit has two holy blood types, also set holyblood2
and major2
parameters. If the unit only has minor holy blood, don't include major
(or major2
for a second holy blood type).
parent1
and parent2
are for inheritance. parent1
is for the parent with the same gender as the unit, and parent2
is the other one.