Actions

Template

Difference between revisions of "MagicItemGmList"

From Titan's Teeth

 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
* Type: Type of magic item to display
 
* Type: Type of magic item to display
 +
* Subtype: subtype that should be included (optional)
 +
* Slot: slot that should be included (optional)
 
* Min: Minimum gear level to display (Optional)  
 
* Min: Minimum gear level to display (Optional)  
 
* Max: Maximum gear level to display (Optional)
 
* Max: Maximum gear level to display (Optional)
 
</noinclude><includeonly>
 
</noinclude><includeonly>
== Items by Gear Level ==
+
== Items by Treasure Level ==
{{#ifexpr:{{{Min|1}}} <= 1|=== 1 ===
+
{{#ifexpr:{{{Min|1}}} <= 1|{{MagicItemGmListTable|Level=1|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
+
-->{{#ifexpr:{{{Min|1}}} <= 2 and {{{Max|20}}} >= 2|{{MagicItemGmListTable|Level=2|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    {{#cargo_query:tables=MagicItems
+
-->{{#ifexpr:{{{Min|1}}} <= 3 and {{{Max|20}}} >= 3|{{MagicItemGmListTable|Level=3|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 1
+
-->{{#ifexpr:{{{Min|1}}} <= 4 and {{{Max|20}}} >= 4|{{MagicItemGmListTable|Level=4|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    |order by=Price
+
-->{{#ifexpr:{{{Min|1}}} <= 5 and {{{Max|20}}} >= 5|{{MagicItemGmListTable|Level=5|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    |fields=Name, CONCAT(Price, ' gp') = Cost
+
-->{{#ifexpr:{{{Min|1}}} <= 6 and {{{Max|20}}} >= 6|{{MagicItemGmListTable|Level=6|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    |format=ul
+
-->{{#ifexpr:{{{Min|1}}} <= 7 and {{{Max|20}}} >= 7|{{MagicItemGmListTable|Level=7|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    |columns=3
+
-->{{#ifexpr:{{{Min|1}}} <= 8 and {{{Max|20}}} >= 8|{{MagicItemGmListTable|Level=8|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    }}
+
-->{{#ifexpr:{{{Min|1}}} <= 9 and {{{Max|20}}} >= 9|{{MagicItemGmListTable|Level=9|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
</div>}}{{#ifexpr:{{{Min|1}}} <= 2 and {{{Max|20}}} >= 2|<wbr>
+
-->{{#ifexpr:{{{Min|1}}} <= 10 and {{{Max|20}}} >= 10|{{MagicItemGmListTable|Level=10|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}</includeonly>
=== 2 ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 2
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
</div>}}{{#ifexpr:{{{Min|1}}} <= 3 and {{{Max|20}}} >= 3|<wbr>
 
=== 3 ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 3
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
</div>}}{{#ifexpr:{{{Min|1}}} <= 4 and {{{Max|20}}} >= 4|<wbr>
 
=== 4 ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 4
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
</div>}}{{#ifexpr:{{{Min|1}}} <= 5 and {{{Max|20}}} >= 5|<wbr>
 
=== 5 ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 5
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
</div>}}{{#ifexpr:{{{Min|1}}} <= 6 and {{{Max|20}}} >= 6|<wbr>
 
=== 6 ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 6
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
</div>}}{{#ifexpr:{{{Min|1}}} <= 7 and {{{Max|20}}} >= 7|<wbr>
 
=== 7 ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 7
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
</div>}}{{#ifexpr:{{{Min|1}}} <= 8 and {{{Max|20}}} >= 8|<wbr>
 
=== 8 ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 8
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
</div>}}{{#ifexpr:{{{Min|1}}} <= 9 and {{{Max|20}}} >= 9|<wbr>
 
=== 9 ===
 
<div style="max-width:100%;margin:10px;background-color:white;padding:.8em;border:1px solid #DDDDDD;">
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 9
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
</div>}}</includeonly>
 

Latest revision as of 16:14, 30 August 2020

  • Type: Type of magic item to display
  • Subtype: subtype that should be included (optional)
  • Slot: slot that should be included (optional)
  • Min: Minimum gear level to display (Optional)
  • Max: Maximum gear level to display (Optional)