Difference between revisions of "Template:Skill extended infobox"
Jump to navigation
Jump to search
(t) |
|||
Line 42: | Line 42: | ||
{{#vardefine:skill id|{{{id|{{#masterdata:Skill|{{#var:skill jp name|}}|id:name}}}}}}} | {{#vardefine:skill id|{{{id|{{#masterdata:Skill|{{#var:skill jp name|}}|id:name}}}}}}} | ||
{{#ifexpr:{{#var:skill id|}}<2|{{#vardefine:skill id|}}}} | {{#ifexpr:{{#var:skill id|}}<2|{{#vardefine:skill id|}}}} | ||
}}<!-- Grab evolution and precursor name --> | |||
{{#vardefine:evolution skill subobj| | {{#vardefine:evolution skill subobj| | ||
{{#ask: | |||
[[Has game context::Skill]] | [[Has game context::Skill]] | ||
[[Has Japanese name::{{#var:skill jp name|{{{jp name|}}}}}+]] | [[Has Japanese name::{{#var:skill jp name|{{{jp name|}}}}}+]] | ||
Line 76: | Line 51: | ||
|headers=hide | |headers=hide | ||
|searchlabel= | |searchlabel= | ||
}} | }} | ||
}}{{#vardefine:evolution skill en name| | }}{{#vardefine:evolution skill en name| | ||
{{#if: {{#var:evolution skill subobj|}} | {{#if: {{#var:evolution skill subobj|}} | ||
Line 93: | Line 67: | ||
}} | }} | ||
}} | }} | ||
}}{{#vardefine:precursor skill en name| | }}<!-- end define vars --><!-- create subobject | ||
-->{{#subobject:skill{{#var:skillnumber}} | |||
| Has game context =Skill | |||
| Has Japanese name ={{#var:skill jp name|{{{jp name|}}}}} | |||
| Has English name ={{#var: skill en name|{{{en name|}}}}} | |||
| Has Japanese-English name = {{{jp-en name|}}} | |||
| Has lowercase English name ={{lc:{{#var: skill en name|{{{en name|}}}}}}} | |||
| Has Japanese description ={{{jp description|}}} | |||
| Has English description ={{{en description|}}} | |||
| Has skill trigger timing ={{{jp trigger timing|}}} | |||
| Has skill proc chance ={{{proc chance|0}}} | |||
| Has preformatted English description ={{#var:skill desc}}|+sep=<br> | |||
| Has raw English description ={{#var:raw skill desc}}|+sep=<br> | |||
| Has evolved skill={{#var:evolution skill subobj|}} | |||
| Has precursor skill={{{precursor|}}} | |||
| Has ID = {{#var:skill id|}} | |||
| Has effect ID = {{#var:skill effect num|1}} | |||
| Has range = {{{skill range|}}} | |||
}}<!-- end of subobject creation | |||
-->{{#ifexpr:{{#var:skill effect num|1}} > 1|[[Category:Skill with additional effects]]{{#if:{{#pos:{{{jp description|}}}|Hidden:}}||{{#subobject:{{#explode:{{#ask: [[Has game context::Skill]] [[Has ID::{{#var:skill id|}}]] [[Has effect ID::1]] |link=none |limit=1 |headers=hide |searchlabel=}}|#|1}} | |||
| Has preformatted English description = {{#var:skill desc}} | |||
| Has raw English description = {{#var:raw skill desc}} | |||
}}}}}}{{#vardefine:precursor skill en name| | |||
{{#if: {{#var:precursor skill subobj|}} | {{#if: {{#var:precursor skill subobj|}} | ||
|{{#show: {{#var:precursor skill subobj}} |?Has English name }} | |{{#show: {{#var:precursor skill subobj}} |?Has English name }} | ||
Line 125: | Line 121: | ||
<td>{{{proc chance|0}}}%</td> | <td>{{{proc chance|0}}}%</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{ | {{#if:{{#var:evolution skill subobj|}}| | ||
<tr> | <tr> | ||
<th>Evolution</th> | <th>Evolution</th> |
Revision as of 16:12, 18 March 2019
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)