Actions

Template

Difference between revisions of "MagicItemListAbreviated"

From Titan's Teeth

 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
* 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)
* playeronly: whether it should show only items that are visible to players (optional)
 
 
</noinclude><!--
 
</noinclude><!--
  
 
--><includeonly>{{#cargo_query:tables=MagicItems
 
--><includeonly>{{#cargo_query:tables=MagicItems
|where=Type LIKE "%{{{type}}}%" {{#if:{{{subtype|}}}|AND Subtype LIKE "%{{{subtype}}}%"|}} {{#if:{{{slot|}}}|AND Slot LIKE "%{{{slot}}}%"|}} {{#if:{{{playeronly|}}}|AND ForPlayer = 1|}}
+
|where=Type LIKE "%{{{type}}}%" {{#if:{{{subtype|}}}|AND Subtype LIKE "%{{{subtype}}}%"|}} {{#if:{{{slot|}}}|AND Slot LIKE "%{{{slot}}}%"|}} {{#ifeq:{{{playeronly|}}}|no||AND ForPlayer = 1}}
 
|order by=Name
 
|order by=Name
 
|fields=_pageName = Page,Name,Slot,Weight,Fluff,Description
 
|fields=_pageName = Page,Name,Slot,Weight,Fluff,Description

Latest revision as of 14:54, 9 January 2020

All lower-case

  • type: type that should be included
  • subtype: subtype that should be included (optional)
  • slot: slot that should be included (optional)