Difference between revisions of "Template:MCFloorOverviewDisplay"
Jump to navigation
Jump to search
imported>Elaeagnifolia |
>Boblers (fixed display of mana spiral gem) |
||
| (46 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
--><div class="mc-node-overview-notable"> | --><div class="mc-node-overview-notable"> | ||
| − | <div style="text-align: | + | <div style="text-align:left;"> |
{{NotableWrap | {{NotableWrap | ||
|notables={{#ifeq:{{{1|}}} | 6 | | | |notables={{#ifeq:{{{1|}}} | 6 | | | ||
| + | {{#ifexpr: {{{1|}}} < {{#expr:{{#var:maxLimitBreakCount}}+1}} | | ||
{{Notable | {{Notable | ||
| − | |header={{#ifeq:{{{1|}}} | 5 | Mana Spiral Unbind Materials | Floor {{#expr:{{{1|}}}+1}} Unbind Materials }} | + | |header={{#ifeq:{{{1|}}} | 5 | [[File:Mc Unbind 6M {{#switch:{{{2|}}}|Flame=01|Water=02|Wind=03|Light=04|Shadow=05}}.png|32px|link=]] Mana Spiral Unbind Materials | [[File:Mc Unbind Mana.png|32px|link=]] Floor {{#expr:{{{1|}}}+1}} Unbind Materials }} |
| − | |content= | + | |content=<div style="margin:1em;"> |
| − | {{# | + | {{#invoke:CargoQuery|main |
| − | |fields=CONCAT("{{{1|}}}")=Floor,OrbData1Id{{{1|}}},OrbData2Id{{{1|}}},OrbData3Id{{{1|}}},OrbData4Id{{{1|}}},OrbData5Id{{{1|}}},OrbData1Num{{{1|}}},OrbData2Num{{{1|}}},OrbData3Num{{{1|}}},OrbData4Num{{{1|}}},OrbData5Num{{{1|}}} | + | |q?tables=CharaLimitBreak |
| − | |where=Id={{#var:limitBreakId}} | + | |q?fields=CONCAT("{{{1|}}}")=Floor,OrbData1Id{{{1|}}},OrbData2Id{{{1|}}},OrbData3Id{{{1|}}},OrbData4Id{{{1|}}},OrbData5Id{{{1|}}},OrbData1Num{{{1|}}},OrbData2Num{{{1|}}},OrbData3Num{{{1|}}},OrbData4Num{{{1|}}},OrbData5Num{{{1|}}} |
| − | + | |q?where=Id={{#var:limitBreakId}} | |
|template=MCFloorLimitBreakCost | |template=MCFloorLimitBreakCost | ||
| − | + | }} | |
| + | </div> | ||
}} | }} | ||
}} | }} | ||
| Line 25: | Line 27: | ||
{{Notable | {{Notable | ||
|header={{#ifeq:{{{1|}}} | 6 | Mana Spiral | Floor {{{1|}}} }} Total Materials | |header={{#ifeq:{{{1|}}} | 6 | Mana Spiral | Floor {{{1|}}} }} Total Materials | ||
| − | |content=<!-- | + | |content=<div style="margin:1em;"><!-- |
# Mana | # Mana | ||
-->{{Icon|Resource|Mana|size=20px|text=1}} x{{formatnum:{{#expr:{{formatnum:{{#cargo_query: | -->{{Icon|Resource|Mana|size=20px|text=1}} x{{formatnum:{{#expr:{{formatnum:{{#cargo_query: | ||
| Line 39: | Line 41: | ||
| {{#ifexpr: {{#var:i}} < {{#var:matCounter}} | true }} | | {{#ifexpr: {{#var:i}} < {{#var:matCounter}} | true }} | ||
| <nowiki/><!-- | | <nowiki/><!-- | ||
| + | # Increment loop variable | ||
| + | -->{{#vardefine:i| {{#expr: {{#var:i}}+1 }} }}<!-- | ||
| + | |||
# Get the material from the comma-separated list variable | # Get the material from the comma-separated list variable | ||
-->{{#vardefine:matLoopItem| {{#explode:{{#var:floorMaterials}}|,|{{#var:i}} }} }}<!-- | -->{{#vardefine:matLoopItem| {{#explode:{{#var:floorMaterials}}|,|{{#var:i}} }} }}<!-- | ||
| − | --> | + | -->{{Icon|Material|{{#var:matLoopItem}}|size=20px|text=1}} x{{#var:{{{1|}}}{{#var:matLoopItem}}}}<br/> |
| − | |||
}}<!-- | }}<!-- | ||
-->{{#ifeq:{{#var:eldwaterFloorTotal}} | 0 | | {{Icon|Resource|Eldwater|size=20px|text=1}} x{{formatnum:{{#var:eldwaterFloorTotal}}}} }} | -->{{#ifeq:{{#var:eldwaterFloorTotal}} | 0 | | {{Icon|Resource|Eldwater|size=20px|text=1}} x{{formatnum:{{#var:eldwaterFloorTotal}}}} }} | ||
| + | </div> | ||
}} | }} | ||
{{Notable | {{Notable | ||
|header={{#ifeq:{{{1|}}} | 6 | Mana Spiral | Floor {{{1|}}} }} Node Breakdown | |header={{#ifeq:{{{1|}}} | 6 | Mana Spiral | Floor {{{1|}}} }} Node Breakdown | ||
| − | |content=<div style=" | + | |content=<div style="margin:1em;"> |
| − | {{# | + | {{#invoke:CargoQuery|main |
| − | |fields=Id,NodeType,CONCAT("{{{1|}}}")=Floor | + | |q?tables=MCNodeType |
| − | |where=NodeType NOT LIKE "%?%" | + | |q?fields=Id,NodeType,CONCAT("{{{1|}}}")=Floor |
| − | + | |q?where=NodeType NOT LIKE "%?%" | |
|template=MCNodeBreakdown | |template=MCNodeBreakdown | ||
| − | |||
}} | }} | ||
</div> | </div> | ||