Template:EXSkillTable/sandbox: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1:
<includeonly>{{#vardefine: max_level_with_cost_reduction | 0 }}
{{#vardefine: max_level_cost | {{#ifexpr: {{ #len:{{{SkillBaseCost|}}} }} > 0 | {{{SkillBaseCost|0}}} | 0 }} }}
{{#vardefine: max_level_with_cost_reduction | 0 }}
{{#vardefine: max_level_cost | {{{SkillBaseCost}}} }}
{{#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 }}
}}
Line 35 ⟶ 34:
{|class="mw-collapsible mw-collapsed wikitable skilltable"
|- 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> | }}
|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 44 ⟶ 43:
|-
|1
|rowspan="{{#var: rowspan_1 }}" 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
{{#ifexpr: {{#var: rowspan_3 }} > 0 | {{!}} rowspan="{{#var: rowspan_3 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv3|}}}</span> }}
|{{{SkillDescriptionLv3|}}}
|-
|4
{{#ifexpr: {{#var: rowspan_4 }} > 0 | {{!}} rowspan="{{#var: rowspan_4 }}" style="text-align:center" {{!}} <span style="color:red">{{{SkillCostLv4|}}}</span> }}
|{{{SkillDescriptionLv4|}}}
|-
|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
|}
|SkillName=
</includeonly>
|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=
}}</nowiki><noinclude>
See page [[Template:SkillIcon]] for valid skill icons reference
<templatedata>
{
"params": {
"SkillBaseCost": {
"description": "Cost of skill at level 1.",
"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": {
"description": "Only needs a value if the skill gets a cost reduction at a certain level.",
"deprecated": "Specify SkillCostLv* instead"
},
"SkillUpgradedCostLv": {
"description": "The level at which a skill's cost is reduced.",
"deprecated": "Specify SkillCostLv* instead"
},
"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>
</noinclude>