Difference between revisions of "Template:Formulas/doc"

From Wildermyth Wiki
(Created page with "<includeonly>: ''This documentation is transcluded from Template:Formulas/doc''</includeonly><!-- --><noinclude><div class="messagebox" style="padding-left:1ex;">'''This i...")
 
(Change from subpage to damage parameter)
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 = Damage: floor(max(1,(self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)))+(2*self.warriorDeck_broadswipes_upgrade)<br>Range: max(1.6,weapon.weaponMaxRange)+self.BONUS_RANGE
| note = Blah blah blah
| note = Blah blah blah
}}
}}
Line 19: Line 22:


{{Formulas
{{Formulas
| damage = Damage: floor(max(1,(self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)))+(2*self.warriorDeck_broadswipes_upgrade)<br>Range: max(1.6,weapon.weaponMaxRange)+self.BONUS_RANGE
| note = Blah blah blah
| note = Blah blah blah
}}
}}

Revision as of 16:51, 21 September 2021

This is a documentation subpage for Template:Formulas.

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 = Damage: floor(max(1,(self.PHYSICAL_DAMAGE_BONUS+self.POTENCY)))+(2*self.warriorDeck_broadswipes_upgrade)<br>Range: max(1.6,weapon.weaponMaxRange)+self.BONUS_RANGE
| note = Blah blah blah
}}