Template:EXSkillTable/sandbox: Difference between revisions
(layout improvements. Todo: documentation) |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine: max_level_with_cost_reduction | 0 }} |
|||
⚫ | |||
{{#vardefine: max_level_cost | {{#ifexpr: {{ #len:{{{SkillBaseCost|}}} }} > 0 | {{{SkillBaseCost|0}}} | 0 }} }} |
|||
|colspan="2" style="text-align:center; background-color:#d9edfb; width:10%"|'''EX Skill'''<br>Cost {{{SkillBaseCost}}}{{#if: {{{SkillUpgradedCost|}}} | <br><span style="color:red">(Level{{{SkillUpgradedCostLv}}}+)<br>Cost {{{SkillUpgradedCost}}}</span> | }} |
|||
{{#vardefine: i | 1 }} |
|||
⚫ | |||
{{#while: |
|||
⚫ | |||
| {{#ifexpr: {{#var: i }} < 6 | true }} |
|||
| {{#if: {{{SkillCostLv{{#var: i }} |}}} | {{#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" |
|||
|style="width:10%"|'''EX Skill'''<br>Cost {{{SkillBaseCost|?}}}{{#ifexpr: {{#var: max_level_cost }} != {{#ifexpr: {{ #len:{{{SkillBaseCost|}}} }} > 0 | {{{SkillBaseCost|0}}} | 0 }} | <br><span style="color:red">(Level {{#var: max_level_with_cost_reduction }}+)<br>Cost {{#var: max_level_cost }}</span> | }} |
|||
⚫ | |||
⚫ | |||
|- style="color:#ffffff" |
|- style="color:#ffffff" |
||
!style="background-color:#2d4c72"|Lv. |
!style="background-color:#2d4c72"|Lv. |
||
!style="background-color:#2d4c72; width:5%"|Cost |
!style="background-color:#2d4c72; width:5%"|Cost |
||
! |
!style="background-color:#2d4c72"|Description |
||
|- |
|- |
||
|1 |
|||
|style="text-align:center;" |1 |
|||
|rowspan="{{# |
|rowspan="{{#var: rowspan_1 }}" style="text-align:center"| {{{SkillBaseCost|?}}} |
||
|{{{SkillDescriptionLv1|}}} |
|||
|- |
|- |
||
|2 |
|||
|style="text-align:center;" |2 |
|||
{{#ifexpr: {{#var: rowspan_2 }} > 0 | {{!}} rowspan="{{#var: rowspan_2 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv2|}}}</span> }} |
|||
|{{{SkillDescriptionLv2|}}} |
|||
|- |
|- |
||
|3 |
|||
|style="text-align:center;" |3 |
|||
{{# |
{{#ifexpr: {{#var: rowspan_3 }} > 0 | {{!}} rowspan="{{#var: rowspan_3 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv3|}}}</span> }} |
||
|{{{SkillDescriptionLv3|}}} |
|||
|- |
|- |
||
|4 |
|||
|style="text-align:center;" |4 |
|||
{{# |
{{#ifexpr: {{#var: rowspan_4 }} > 0 | {{!}} rowspan="{{#var: rowspan_4 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv4|}}}</span> }} |
||
|{{{SkillDescriptionLv4|}}} |
|||
|- |
|- |
||
|5 |
|||
|style="text-align:center;" |5 |
|||
{{# |
{{#ifexpr: {{#var: rowspan_5 }} > 0 | {{!}} rowspan="{{#var: rowspan_5 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv5|}}}</span> }} |
||
|{{{SkillDescriptionLv5|}}} |
|||
|}</includeonly><noinclude> <nowiki>{{EXSkillTable |
|}</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> |
||
. |
. |
||
. |
. |
||
. |
. |
||
|SkillDescriptionLv5= |
|SkillDescriptionLv5= |
||
}}</nowiki> |
}}</nowiki><noinclude> |
||
See page [[Template:SkillIcon]] for valid skill icons reference |
See page [[Template:SkillIcon]] for valid skill icons reference |
||
<templatedata> |
<templatedata> |
||
Line 49: | Line 85: | ||
"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": { |
||
Line 65: | Line 112: | ||
"description": "Skill icon name. Refer to SkillIcon template", |
"description": "Skill icon name. Refer to SkillIcon template", |
||
"example": "SKILLICON_AIRI_EXSKILL" |
"example": "SKILLICON_AIRI_EXSKILL" |
||
}, |
|||
⚫ | |||
⚫ | |||
"deprecated": "Should not be used unless strictly necessary, fill out SkillDamageType and SkillIconType instead" |
|||
}, |
}, |
||
"SkillName": { |
"SkillName": { |
||
Line 71: | Line 122: | ||
"SkillNameJP": {}, |
"SkillNameJP": {}, |
||
"SkillDescriptionGeneral": { |
"SkillDescriptionGeneral": { |
||
"description": "A generic description of the skill. Replace the value that changes upon level up with X. Use |
"description": "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.", |
||
"example": "Deal |
"example": "Deal {{SkillValue|X%}} damage to an enemy.", |
||
"required": true |
"required": true |
||
}, |
}, |
||
"SkillDescriptionLv1": { |
"SkillDescriptionLv1": { |
||
"description": "Use |
"description": "Use {{SkillValue|text}} to highlight values like in game. Use <span style=\"color:red\">text</span> to highlight major changes after certain levels.", |
||
"required": |
"required": false |
||
}, |
}, |
||
"SkillDescriptionLv2": { |
"SkillDescriptionLv2": { |
||
"description": "Use |
"description": "Use {{SkillValue|text}} to highlight values like in game. Use <span style=\"color:red\">text</span> to highlight major changes after certain levels.", |
||
"required": |
"required": false |
||
}, |
}, |
||
"SkillDescriptionLv3": { |
"SkillDescriptionLv3": { |
||
"description": "Use |
"description": "Use {{SkillValue|text}} to highlight values like in game. Use <span style=\"color:red\">text</span> to highlight major changes after certain levels.", |
||
"required": |
"required": false |
||
}, |
}, |
||
"SkillDescriptionLv4": { |
"SkillDescriptionLv4": { |
||
"description": "Use |
"description": "Use {{SkillValue|text}} to highlight values like in game. Use <span style=\"color:red\">text</span> to highlight major changes after certain levels.", |
||
"required": |
"required": false |
||
}, |
}, |
||
"SkillDescriptionLv5": { |
"SkillDescriptionLv5": { |
||
"description": "Use |
"description": "Use {{SkillValue|text}} to highlight values like in game. Use <span style=\"color:red\">text</span> to highlight major changes after certain levels.", |
||
"required": |
"required": false |
||
} |
} |
||
}, |
}, |
Latest revision as of 10:24, 26 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 |