Difference between revisions of "Template:Status effect"

From Wildermyth Wiki
(Categorize Dominated)
(Switch to named parameters. Use {{SUBPAGENAME}} to conditionally categorize pages that use this template.)
 
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1}}}}}<!-- list more common status effects first (for performance reasons): hobbled, pinned, poisoned, blinded, engaged, stunned, hidden, then deafened. Monster status effects also included at end (although not categorized). -->
<includeonly>{{#switch:{{lc:{{{word}}}}}<!-- list more common status effects first (for performance reasons): hobbled, pinned, poisoned, blinded, engaged, stunned, hidden, then deafened. Monster status effects also included at end (although not categorized). -->
| hobble
| hobble
| hobbled
| hobbled
| hobbles
| hobbles
| hobbling = [[Hobbled|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Hobbled]]}}
| hobbling = [[Hobbled|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|[[Category:Hobbled]]}}
| pin
| pin
| pinned
| pinned
| pinning
| pinning
| pins = [[Pinned|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Pinned]]}}
| pins = [[Pinned|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|[[Category:Pinned]]}}
| poison
| poison
| poisons
| poisons
| poisoned = [[Poisoned|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Poisoned]]}}
| poisoned = [[Poisoned|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|[[Category:Poisoned]]}}
| blind
| blind
| blinding
| blinding
| blinds = [[Blinded|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Blinded]]}}
| blinds = [[Blinded|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|[[Category:Blinded]]}}
| engaged
| engaged
| engages = [[Engaged|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Engaged]]}}
| engages = [[Engaged|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|[[Category:Engaged]]}}
| stun
| stun
| stuns
| stuns
| stunned
| stunned
| stunning = [[Stunned|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Stunned]]}}
| stunning = [[Stunned|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|[[Category:Stunned]]}}
| hidden = [[Hidden|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Hidden]]}}
| hidden = [[Hidden|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}||[[Category:Hidden]]}}
| deafens = [[Deafened|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Deafened]]}}
| deafens = [[Deafened|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|[[Category:Deafened]]}}
| dominates
| dominates
| dominating = [[Dominated|<span class="tooltip-ability__status-effect">{{{1}}}</span>]]{{#if:{{NAMESPACE}}||[[Category:Dominated]]}}<!-- .thrixl_dominated -->
| dominating = [[Dominated|<span class="tooltip-ability__status-effect">{{{word}}}</span>]]{{#ifeq:{{SUBPAGENAME}}|{{{pagename|}}}|[[Category:Dominated]]}}<!-- .thrixl_dominated -->
| acid = {{{1}}}<!-- .acid -->
| acid = {{{1}}}<!-- .acid -->
| concuss = {{{1}}}<!-- .concussed -->
| concuss = {{{1}}}<!-- .concussed -->
Line 34: Line 34:
| mindworm = {{{1}}}<!-- .mindwormed -->
| mindworm = {{{1}}}<!-- .mindwormed -->
| stasis = {{{1}}}<!-- .stasis -->
| stasis = {{{1}}}<!-- .stasis -->
| #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;">(unrecognized word “{{{word}}}” for [[Template:Status effect]])</span>[[Category:Pages with unrecognized status effects]]
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Status effect/doc}}
{{Status effect/doc}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 12:54, 21 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 stunning 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 word “hides” for Template:Status effect) from the monster.

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

Cipolla (unrecognized word “hypnotizes” for Template:Status effect) the waiter.