Difference between revisions of "Template:Formulas"
From Wildermyth Wiki
FeralKitty (talk | contribs) (Change from subpage to damage parameter) |
FeralKitty (talk | contribs) m (Return (None) instead of ??? if no damage (formula) is available) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
| <strong>Formulas</strong> | | <strong>Formulas</strong> | ||
|- | |- | ||
| <pre</includeonly><includeonly> style="margin: 0; border: 0px">{{#if:{{{damage|}}}|{{{damage}}}| | | <pre</includeonly><includeonly> style="margin: 0; border: 0px">{{#if:{{{damage|}}}|{{{damage}}}|(None)}}</pre> | ||
|- | |- | ||
| {{#if:{{{note|}}}|<div style="clear: both;"></div>Note: {{{note}}}}}<!-- | | {{#if:{{{note|}}}|<div style="clear: both;"></div>Note: {{{note}}}}}<!-- | ||
--><div style="clear: both;"></div>See [[Formulas Guide]] for help with math functions. | --><div style="clear: both;"></div>See [[Formulas Guide]] for help with math functions. | ||
|} | |}</includeonly><noinclude> | ||
</includeonly><noinclude> | |||
{{Formulas/doc}} | {{Formulas/doc}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 12:30, 22 January 2022
- This documentation is transcluded from Template:Formulas/doc
Usage
This template displays the formulas for an ability.
The Infobox uses the following parameters:
- damage
- (Mathematical) damage equation
- note
- Optional note(s) about the targets
Example
{{Formulas | damage = {{Data mathFormula|Witherbolt}} | note = Blah blah blah }}
Formulas |
Initial Damage: ceil((1+(((self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)/4)*(1+self.theme_green_upgrade))))+self.theme_green_upgrade |
Note: Blah blah blahSee Formulas Guide for help with math functions. |
Technical details
See also: Template:Data mathFormula
To maintain a consistent design across all ability pages, the Formulas table is always visible, even when the game data returns no math formula.
Formulas |
(None) |
See Formulas Guide for help with math functions. |