Difference between revisions of "Template:Skill infobox"
Jump to navigation
Jump to search
Line 48: | Line 48: | ||
<!-- just dont define it, it breaks a lot of things --> | <!-- just dont define it, it breaks a lot of things --> | ||
{{#vardefine:skill en name|{{#explode:{{{en name|}}}|/|0}}}} | |||
{{#vardefine:skill jp name|{{#explode:{{{jp name|}}}|/|0}}}} | |||
{{#vardefine:skill effect num|{{#explode:{{{jp name|}}}|/|1}}}} | |||
}}<!-- end define vars --><!-- create subobject | }}<!-- end define vars --><!-- create subobject | ||
-->{{#vardefine:additional skills jp name | --><!--{{#vardefine:additional skills jp name | ||
|{{#if:{{#explode:{{{jp name|}}}|/|1}} | |{{#if:{{#explode:{{{jp name|}}}|/|1}} | ||
|{{#explode:{{{jp name|}}}|/|0}}/{{#expr:{{#explode:{{{jp name|}}}|/|1}}+1}} | |{{#explode:{{{jp name|}}}|/|0}}/{{#expr:{{#explode:{{{jp name|}}}|/|1}}+1}} | ||
Line 63: | Line 66: | ||
|searchlabel= | |searchlabel= | ||
}} | }} | ||
}}{{#subobject:skill{{#var:skillnumber}} | }}-->{{#subobject:skill{{#var:skillnumber}} | ||
| Has game context =Skill | | Has game context =Skill | ||
| Has Japanese name ={{{jp name|}}} | | Has Japanese name ={{#var:skill jp name|{{{jp name|}}}}} | ||
| Has English name ={{{en name|}}} | | Has English name ={{#var: skill en name|{{{en name|}}}}} | ||
| Has effect ID = {{#var:skill effect num}} | |||
| Has Japanese-English name = {{{jp-en name|}}} | | Has Japanese-English name = {{{jp-en name|}}} | ||
| Has lowercase English name ={{lc:{{{en name|}}}}} | | Has lowercase English name ={{lc:{{#var: skill en name|{{{en name|}}}}}}} | ||
| Has Japanese description ={{{jp description|}}} | | Has Japanese description ={{{jp description|}}} | ||
| Has English description ={{{en description|}}} | | Has English description ={{{en description|}}} | ||
Line 77: | Line 81: | ||
| Has evolved skill={{{evolution|}}} | | Has evolved skill={{{evolution|}}} | ||
| Has precursor skill={{{precursor|}}} | | Has precursor skill={{{precursor|}}} | ||
| Has additional skills={{#var:additional skills subobj|}} | | <!--Has additional skills={{#var:additional skills subobj|}}--> | ||
| Has ID = {{{id|}}} | | Has ID = {{{id|}}} | ||
}}<!-- end of subobject creation | }}<!-- end of subobject creation | ||
--><!-- test -->{{#ifexpr:{{#var:skillnumber}} > 0|{{#subobject:skill0 | --><!-- test -->{{#ifexpr:{{#var:skillnumber}} > 0|{{#subobject:skill0 | ||
| Has preformatted English description = {{#var:skill desc}} | | Has preformatted English description = <br>{{#var:skill desc}} | ||
| Has raw English description = {{#var:raw skill desc | | Has raw English description = <br>{{#var:raw skill desc}} | ||
}}{{#var:skillnumber}} }}<!-- Grab evolution and precursor name --> | }}{{#var:skillnumber}} }}<!-- Grab evolution and precursor name --> | ||
{{#vardefine:evolution skill subobj| | {{#vardefine:evolution skill subobj| | ||
Line 151: | Line 153: | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{#var:additional skills subobj|}}|[[Category:Skills with additional effects]] | <!--{{#if:{{#var:additional skills subobj|}}|[[Category:Skills with additional effects]] | ||
<tr> | <tr> | ||
<th colspan="2">This skill has [[{{#var:additional skills subobj|}}|additional effects]]</th> | <th colspan="2">This skill has [[{{#var:additional skills subobj|}}|additional effects]]</th> | ||
</tr> | |||
}}--> | |||
{{#ifexpr:{{#var:skillnumber}} > 0| | |||
<tr> | |||
<th colspan="2">This skill an additional effect</th> | |||
</tr> | </tr> | ||
}} | }} |
Revision as of 19:34, 10 December 2018
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 Japanese-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
- Has evolved skill
- Has precursor skill
- Has additional skills
Usage
{{Skill infobox | jp name = | en name = | jp-en name = | jp trigger timing = | jp description = | en description = | proc chance = }}
Parameters
- jp name
- Japanese name.
- en name
- English name.
- jp-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.
- evolution
- The skill's evolution
- precursor
- The skill's pre-evolution (base)
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% |