Difference between revisions of "Template:Skill infobox"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:skillnumber|{{#expr:{{#var:skillnumber|-1}}+1}}}}{{#css: | <includeonly>{{#vardefine:skillnumber|{{#expr:{{#var:skillnumber|-1}}+1}}}}{{#css: | ||
table.infobox { | table.skill-infobox { | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
Line 13: | Line 13: | ||
} | } | ||
table.infobox th { | table.skill-infobox th { | ||
padding: 0em 1em 0em 1em; | padding: 0em 1em 0em 1em; | ||
} | } | ||
table.infobox tr:first-child th { | table.skill-infobox tr:first-child th { | ||
background-color: #ccf; | background-color: #ccf; | ||
padding: 0.5em 1em 0.5em 1em; | padding: 0.5em 1em 0.5em 1em; | ||
Line 23: | Line 23: | ||
} | } | ||
table.infobox tr:not(:first-child) th { | table.skill-infobox tr:not(:first-child) th { | ||
background-color: #ddf; | background-color: #ddf; | ||
} | } | ||
table.infobox tr:not(:first-child) th + th { | table.skill-infobox tr:not(:first-child) th + th { | ||
background-color: #e4e4ff; | background-color: #e4e4ff; | ||
} | } | ||
table.infobox td { | table.skill-infobox td { | ||
text-align: left; | text-align: left; | ||
padding: 0px 7px 0px 7px; | padding: 0px 7px 0px 7px; | ||
Line 115: | Line 115: | ||
|{{#show: {{#var:precursor skill subobj}} |?Has English name }} | |{{#show: {{#var:precursor skill subobj}} |?Has English name }} | ||
}} | }} | ||
}}<table id="skill{{#var:skillnumber}}" class="infobox" style="{{#ifeq:{{{floats|true}}}|true|float: right;}}"> | }}<table id="skill{{#var:skillnumber}}" class="skill-infobox" style="{{#ifeq:{{{floats|true}}}|true|float: right;}}"> | ||
<tr> | <tr> | ||
<th colspan="2">{{#if:{{{jp-en name|}}}|<abbr title="{{{jp-en name}}}"><u>{{#var:skill en name|{{{en name|???}}}}}</u></abbr>|{{#var:skill en name|{{{en name|???}}}}}}}</th> | <th colspan="2">{{#if:{{{jp-en name|}}}|<abbr title="{{{jp-en name}}}"><u>{{#var:skill en name|{{{en name|???}}}}}</u></abbr>|{{#var:skill en name|{{{en name|???}}}}}}}</th> |
Revision as of 14:59, 25 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% |