Template:MHNowArmorPiece: Difference between revisions

From MHWiki
(WIP! Todo: Make the skill templates receive arguments, find a way to display driftsmelt slots)
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
| Grade {{{2|1}}}
| Grade {{{2|1}}}
|-
|-
! Base [[File:MHNow-Defense Icon.png|16px|middle]]
! Base [[File:MHNow-Stat Defense Icon.png|16px|middle]]
| {{{3|20}}}
| {{{3|20}}}
|-
|-
! Max [[File:MHNow-Defense Icon.png|16px|middle]]
! Max [[File:MHNow-Stat Defense Icon.png|16px|middle]]
| {{{4|197}}}
| {{{4|197}}}
|-
|-
! colspan=2 | Skills
! colspan=2 | Skills
|-
|-
| colspan=2 | {{MHNowSkill|Attack Boost|1|5|2}}
| colspan=2 | {{#if: {{{skill1|}}}
<hr>{{MHNowSkill|Fire Resistance|1|5|4}}
|{{MHNowSkill|{{{skill1}}}|{{{lvl1}}}|{{{max1}}}|{{{unlock1|}}}}}
<hr>{{MHNowSkill|Fire Resistance|1|5|4}}
|<p style="width: 100%; text-align: center;">No Skills</p>}}{{#if: {{{skill2|}}}
|<hr>{{MHNowSkill|{{{skill2}}}|{{{lvl2}}}|{{{max2}}}|{{{unlock2|}}}}}
|}}{{#if: {{{skill3|}}}
|<hr>{{MHNowSkill|{{{skill3}}}|{{{lvl3}}}|{{{max3}}}|{{{unlock3|}}}}}
|}}
|-
|-
! colspan=2 | Driftsmelt Slots
! colspan=2 | Driftsmelt Slots
|-
|-
| colspan=2 | <!-- Need to find a way to display driftsmelt slots -->
| colspan=2 | {{#if: {{{drift1|}}}
|<div style="display: grid; grid-template: 1fr 2fr / 65px {{#if:{{{drift2|}}}|65px|}}; justify-content: center; column-gap: 10px">
<div style="grid-area: 1 / 1;  background-image: linear-gradient(to right, transparent,
{{#switch: {{{drift1|5}}}
| 2 = #49b955
| 3 = #4a8aca
| 4 = #c36ae2
| 5 = #efb83a
| 6 = #fc6a6a
| #fc6a6a}}
20%); text-align: right; z-index: 2;  font-size: 12px; color: white; height: 20px;">Grade {{{drift1|5}}} <span style="float: right;">[[File:MHNow-Locked Skill Icon.png|16px|text-bottom]]</span></div>
<div style="grid-area: 2 / 1 / 3 / 2;">[[File:MHNow-Skill Empty Slot.png|40px|center]]</div>
{{#if: {{{drift2|}}}
|<div style="grid-area: 1 / 2;  background-image: linear-gradient(to right, transparent,
{{#switch: {{{drift2}}}
| 2 = #49b955
| 3 = #4a8aca
| 4 = #c36ae2
| 5 = #efb83a
| 6 = #fc6a6a
| #fc6a6a}}
20%); text-align: right; z-index: 2;  font-size: 12px; color: white; height: 20px;">Grade {{{drift2}}} <span style="float: right;">[[File:MHNow-Locked Skill Icon.png|16px|text-bottom]]</span></div>
<div style="grid-area: 2 / 2 / 3 / 3;">[[File:MHNow-Skill Empty Slot.png|40px|center]]</div>
|}}
</div>
|<p style="width: 100%; text-align: center;">No Slots</p>}}
|}<noinclude>
|}<noinclude>
<pre><nowiki>{{MHNowArmorPiece|1|2</nowiki>
<pre><nowiki>{{MHNowArmorPiece|1|2|3|4|skill1=___|lvl1=___|max1=___|unlock1=___|(...)|drift1=___|drift2=___}}</nowiki>
1 = Name of the armor piece
1 = Name of the armor piece
2 = Initial grade the piece is forged at
2 = Initial grade the piece is forged at
Line 27: Line 56:
4 = Maximum defense of the piece when fully upgraded (not just Grade 10.1)
4 = Maximum defense of the piece when fully upgraded (not just Grade 10.1)


Skill1 = Skill 1 Name
skill1 = (Optional) Skill 1 Name
Lvl1 = Skill 1 Active Level
lvl1 = (Optional) Skill 1 Active Level
Max1 = Skill 1 Max Level
max1 = (Optional) Skill 1 Max Level
Unlock1 = Skill 1 Unlock Grade
unlock1 = (Optional) Skill 1 Unlock Grade


Skill2 = Skill 2 Name
skill2 = (Optional) Skill 2 Name
Lvl2 = Skill 2 Active Level
lvl2 = (Optional) Skill 2 Active Level
Max2 = Skill 2 Max Level
max2 = (Optional) Skill 2 Max Level
Unlock2 = Skill 2 Unlock Grade
unlock2 = (Optional) Skill 2 Unlock Grade


Skill3 = Skill 3 Name
skill3 = (Optional) Skill 3 Name
Lvl3 = Skill 3 Active Level
lvl3 = (Optional) Skill 3 Active Level
Max3 = Skill 3 Max Level
max3 = (Optional) Skill 3 Max Level
Unlock3 = Skill 3 Unlock Grade
unlock3 = (Optional) Skill 3 Unlock Grade


Drift1 = Driftsmelting Slot 1 Unlock Grade
drift1 = (Optional) Driftsmelting Slot 1 Unlock Grade
Drift2 = Driftsmelting Slot 2 Unlock Grade
drift2 = (Optional) Driftsmelting Slot 2 Unlock Grade
</pre></noinclude>
</pre></noinclude>

Latest revision as of 22:50, 8 June 2024

{{{1}}}
Forged at Grade 1
Base 20
Max 197
Skills

No Skills

Driftsmelt Slots

No Slots

{{MHNowArmorPiece|1|2|3|4|skill1=___|lvl1=___|max1=___|unlock1=___|(...)|drift1=___|drift2=___}}
1 = Name of the armor piece
2 = Initial grade the piece is forged at
3 = Initial defense of the piece when forged
4 = Maximum defense of the piece when fully upgraded (not just Grade 10.1)

skill1 = (Optional) Skill 1 Name
lvl1 = (Optional) Skill 1 Active Level
max1 = (Optional) Skill 1 Max Level
unlock1 = (Optional) Skill 1 Unlock Grade

skill2 = (Optional) Skill 2 Name
lvl2 = (Optional) Skill 2 Active Level
max2 = (Optional) Skill 2 Max Level
unlock2 = (Optional) Skill 2 Unlock Grade

skill3 = (Optional) Skill 3 Name
lvl3 = (Optional) Skill 3 Active Level
max3 = (Optional) Skill 3 Max Level
unlock3 = (Optional) Skill 3 Unlock Grade

drift1 = (Optional) Driftsmelting Slot 1 Unlock Grade
drift2 = (Optional) Driftsmelting Slot 2 Unlock Grade