Template:EXSkillTable: Difference between revisions
No edit summary |
(support per-level skill cost changes) |
||
Line 1: | Line 1: | ||
<includeonly> |
|||
⚫ | |||
{{#vardefine: max_level_with_cost_reduction | 0 }} |
|||
{{#vardefine: max_level_cost | {{{SkillBaseCost}}} }} |
|||
{{#vardefine: i | 1 }} |
|||
{{#while: |
|||
| {{#ifexpr: {{#var: i }} < 6 | true }} |
|||
| {{#vardefine: max_level_cost | {{{SkillCostLv{{#var: i }} |}}} }}{{#vardefine: max_level_with_cost_reduction | {{#var: i }} }}{{#vardefine: i |
|||
| {{#expr: {{#var: i }} + 1 }} |
|||
}} |
|||
}} |
|||
{{#vardefine: rowspan_1 | 5 }} |
|||
{{#vardefine: rowspan_2 | 0 }} |
|||
{{#vardefine: rowspan_3 | 0 }} |
|||
{{#vardefine: rowspan_4 | 0 }} |
|||
{{#vardefine: rowspan_5 | 0 }} |
|||
{{#vardefine: i | 1 }} |
|||
{{#while: |
|||
| {{#ifexpr: {{#var: i }} < 6 | true }} |
|||
| |
|||
{{#if: {{{SkillCostLv{{#var: i }} |}}} | |
|||
{{#vardefine: j | 1 }} |
|||
{{#while: |
|||
| {{#ifexpr: {{#var: j }} < {{#var: i }} | true }} |
|||
| |
|||
{{#ifexpr: {{#var: rowspan_{{#var: j }} }} > {{#expr: {{#var: i }} - {{#var: j }} }} | {{#vardefine: rowspan_{{#var: j }} | {{#expr: {{#var: i }} - {{#var: j }} }} }} }} |
|||
{{#vardefine: j | {{#expr: {{#var: j }} + 1 }} }} |
|||
}} |
|||
{{#vardefine: rowspan_{{#var: i }} | {{#expr: 6 - {{#var: i }} }} }} |
|||
{{#ifexpr: {{#expr: {{#var: i }} = 5 }} | {{#vardefine: rowspan_5 | 1 }} }} |
|||
}} |
|||
{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} |
|||
}} |
|||
}} |
|||
⚫ | |||
|- class="summary" |
|- class="summary" |
||
|style="width:10%"|'''EX Skill'''<br>Cost {{{SkillBaseCost}}}{{# |
|style="width:10%"|'''EX Skill'''<br>Cost {{{SkillBaseCost}}}{{#ifexpr: {{#var: max_level_cost }} <> {{{SkillBaseCost|}}} | <br><span style="color:red">(Level {{#var: max_level_with_cost_reduction }}+)<br>Cost {{#var: max_level_cost }}</span> | }} |
||
|colspan="2" style="position: relative; padding-left:74px;" |{{#if:{{{SkillIcon|}}}|[[File:{{{SkillIcon|}}}.png|64x64px|left]]|{{SkillIcon|{{{SkillDamageType}}}|{{{SkillIconType}}}}}}} |
|colspan="2" style="position: relative; padding-left:74px;" |{{#if:{{{SkillIcon|}}}|[[File:{{{SkillIcon|}}}.png|64x64px|left]]|{{SkillIcon|{{{SkillDamageType}}}|{{{SkillIconType}}}}}}} |
||
<br>'''{{#if:{{{SkillNameJP|}}}|{{{SkillNameJP}}}<span style="color:#a2a9b1; word-spacing: 0.4em;"> • </span>|}}{{{SkillName}}}'''<br>{{{SkillDescriptionGeneral}}} |
<br>'''{{#if:{{{SkillNameJP|}}}|{{{SkillNameJP}}}<span style="color:#a2a9b1; word-spacing: 0.4em;"> • </span>|}}{{{SkillName}}}'''<br>{{{SkillDescriptionGeneral}}} |
||
Line 10: | Line 44: | ||
|- |
|- |
||
|1 |
|1 |
||
|rowspan="{{# |
|rowspan="{{#var: rowspan_1 }}" style="text-align:center"| {{{SkillBaseCost}}} |
||
|{{{SkillDescriptionLv1}}} |
|{{{SkillDescriptionLv1}}} |
||
|- |
|- |
||
|2 |
|2 |
||
{{#ifexpr: {{#var: rowspan_2 }} > 0 | {{!}} rowspan="{{#var: rowspan_2 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv2|}}}</span> }} |
|||
|{{{SkillDescriptionLv2}}} |
|{{{SkillDescriptionLv2}}} |
||
|- |
|- |
||
|3 |
|3 |
||
{{# |
{{#ifexpr: {{#var: rowspan_3 }} > 0 | {{!}} rowspan="{{#var: rowspan_3 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv3|}}}</span> }} |
||
|{{{SkillDescriptionLv3}}} |
|{{{SkillDescriptionLv3}}} |
||
|- |
|- |
||
|4 |
|4 |
||
{{# |
{{#ifexpr: {{#var: rowspan_4 }} > 0 | {{!}} rowspan="{{#var: rowspan_4 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv4|}}}</span> }} |
||
|{{{SkillDescriptionLv4}}} |
|{{{SkillDescriptionLv4}}} |
||
|- |
|- |
||
|5 |
|5 |
||
{{# |
{{#ifexpr: {{#var: rowspan_5 }} > 0 | {{!}} rowspan="{{#var: rowspan_5 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv5|}}}</span> }} |
||
|{{{SkillDescriptionLv5}}} |
|{{{SkillDescriptionLv5}}} |
||
|} |
|||
</includeonly><noinclude> <nowiki>{{EXSkillTable |
|||
|SkillName= |
|SkillName= |
||
|SkillNameJP= |
|SkillNameJP= |
||
|SkillBaseCost= |
|SkillBaseCost= |
||
| |
|SkillCostLv2=(fill in if skill has a cost reduction at given level levels) |
||
. |
|||
|SkillUpgradedCostLv=(level at which cost is reduced) |
|||
. |
|||
|SkillCostLv5= |
|||
|SkillDamageType=(Explosive/Penetration/Mystic) |
|SkillDamageType=(Explosive/Penetration/Mystic) |
||
|SkillIconType=(Skill icon name) |
|SkillIconType=(Skill icon name) |
||
|SkillDescriptionGeneral= |
|SkillDescriptionGeneral= |
||
|SkillDescriptionLv1= To highlight values similar to ingame, use |
|SkillDescriptionLv1= To highlight values similar to ingame, use {{SkillValue|text}}. To highlight major changes, use <span style="color:red">text</span> |
||
. |
. |
||
. |
. |
||
Line 50: | Line 88: | ||
"description": "Cost of skill at level 1.", |
"description": "Cost of skill at level 1.", |
||
"required": true |
"required": true |
||
}, |
|||
"SkillCostLv2": { |
|||
"description": "Cost of skill at level 2, if there's a change on given level." |
|||
}, |
|||
"SkillCostLv3": { |
|||
"description": "Cost of skill at level 3, if there's a change on given level." |
|||
}, |
|||
"SkillCostLv4": { |
|||
"description": "Cost of skill at level 4, if there's a change on given level." |
|||
}, |
|||
"SkillCostLv5": { |
|||
"description": "Cost of skill at level 5, if there's a change on given level." |
|||
}, |
}, |
||
"SkillUpgradedCost": { |
"SkillUpgradedCost": { |
||
"description": "Only needs a value if the skill gets a cost reduction at a certain level." |
"description": "Only needs a value if the skill gets a cost reduction at a certain level.", |
||
"deprecated": "Specify SkillCostLv* instead" |
|||
}, |
}, |
||
"SkillUpgradedCostLv": { |
"SkillUpgradedCostLv": { |
||
"description": "The level at which a skill's cost is reduced." |
"description": "The level at which a skill's cost is reduced.", |
||
"deprecated": "Specify SkillCostLv* instead" |
|||
}, |
}, |
||
"SkillDamageType": { |
"SkillDamageType": { |
Revision as of 05:46, 21 May 2021
{{EXSkillTable |SkillName= |SkillNameJP= |SkillBaseCost= |SkillCostLv2=(fill in if skill has a cost reduction at given level levels) . . |SkillCostLv5= |SkillDamageType=(Explosive/Penetration/Mystic) |SkillIconType=(Skill icon name) |SkillDescriptionGeneral= |SkillDescriptionLv1= To highlight values similar to ingame, use {{SkillValue|text}}. To highlight major changes, use <span style="color:red">text</span> . . . |SkillDescriptionLv5= }}
See page Template:SkillIcon for valid skill icons reference
Table for displaying EX Skill information. Use the SkillTable template for the other skills.
Parameter | Description | Type | Status | |
---|---|---|---|---|
SkillBaseCost | SkillBaseCost | Cost of skill at level 1. | Unknown | required |
SkillCostLv2 | SkillCostLv2 | Cost of skill at level 2, if there's a change on given level. | Unknown | optional |
SkillCostLv3 | SkillCostLv3 | Cost of skill at level 3, if there's a change on given level. | Unknown | optional |
SkillCostLv4 | SkillCostLv4 | Cost of skill at level 4, if there's a change on given level. | Unknown | optional |
SkillCostLv5 | SkillCostLv5 | Cost of skill at level 5, if there's a change on given level. | Unknown | optional |
SkillUpgradedCost | SkillUpgradedCost | Only needs a value if the skill gets a cost reduction at a certain level. | Unknown | deprecated |
SkillUpgradedCostLv | SkillUpgradedCostLv | The level at which a skill's cost is reduced. | Unknown | deprecated |
SkillDamageType | SkillDamageType | Explosive, Penetration, Mystic | Unknown | optional |
SkillIconType | SkillIconType | Skill icon name. Refer to SkillIcon template
| Unknown | optional |
SkillIcon | SkillIcon | Filename for skill icon, excluding .png extension, overrides SkillIcon template output set by SkillDamageType/SkillIconType. | Unknown | deprecated |
SkillName | SkillName | no description | Unknown | required |
SkillNameJP | SkillNameJP | no description | Unknown | optional |
SkillDescriptionGeneral | SkillDescriptionGeneral | A generic description of the skill. Replace the value that changes upon level up with X. Use {{SkillValue|text}} to highlight values like in game. Use <span style="color:red">text</span> to highlight major changes after certain levels.
| Unknown | required |
SkillDescriptionLv1 | SkillDescriptionLv1 | Use {{SkillValue|text}} to highlight values like in game. Use <span style="color:red">text</span> to highlight major changes after certain levels. | Unknown | optional |
SkillDescriptionLv2 | SkillDescriptionLv2 | Use {{SkillValue|text}} to highlight values like in game. Use <span style="color:red">text</span> to highlight major changes after certain levels. | Unknown | optional |
SkillDescriptionLv3 | SkillDescriptionLv3 | Use {{SkillValue|text}} to highlight values like in game. Use <span style="color:red">text</span> to highlight major changes after certain levels. | Unknown | optional |
SkillDescriptionLv4 | SkillDescriptionLv4 | Use {{SkillValue|text}} to highlight values like in game. Use <span style="color:red">text</span> to highlight major changes after certain levels. | Unknown | optional |
SkillDescriptionLv5 | SkillDescriptionLv5 | Use {{SkillValue|text}} to highlight values like in game. Use <span style="color:red">text</span> to highlight major changes after certain levels. | Unknown | optional |