Difference between revisions of "Equipment Table"
From Titan's Teeth
Dicemonger (talk | contribs) (Created page with "<noinclude> All lower-case * 1: category </noinclude><!-- -->{{#cargo_query:tables=Equipment |where=Category="{{{1}}}" |order by=Name |fields=CONCAT( '', _pageName, '|', N...") |
Dicemonger (talk | contribs) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
All lower-case | All lower-case | ||
− | * 1: category | + | * 1: category. Multiple categories can be added to the table with comma-separation (weapons,armor) |
+ | * 2: subcategory (optional). Multiple subcategories can be added to the table with comma-separation (camping,survival) | ||
+ | * 3: Show Hidden? Yes (defaults No) | ||
</noinclude><!-- | </noinclude><!-- | ||
-->{{#cargo_query:tables=Equipment | -->{{#cargo_query:tables=Equipment | ||
− | |where=Category="{{{1}}}" | + | |where={{#if: {{{2|}}}|(Category="{{#replace:{{{1}}}|,|" OR Category="}}") AND (SubCategory="{{#replace:{{{2}}}|,|" OR SubCategory="}}")|Category="{{#replace:{{{1}}}|,|" OR Category="}}"}} {{#if: {{{3|}}}||AND (Hidden="0" OR Hidden is NULL)}} |
|order by=Name | |order by=Name | ||
− | |fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = | + | |fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Item,Cost,Weight,Short |
|format=table | |format=table | ||
}} | }} |
Latest revision as of 01:12, 31 August 2020
All lower-case
- 1: category. Multiple categories can be added to the table with comma-separation (weapons,armor)
- 2: subcategory (optional). Multiple subcategories can be added to the table with comma-separation (camping,survival)
- 3: Show Hidden? Yes (defaults No)
No results