Template:Anomaly table row: Difference between revisions

From Tears of Themis Wiki
imported>Elaeagnifolia
(Created page with "<noinclude>{{doc}}Category:Templates</noinclude><includeonly><nowiki/> |- | {{{stageName|}}} | {{{stageCost|}}} | {{Attribute icon}}|{{{attribute|}}}}} | {{{recommendedPow...")
 
imported>Elaeagnifolia
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><nowiki/>
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
|-
 
| {{{stageName|}}}
### Variable define
-->{{#vardefine:hasFragment|{{#if:{{#cargo_query:tables=StageDrop|fields=_pageName|where=stageName="{{{stageName|}}}" AND type="Fragment"|default=}} | true | false }}}}<!--
-->{{#vardefine:hasAttributeChip|{{#if:{{#cargo_query:tables=StageDrop|fields=_pageName|where=stageName="{{{stageName|}}}" AND (dropItem LIKE "Logic Chip%" OR dropItem LIKE "Empathy Chip%" OR dropItem LIKE "Intuition Chip%")|default=}} | true | false }}}}<!--
-->{{#vardefine:hasCharacterChip|{{#if:{{#cargo_query:tables=StageDrop|fields=_pageName|where=stageName="{{{stageName|}}}" AND (dropItem LIKE "Equalization Chip%" OR dropItem LIKE "Mind Chip%" OR dropItem LIKE "Infinity Chip%" OR dropItem LIKE "Vision Chip%")|default=}} | true | false }}}}<!--
 
### Template Display
 
--><nowiki/>
|- class="filter-element" data-fragment="{{#var:hasFragment}}" data-attribute-chip="{{#var:hasAttributeChip}}" data-character-chip="{{#var:hasCharacterChip}}"
| [[{{{link|}}}|{{{stageName|}}}]]
| {{{stageCost|}}}
| {{{stageCost|}}}
| {{Attribute icon}}|{{{attribute|}}}}}
| {{Attribute icon|{{{attribute|}}}|size=24px}} {{{attribute|}}}
| {{{recommendedPower|}}}
| {{{recommendedPower|}}}
| {{#invoke:CargoQuery|main
| {{#invoke:CargoQuery|main
   |q?tables=StageDrop
   |q?tables=StageDrop
   |q?fields=CONCAT('1')=displayOnly
   |q?fields=dropItem=drop,type=type,CONCAT('28px')=size,CONCAT('1')=displayOnly
   |q?where=stageName="{{{stageName|}}}"
   |q?where=stageName="{{{stageName|}}}"
   |q?orderBy=type DESC
   |q?orderBy=type DESC
   |template=StageDrop
   |template=Stage drop
   }}
   }}
</includeonly>
</includeonly>

Latest revision as of 21:15, 12 August 2021