Difference between revisions of "Template:Formulas/doc"
From Wildermyth Wiki
FeralKitty (talk | contribs) (Created page with "<includeonly>: ''This documentation is transcluded from Template:Formulas/doc''</includeonly><!-- --><noinclude><div class="messagebox" style="padding-left:1ex;">'''This i...") |
FeralKitty (talk | contribs) (Omit static "Damage: " (since mathFormulas now contains type of formula)) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 7: | Line 7: | ||
The Infobox uses the following parameters: | The Infobox uses the following parameters: | ||
; ''damage'' : (Mathematical) damage equation | |||
; ''note'' : Optional note(s) about the targets | ; ''note'' : Optional note(s) about the targets | ||
| Line 14: | Line 16: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Formulas | {{Formulas | ||
| damage = {{Data mathFormula|Witherbolt}} | |||
| note = Blah blah blah | | note = Blah blah blah | ||
}} | }} | ||
| Line 19: | Line 22: | ||
{{Formulas | {{Formulas | ||
| damage = {{Data mathFormula|Witherbolt}} | |||
| note = Blah blah blah | | note = Blah blah blah | ||
}} | }} | ||
== 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 | |||
| damage = {{Data mathFormula|NoSuchAbility}} | |||
}} | |||
<includeonly>[[Category:Template]]</includeonly> | |||
Latest revision as of 14:21, 30 January 2022
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. |