Template:Potency ability

From Wildermyth Wiki
Revision as of 12:01, 21 January 2022 by FeralKitty (talk | contribs) (Created page with "<includeonly>Potency{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|Category:Potency ability}}</includeonly><noinclude> {{Potency ability/doc}} <!-- Add categorie...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This documentation is transcluded from Template:Potency ability/doc

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 Potency. Abilities that benefit from Potency are also auto-categorized (as Category:Potency ability).

The template uses the following parameter:

pagename
The (sub)pagename (e.g., Bear Hug) of the ability that benefits from Potency. 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 Potency, and possibly categorize it (only if the text appears on the Bear Hug page).