Difference between revisions of "Template:MCFloorOverviewDisplay"
Jump to navigation
Jump to search
imported>Elaeagnifolia (Created page with "<noinclude>{{doc}}Category:Templates</noinclude><includeonly><!-- ### Vardefines --><!-- ### Template Display -->{{NotableWrap |notables= {{Notable |header=Floor {{#ex...") |
>Boblers (fixed display of mana spiral gem) |
||
| (124 intermediate revisions by 2 users not shown) | |||
| Line 7: | Line 7: | ||
### Template Display | ### Template Display | ||
| − | -->{{NotableWrap | + | --><div class="mc-node-overview-notable"> |
| − | |notables= | + | <div style="text-align:left;"> |
| + | {{NotableWrap | ||
| + | |notables={{#ifeq:{{{1|}}} | 6 | | | ||
| + | {{#ifexpr: {{{1|}}} < {{#expr:{{#var:maxLimitBreakCount}}+1}} | | ||
{{Notable | {{Notable | ||
| − | |header=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 | ||
| + | |q?tables=CharaLimitBreak | ||
| + | |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 | ||
| + | }} | ||
| + | </div> | ||
| + | }} | ||
| + | }} | ||
}} | }} | ||
{{Notable | {{Notable | ||
| − | |header=Floor {{{1|}}} Total Materials | + | |header={{#ifeq:{{{1|}}} | 6 | Mana Spiral | Floor {{{1|}}} }} Total Materials |
| − | |content= | + | |content=<div style="margin:1em;"><!-- |
| + | # Mana | ||
| + | -->{{Icon|Resource|Mana|size=20px|text=1}} x{{formatnum:{{#expr:{{formatnum:{{#cargo_query: | ||
| + | tables=MCNodes | ||
| + | |fields=SUM(NecessaryManaPoint) | ||
| + | |where=MC="{{#var:manaCircleName}}" AND Hierarchy="{{{1|}}}" | ||
| + | |no html | ||
| + | }}|R}}}}}}<br/><!-- | ||
| + | |||
| + | # Material Loop | ||
| + | -->{{#vardefine: i | 0 }}<!-- | ||
| + | -->{{#while: | ||
| + | | {{#ifexpr: {{#var:i}} < {{#var:matCounter}} | true }} | ||
| + | | <nowiki/><!-- | ||
| + | # Increment loop variable | ||
| + | -->{{#vardefine:i| {{#expr: {{#var:i}}+1 }} }}<!-- | ||
| + | |||
| + | # Get the material from the comma-separated list variable | ||
| + | -->{{#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}}}} }} | ||
| + | </div> | ||
}} | }} | ||
{{Notable | {{Notable | ||
| − | |header=Floor {{{1|}}} Node Breakdown | + | |header={{#ifeq:{{{1|}}} | 6 | Mana Spiral | Floor {{{1|}}} }} Node Breakdown |
| − | |content= | + | |content=<div style="margin:1em;"> |
| + | {{#invoke:CargoQuery|main | ||
| + | |q?tables=MCNodeType | ||
| + | |q?fields=Id,NodeType,CONCAT("{{{1|}}}")=Floor | ||
| + | |q?where=NodeType NOT LIKE "%?%" | ||
| + | |template=MCNodeBreakdown | ||
| + | }} | ||
| + | </div> | ||
| + | }} | ||
}} | }} | ||
| − | + | </div> | |
| + | </div></includeonly> | ||