Difference between revisions of "Template:Status effect"

From Wildermyth Wiki
(Created page with "<includeonly>{{#switch:{{lc:{{{1}}}}}<!-- list more common status effects first (for performance reasons): hobbled, pinned, poisoned, blinded, engaged, stunned, hidden, then d...")
 
(Categorize Dominated)
Line 22: Line 22:
| hidden = [[Hidden|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Hidden]]}}
| hidden = [[Hidden|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Hidden]]}}
| deafens = [[Deafened|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Deafened]]}}
| deafens = [[Deafened|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Deafened]]}}
| dominates
| dominating = [[Dominated|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Dominated]]}}<!-- .thrixl_dominated -->
| acid = {{{1}}}<!-- .acid -->
| acid = {{{1}}}<!-- .acid -->
| concuss = {{{1}}}<!-- .concussed -->
| concuss = {{{1}}}<!-- .concussed -->
Line 32: Line 34:
| mindworm = {{{1}}}<!-- .mindwormed -->
| mindworm = {{{1}}}<!-- .mindwormed -->
| stasis = {{{1}}}<!-- .stasis -->
| stasis = {{{1}}}<!-- .stasis -->
| dominates
| dominating = {{{1}}}<!-- .thrixl_dominated -->
| #default = <span style="color: red; font-size: 11px;">(unrecognized string “{{{1}}}” for [[Template:Status effect]])</span>[[Category:Pages with unrecognized status effects]]
| #default = <span style="color: red; font-size: 11px;">(unrecognized string “{{{1}}}” for [[Template:Status effect]])</span>[[Category:Pages with unrecognized status effects]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Revision as of 15:38, 15 January 2022

This documentation is transcluded from Template:Status effect/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 stylized reference to a status effect. Hero status effects are also auto-categorized, although monster status effects aren't.

The template uses the following parameters:

word
a word (e.g., hobble, hobbles, hobbled, hobbling) associated with a status effect. The word can be capitalized.
pagename
The (sub)pagename (e.g., Bear Hug) of the ability that applies the status effect. The status effect will only be categorized on that (sub)page.

Example

Hero grabs an enemy, dealing damage and {{Status effect|word=stunning|pagename=Bear Hug}} them.

Hero grabs an enemy, dealing damage and (unrecognized string “{{{1}}}” for Template:Status effect) them.

Technical details

Description (.blurb) data comes from Wildermyth's.properties files. For example, assets/text/effects/bear/bearHug.properties includes the following lines:

.blurb=<self> grabs an enemy, dealing damage and [:statusEffect.senseless]stunning[] them.
.name=Bear Hug

The [:statusEffect.senseless]stunning[] markup stylizes the word stunning for the UI's action tooltips, and character sheet. On the wiki, the stylized text is also linked (to the appropriate status effect page), and possibly categorized (only if the text appears on the Bear Hug page).

Unrecognized words

If the developers add a new status effect to the game (or a new associated word for an existing status effect), the associated word(s) (and any new status effect category) would need to be added to this template.

Victor {{Status effect|word=hides|pagename=Hidden}} from the monster.

Victor (unrecognized string “{{{1}}}” for Template:Status effect) from the monster.

Cipolla {{Status effect|word=hypnotizes|pagename=Hypnotized}} the waiter.

Cipolla (unrecognized string “{{{1}}}” for Template:Status effect) the waiter.