|
|
(6 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
| |HP1={{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|hp|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|FE4_growths|hp|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|hp|{{{parent1|}}}}} + {{get|FE4_growths|hp|{{{parent2|}}}}}/2 | {{get|FE4_growths|hp|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}
| | {{#expr: floor({{#if:{{{holyblood2|}}} | {{get|Growths_FE4|{{{1}}}|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|Growths_FE4|{{{1}}}|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|Growths_FE4|{{{1}}}|{{{parent1|}}}}} + {{get|Growths_FE4|{{{1}}}|{{{parent2|}}}}}/2 | {{get|Growths_FE4|{{{1}}}|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}<noinclude> |
| |str1={{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|str|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|FE4_growths|str|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|str|{{{parent1|}}}}} + {{get|FE4_growths|str|{{{parent2|}}}}}/2 | {{get|FE4_growths|str|{{{unit|{{ROOTPAGENAME}}}}}}}}})}} | |
| |magic1={{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|mag|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|FE4_growths|mag|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|mag|{{{parent1|}}}}} + {{get|FE4_growths|mag|{{{parent2|}}}}}/2 | {{get|FE4_growths|mag|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}
| |
| |skill1={{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|skl|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|FE4_growths|skl|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|skl|{{{parent1|}}}}} + {{get|FE4_growths|skl|{{{parent2|}}}}}/2 | {{get|FE4_growths|skl|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}
| |
| |spd1={{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|spd|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|FE4_growths|spd|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|spd|{{{parent1|}}}}} + {{get|FE4_growths|spd|{{{parent2|}}}}}/2 | {{get|FE4_growths|spd|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}
| |
| |luck1={{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|lck|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|FE4_growths|lck|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|lck|{{{parent1|}}}}} + {{get|FE4_growths|lck|{{{parent2|}}}}}/2 | {{get|FE4_growths|lck|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}
| |
| |def1={{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|def|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|FE4_growths|def|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|def|{{{parent1|}}}}} + {{get|FE4_growths|def|{{{parent2|}}}}}/2 | {{get|FE4_growths|def|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}
| |
| |res1={{#expr: floor({{#if:{{{holyblood2|}}} | {{get|FE4_growths|res|{{{holyblood2|}}}}}{{#if:{{{major2|}}}|*2}} | 0}} + {{#if:{{{holyblood|}}} | {{get|FE4_growths|res|{{{holyblood|}}}}}{{#if:{{{major|}}}|*2}} | 0}} + {{#if: {{{parent1|}}} | {{get|FE4_growths|res|{{{parent1|}}}}} + {{get|FE4_growths|res|{{{parent2|}}}}}/2 | {{get|FE4_growths|res|{{{unit|{{ROOTPAGENAME}}}}}}}}})}}<noinclude>
| |
| ==Usage==
| |
| Fills growth section of character stats.
| |
|
| |
|
| Type A: Units whose growths aren't inherited; example: Sigurd's strength - {{FE4 growth|str|unit=Sigurd|holyblood=Baldr|major=y}}
| | {{doc}}</noinclude> |
| <pre>{{FE4 growth|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}}
| |
| <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 a unit has two holy blood types, also set <code>holyblood2</code> and <code>major2</code> parameters. If the unit only has minor holy blood, don't include <code>major</code> (or <code>major2</code> for a second holy blood type).
| |
| | |
| <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]]
| |
Latest revision as of 15:30, 24 May 2023
Expression error: Unexpected < operator.
Usage
Type A: Units whose growths aren't inherited; example: Sigurd's strength – 50
{{FE4 growth|str|unit=Sigurd|holyblood=Baldr|major=y}}
Type B: Units whose growths are inherited; example: Seliph – 55
{{FE4 growth|str|parent1=Sigurd|parent2=Deirdre|holyblood=Baldr|major=y|holyblood2=Naga}}
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.
Do not 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.