Calculator:Magic/Aurum: Difference between revisions

From HighSpell Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#widget:Calculator/Aurum}}
{{#widget:AurumCalculator}} <!-- This brings in the scroll price & quantity input + JS -->
{{#cargo_query:
  tables=Items
  |fields=name=Item,buyprice=Buy Price
  |where=name IN ('Item A','Item B','Item C')
  |format=template
  |template=Template:Calculator/Magic/Aurum
}}
== Aurum Profit Calculator ==
 
{{#widget:AurumCalculator}}


<table id="aurum-table" border="1">
<table id="aurum-table" border="1">
Line 22: Line 12:
   </thead>
   </thead>
   <tbody>
   <tbody>
  {{#cargo_query:
    {{#cargo_query:
    tables=Items
      tables=Items
    |fields=name,buyprice
      |fields=name,buyprice
    |where=name IN ('Item A','Item B','Item C') <!-- customize this! -->
      |where=name IN ('Item A','Item B','Item C') <!-- Replace with your actual item names -->
    |format=template
      |format=template
    |template=AurumRow
      |template=Calculator/Magic/Aurum
  }}
    }}
   </tbody>
   </tbody>
</table>
</table>

Revision as of 12:00, 26 June 2025

Error in widget AurumCalculator: Unable to load template 'wiki:AurumCalculator'
<thead> </thead> <tbody>
Error: No field named "name" found for any of the specified database tables.
 </tbody>
Item Buy Price Minor Profit Major Profit Total Profit (qty)