Difference between revisions of "Equipment Table Variable"
From Titan's Teeth
Dicemonger (talk | contribs) |
Dicemonger (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
-->{{#cargo_query:tables=Equipment | -->{{#cargo_query:tables=Equipment | ||
− | |where=Category="{{{category}}} {{#if:subcategory|AND SubCategory={{{subcategory}}}|}} {{#ifeq:hidden|yes||AND Hidden is NULL}} | + | |where=Category="{{{category}}}" {{#if:{{{subcategory|}}}|AND SubCategory="{{{subcategory}}}"|}} {{#ifeq:{{{hidden|}}}|yes||AND Hidden is NULL}} |
|order by=Name | |order by=Name | ||
− | |fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Item,Cost,Weight{{#ifeq: | + | |fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Item,CONCAT( CostGp, ' gp' ) = Cost,Weight{{#ifeq:{{{craftDC|}}}|yes|,CraftDC = Craft DC}},Short |
|format=table | |format=table | ||
}} | }} |
Latest revision as of 16:55, 9 January 2020
All lower-case
- category = Multiple categories can be added to the table with comma-separation (weapons,armor)
- subcategory (optional) = Multiple subcategories can be added to the table with comma-separation (camping,survival)
- craftDC (optional) = If yes, then show Craft DC in tables
- hidden (optional) = If yes, then hidden equipment is shown
No results