Actions

Template

Difference between revisions of "MagicItemGmListTable"

From Titan's Teeth

(Created page with "<noinclude> * Level: Level of gear to display * Type: Type of magic item to display * Subtype: subtype that should be included (optional) * Slot: slot that should be included...")
 
Line 4: Line 4:
 
* Subtype: subtype that should be included (optional)
 
* Subtype: subtype that should be included (optional)
 
* Slot: slot that should be included (optional)
 
* Slot: slot that should be included (optional)
</noinclude><includeonly>=== {{{Level}}} ===
+
</noinclude><includeonly>=== {{{Level|1}}} ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
     {{#cargo_query:tables=MagicItems
 
     {{#cargo_query:tables=MagicItems
     |where=Type LIKE "%{{{Type|}}}%" AND GL = {{{Level}}} {{#if:{{{Subtype|}}}|AND Subtype LIKE "%{{{Subtype}}}%"|}} {{#if:{{{Slot|}}}|AND Slot LIKE "%{{{Slot}}}%"|}}
+
     |where=Type LIKE "%{{{Type|}}}%" AND GL = {{{Level|1}}} {{#if:{{{Subtype|}}}|AND Subtype LIKE "%{{{Subtype}}}%"|}} {{#if:{{{Slot|}}}|AND Slot LIKE "%{{{Slot}}}%"|}}
 
     |order by=Price
 
     |order by=Price
 
     |fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name, CONCAT(Price, ' gp') = Cost
 
     |fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name, CONCAT(Price, ' gp') = Cost

Revision as of 10:24, 13 January 2020

  • Level: Level of gear to display
  • Type: Type of magic item to display
  • Subtype: subtype that should be included (optional)
  • Slot: slot that should be included (optional)