Difference between revisions of "Template:Skill infobox"
Jump to navigation
Jump to search
Line 40: | Line 40: | ||
{{#vardefine:skill desc|[{{Skill trigger timing|{{{jp trigger timing|}}}}}] {{#if:{{{en description|}}}|{{{en description}}}|{{{jp description|?}}}}} / {{{proc chance|0}}}%}} | {{#vardefine:skill desc|[{{Skill trigger timing|{{{jp trigger timing|}}}}}] {{#if:{{{en description|}}}|{{{en description}}}|{{{jp description|?}}}}} / {{{proc chance|0}}}%}} | ||
<!-- split string at html tags (i.g. strip them) --> | |||
{{#arraydefine:raw skill desc|{{#var:skill desc}}|/<[^>]*>/}} | {{#arraydefine:raw skill desc|{{#var:skill desc}}|/<[^>]*>/}} | ||
<!-- use whitespace as delimiter --> | |||
{{#vardefine:raw skill desc|{{#arrayprint:raw skill desc|<nowiki> </nowiki>|@@@|@@@}}}} | |||
}}<!-- end define vars -->{{#subobject:skill{{#vardefineecho:skillnumber|{{#expr:{{#var:skillnumber|-1}}+1}}}} | }}<!-- end define vars -->{{#subobject:skill{{#vardefineecho:skillnumber|{{#expr:{{#var:skillnumber|-1}}+1}}}} | ||
Line 52: | Line 56: | ||
| Has skill proc chance ={{{proc chance|0}}} | | Has skill proc chance ={{{proc chance|0}}} | ||
| Has preformatted English description ={{#var:skill desc}} | | Has preformatted English description ={{#var:skill desc}} | ||
| Has raw English description ={{# | | Has raw English description ={{#var:raw skill desc}} | ||
}} | }} | ||
Revision as of 00:54, 17 April 2017
Description
This templates creates a formatted string using the skill information as well as a skill subobject using the following properties:
- Has game context
- Has Japanese name
- Has English name
- Has lowercase English name
- Has Japanese description
- Has English description
- Has skill trigger timing
- Has skill proc chance
- Has preformatted English description
- Has raw English description
Usage
{{Skill infobox | jp name = | en name = | jp trigger timing = | jp description = | en description = | proc chance = }}
Parameters
- jp name
- Japanese name.
- en name
- Translated English name.
- jp trigger timing
- Activation method in Japanese without parentheses.
- jp description
- Skill description in Japanese.
- en description
- Translated English skill description.
- proc chance
- The skill's chance to activate at skill level 1 in percent.
Examples
{{Skill infobox | jp name = 獣の末裔 | en name = Beast Descendant | jp trigger timing = 移動後 | jp description = 自身に頑強付与 | en description = Apply {{Status effect|頑強}} to Self | proc chance = 50 }}
Beast Descendant | |
---|---|
JP Name | 獣の末裔 |
Trigger timing | After MovingAfter this unit is held and released by their player. Triggered and applied before [After Not Moving] effects. Effects of the same timing from same unit are all triggered together before they are applied. |
Effect | Apply TenacityDEF Up by 0.9x ~ 0.45x for 1 turn (Buff) to Self |
Proc Chance | 50% |