Difference between revisions of "Template:Skill extended infobox"
Jump to navigation
Jump to search
(t) |
|||
Line 39: | Line 39: | ||
{{#if:{{#var:skill en name|}}||{{#vardefine:skill en name|{{#explode:{{{en name|}}}|/|0}}}}}} | {{#if:{{#var:skill en name|}}||{{#vardefine:skill en name|{{#explode:{{{en name|}}}|/|0}}}}}} | ||
{{#if:{{#var:skill en name|}}||{{#vardefine:skill jp name|{{#replace:{{#explode:{{{jp name|}}}|/|0}}}}|+|+}}}} | {{#if:{{#var:skill en name|}}||{{#vardefine:skill jp name|{{#replace:{{#explode:{{{jp name|}}}|/|0}}}}|+|+}}}} | ||
{{#vardefine:skill effect num|{{{effect| | {{#vardefine:skill effect num|{{{effect|1}}}}} | ||
{{#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|}}}} | ||
}}{{#ifeq:{{#var:skill effect num|1}}|1| | |||
}}<!-- end define vars --><!-- create subobject | }}<!-- end define vars --><!-- create subobject | ||
-->{{#subobject:skill{{#var:skillnumber}} | -->{{#subobject:skill{{#var:skillnumber}} | ||
Line 66: | Line 68: | ||
}}}}}}<!-- Grab evolution and precursor name --> | }}}}}}<!-- Grab evolution and precursor name --> | ||
{{#vardefine:evolution skill subobj| | {{#vardefine:evolution skill subobj| | ||
{{#if: {{{evolution|}}} | <!--{{#if: {{{evolution|}}} | ||
|{{#ask: | |-->{{#ask: | ||
[[Has game context::Skill]] | [[Has game context::Skill]] | ||
[[Has Japanese name::{{{ | [[Has Japanese name::{{#var:skill jp name|{{{jp name|}}}}}+]] | ||
|link=none | |link=none | ||
|limit=1 | |limit=1 | ||
Line 75: | Line 77: | ||
|searchlabel= | |searchlabel= | ||
}} | }} | ||
}} | <!--}}--> | ||
}}{{#vardefine:evolution skill en name| | }}{{#vardefine:evolution skill en name| | ||
{{#if: {{#var:evolution skill subobj|}} | {{#if: {{#var:evolution skill subobj|}} |
Revision as of 16:09, 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)