Sea of Thieves Wiki

READ MORE

Sea of Thieves Wiki
m (Netail moved page Template:List set cost a to Template:List cost a without leaving a redirect)
m (Okay, looks like there are no bugs anymore multiple situations now. Cost Totals now support Bundle-Only items. Currently it's only set to function with Costumes but support for Emotes may be feasible.)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
<includeonly>
<includeonly>{{#cargo_query:tables=Variants|fields= SUM(cost_a)|where=Variants.prefix="{{{1}}}"|no html}}</includeonly><noinclude>
+
{{#vardefine:itemCost| {{formatnum:{{#cargo_query:tables=Variants|fields=SUM(cost_a)|where={{{1}}}|no html}}|R}} }}
[[Category:List Templates]]</noinclude>
 
  +
{{#vardefine:bundleCost| {{#iferror: {{#expr: {{#cargo_query:tables=Variants,Bundles|join on=Bundles.fullname=Variants.bundle|group by=Bundles.fullname|where={{{1}}} AND Variants.bundleonly AND Bundles.cost_a AND Variants.vrnttype="Costume"|delimiter=+|fields=TRIM(Bundles.cost_a)|no html}} }} |}} }}
  +
{{#if:{{#var:itemCost}}|{{#if:{{#var:bundleCost}}|{{#expr:{{#var:itemCost}}+{{#var:bundleCost}}}}|{{#var:itemCost}}}}|{{#var:bundleCost}}}}
  +
</includeonly>
 
<noinclude>[[Category:List cost Templates]]</noinclude>

Revision as of 04:49, 20 February 2022