Template:EXSkillTable/sandbox: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
<includeonly>
<includeonly>{|class="mw-collapsible mw-collapsed wikitable skilltable"
{{#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="mw-collapsible mw-collapsed wikitable skilltable"
|- class="summary"
|style="width:10%"|'''EX Skill'''<br>Cost {{{SkillBaseCost}}}{{#ififexpr: {{#var: max_level_cost }} <> {{{SkillUpgradedCostSkillBaseCost|}}} | <br><span style="color:red">(Level {{{SkillUpgradedCostLv}#var: max_level_with_cost_reduction }}+)<br>Cost {{{SkillUpgradedCost}#var: max_level_cost }}</span> | }}
|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;"> &bull; </span>|}}{{{SkillName}}}'''<br>{{{SkillDescriptionGeneral}}}
Line 10 ⟶ 44:
|-
|1
|rowspan="{{#ifvar: {{{SkillUpgradedCostLv|}}}rowspan_1 | {{#expr: {{{SkillUpgradedCostLv|}}} - 1}} | 5}}" style="text-align:center"| {{{SkillBaseCost}}}
|{{{SkillDescriptionLv1}}}
|-
|2
{{#ifexpr: {{#var: rowspan_2 }} > 0 | {{!}} rowspan="{{#var: rowspan_2 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv2|}}}</span> }}
|{{{SkillDescriptionLv2}}}
|-
|3
{{#ifeqifexpr: {{{SkillUpgradedCostLv|#var: rowspan_3 }}}| 3> 0 | {{!}} rowspan="3{{#var: rowspan_3 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillUpgradedCostSkillCostLv3|}}}</span> | }}
|{{{SkillDescriptionLv3}}}
|-
|4
{{#ifeqifexpr: {{{SkillUpgradedCostLv|#var: rowspan_4 }}}| 4> 0 | {{!}} rowspan="2{{#var: rowspan_4 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillUpgradedCostSkillCostLv4|}}}</span> | }}
|{{{SkillDescriptionLv4}}}
|-
|5
{{#ifeqifexpr: {{{SkillUpgradedCostLv|#var: rowspan_5 }}}| 5> 0 | {{!}} rowspan="1{{#var: rowspan_5 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillUpgradedCostSkillCostLv5|}}}</span> | }}
|{{{SkillDescriptionLv5}}}
|}
|}</includeonly><noinclude> <nowiki>{{EXSkillTable
</includeonly>
|SkillName=
|SkillNameJP=
|SkillBaseCost=
|SkillUpgradedCost=(only fill in if skill has a cost reduction at later levels)
|SkillUpgradedCostLv=(level at which cost is reduced)
|SkillDamageType=(Explosive/Penetration/Mystic)
|SkillIconType=(Skill icon name)
|SkillDescriptionGeneral=
|SkillDescriptionLv1= To highlight values similar to ingame, use <span style="color:#1484fe">text</span>. To highlight major changes, use <span style="color:red">text</span>
.
.
.
|SkillDescriptionLv5=
}}</nowiki>
<noinclude>
See page [[Template:SkillIcon]] for valid skill icons reference
<templatedata>
{
"params": {
"SkillBaseCost": {
"description": "Cost of skill at level 1.",
"required": true
},
"SkillUpgradedCost": {
"description": "Only needs a value if the skill gets a cost reduction at a certain level."
},
"SkillUpgradedCostLv": {
"description": "The level at which a skill's cost is reduced."
},
"SkillDamageType": {
"description": "Explosive, Penetration, Mystic"
},
"SkillIconType": {
"description": "Skill icon name. Refer to SkillIcon template",
"example": "SKILLICON_AIRI_EXSKILL"
},
"SkillIcon": {
"description": "Filename for skill icon, excluding .png extension, overrides SkillIcon template output set by SkillDamageType/SkillIconType.",
"deprecated": "Should not be used unless strictly necessary, fill out SkillDamageType and SkillIconType instead"
},
"SkillName": {
"required": true
},
"SkillNameJP": {},
"SkillDescriptionGeneral": {
"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 {{SkillValue|X%}} damage to an enemy.",
"required": true
},
"SkillDescriptionLv1": {
"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": false
},
"SkillDescriptionLv2": {
"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": false
},
"SkillDescriptionLv3": {
"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": false
},
"SkillDescriptionLv4": {
"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": false
},
"SkillDescriptionLv5": {
"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": false
}
},
"description": "Table for displaying EX Skill information. Use the SkillTable template for the other skills."
}
</templatedata>
{{EXSkillTable/sandbox
| SkillName = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
| SkillNameJP = お仕置きの時間です~♣
| SkillIconType = COMMON_SKILLICON_FAN
| SkillDamageType = Penetration
| SkillBaseCost = 5
| SkillDescriptionGeneral = Attack all enemies within a conical area for {{SkillValue|432~821%}} of Nonomi's Attack. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
| SkillDescriptionLv1 = Attack all enemies within a conical area for {{SkillValue|432%}} of Nonomi's Attack.
| SkillDescriptionLv2 = Attack all enemies within a conical area for {{SkillValue|497%}} of Nonomi's Attack.
| SkillDescriptionLv3 = Attack all enemies within a conical area for {{SkillValue|627%}} of Nonomi's Attack.
| SkillDescriptionLv4 = Attack all enemies within a conical area for {{SkillValue|692%}} of Nonomi's Attack.
| SkillDescriptionLv5 = Attack all enemies within a conical area for {{SkillValue|821%}} of Nonomi's Attack.
| SkillDescriptionLv6 = Attack all enemies within a conical area for {{SkillValue|886%}} of Nonomi's Attack.
| SkillDescriptionLv7 = Attack all enemies within a conical area for {{SkillValue|1016%}} of Nonomi's Attack.
| SkillDescriptionLv8 = Attack all enemies within a conical area for {{SkillValue|1081%}} of Nonomi's Attack.
| SkillDescriptionLv9 = Attack all enemies within a conical area for {{SkillValue|1211%}} of Nonomi's Attack.
| SkillDescriptionLv10 = Attack all enemies within a conical area for {{SkillValue|1275%}} of Nonomi's Attack.
}}
</noinclude>