Actions

Template

Difference between revisions of "MagicItemGmList"

From Titan's Teeth

(Created page with "<noinclude> * Type: Type of magic item to display </noinclude><includeonly>== 1 == {{Gridless|type=begin|border=true|cols=1}} {{#cargo_query:tables=MagicItems |where=T...")
 
 
(18 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
</noinclude><includeonly>== 1 ==
+
* Subtype: subtype that should be included (optional)
{{Gridless|type=begin|border=true|cols=1}}
+
* Slot: slot that should be included (optional)
    {{#cargo_query:tables=MagicItems
+
* Min: Minimum gear level to display (Optional)
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 1
+
* Max: Maximum gear level to display (Optional)
    |order by=Price
+
</noinclude><includeonly>
    |fields=Name, CONCAT(Price, ' gp') = Cost
+
== Items by Treasure Level ==
    |format=ul
+
{{#ifexpr:{{{Min|1}}} <= 1|{{MagicItemGmListTable|Level=1|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    |columns=3
+
-->{{#ifexpr:{{{Min|1}}} <= 2 and {{{Max|20}}} >= 2|{{MagicItemGmListTable|Level=2|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    }}
+
-->{{#ifexpr:{{{Min|1}}} <= 3 and {{{Max|20}}} >= 3|{{MagicItemGmListTable|Level=3|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
{{Gridless|type=end}}
+
-->{{#ifexpr:{{{Min|1}}} <= 4 and {{{Max|20}}} >= 4|{{MagicItemGmListTable|Level=4|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
 
+
-->{{#ifexpr:{{{Min|1}}} <= 5 and {{{Max|20}}} >= 5|{{MagicItemGmListTable|Level=5|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
== 2 ==
+
-->{{#ifexpr:{{{Min|1}}} <= 6 and {{{Max|20}}} >= 6|{{MagicItemGmListTable|Level=6|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
{{Gridless|type=begin|border=true|cols=1}}
+
-->{{#ifexpr:{{{Min|1}}} <= 7 and {{{Max|20}}} >= 7|{{MagicItemGmListTable|Level=7|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    {{#cargo_query:tables=MagicItems
+
-->{{#ifexpr:{{{Min|1}}} <= 8 and {{{Max|20}}} >= 8|{{MagicItemGmListTable|Level=8|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 2
+
-->{{#ifexpr:{{{Min|1}}} <= 9 and {{{Max|20}}} >= 9|{{MagicItemGmListTable|Level=9|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}<!--
    |order by=Price
+
-->{{#ifexpr:{{{Min|1}}} <= 10 and {{{Max|20}}} >= 10|{{MagicItemGmListTable|Level=10|Type={{{Type|}}}|Subtype={{{Subtype|}}}|Slot={{{Slot|}}} }}|}}</includeonly>
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
{{Gridless|type=end}}
 
 
 
== 3 ==
 
{{Gridless|type=begin|border=true|cols=1}}
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 3
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
{{Gridless|type=end}}
 
 
 
== 4 ==
 
{{Gridless|type=begin|border=true|cols=1}}
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 4
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
{{Gridless|type=end}}
 
 
 
== 5 ==
 
{{Gridless|type=begin|border=true|cols=1}}
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 5
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
{{Gridless|type=end}}
 
 
 
== 6 ==
 
{{Gridless|type=begin|border=true|cols=1}}
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 6
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
{{Gridless|type=end}}
 
 
 
== 7 ==
 
{{Gridless|type=begin|border=true|cols=1}}
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 7
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
{{Gridless|type=end}}
 
 
 
== 8 ==
 
{{Gridless|type=begin|border=true|cols=1}}
 
    {{#cargo_query:tables=MagicItems
 
    |where=Type LIKE "%{{{Type|}}}%" AND GL = 8
 
    |order by=Price
 
    |fields=Name, CONCAT(Price, ' gp') = Cost
 
    |format=ul
 
    |columns=3
 
    }}
 
{{Gridless|type=end}}</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)