Template:Bonus damage ability/doc

From Wildermyth Wiki
< Template:Bonus damage ability
Revision as of 12:00, 21 January 2022 by FeralKitty (talk | contribs) (Created page with "<includeonly>: ''This documentation is transcluded from Template:Bonus damage ability/doc''</includeonly><!-- --><noinclude><div class="messagebox" style="padding-left:1ex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Bonus damage ability.

This template is used by the game data process to help keep pages up-to-date. It should not need to be called manually.

Usage

This template displays a reference to Bonus Damage. Abilities that benefit from Bonus Damage are also auto-categorized (as Category:Bonus damage ability).

The template uses the following parameter:

pagename
The (sub)pagename (e.g., Bear Hug) of the ability that benefits from Bonus Damage. Categorization will only occur on that (sub)page.

Example

Damage: (3 to 5) + ({{Bonus damage ability|pagename=Bear Hug}} + {{Potency ability|pagename=Bear Hug}})

Damage: (3 to 5) + (Bonus Damage + Potency)

Technical details

Formula data comes from Wildermyth's.properties files. For example, assets/text/effects/bear/bearHug.properties includes the following line:

.formula=Damage: (3 to 5) + (Bonus Damage + Potency)
.name=Bear Hug

On the wiki, the formula game data Bear Hug = Damage: (3 to 5) + ({{Bonus damage ability|pagename=Bear Hug}} + {{Potency ability|pagename=Bear Hug}}) uses this template to link Bonus Damage, and possibly categorize it (only if the text appears on the Bear Hug page).