Difference between revisions of "Template:Skill extended infobox"
Jump to navigation
Jump to search
Line 46: | Line 46: | ||
{{#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|{{ | {{#vardefine:skill effect num|{{{effect|0}}}}} | ||
{{#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|}}}} | ||
}}<!-- end define vars --><!-- create subobject | }}<!-- end define vars --><!-- create subobject | ||
--> | -->{#subobject:skill{{#var:skillnumber}} | ||
| 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|}}}}} | ||
| Has English name ={{#var: skill en name|{{{en name|}}}}} | | Has English name ={{#var: skill en name|{{{en name|}}}}} | ||
| Has Japanese-English name = {{{jp-en name|}}} | | Has Japanese-English name = {{{jp-en name|}}} | ||
| Has lowercase English name ={{lc:{{#var: skill en name|{{{en name|}}}}}}} | | Has lowercase English name ={{lc:{{#var: skill en name|{{{en name|}}}}}}} | ||
Line 78: | Line 64: | ||
| Has evolved skill={{{evolution|}}} | | Has evolved skill={{{evolution|}}} | ||
| Has precursor skill={{{precursor|}}} | | Has precursor skill={{{precursor|}}} | ||
| Has ID = {{#var:skill id|}} | | Has ID = {{#var:skill id|}} | ||
| Has effect ID = {{#var:skill effect num|1}} | |||
}}<!-- end of subobject creation | }}<!-- end of subobject creation | ||
--> | -->{{#ifexpr:{{#var:skillnumber}} > 0|[[Category:Skill with additional effects]]{{#if:{{#pos:{{{jp description|}}}|Hidden:}}||{{#subobject:skill0 | ||
| Has preformatted English description = <br>{{#var:skill desc}} | | Has preformatted English description = <br>{{#var:skill desc}} | ||
| Has raw English description = <br>{{#var:raw skill desc}} | | Has raw English description = <br>{{#var:raw skill desc}} | ||
}}}}<!-- Grab evolution and precursor name --> | |||
{{#vardefine:evolution skill subobj| | {{#vardefine:evolution skill subobj| | ||
{{#if: {{{evolution|}}} | {{#if: {{{evolution|}}} |
Revision as of 20:12, 28 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)