Difference between revisions of "Equipment Table"
From Titan's Teeth
Dicemonger (talk | contribs) |
Dicemonger (talk | contribs) |
||
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) | + | * 2: subcategory (optional). Multiple subcategories can be added to the table with comma-separation (camping,survival) |
</noinclude><!-- | </noinclude><!-- | ||
-->{{#cargo_query:tables=Equipment | -->{{#cargo_query:tables=Equipment | ||
− | |where={{#if: {{{2|}}}|Category="{{{1}}}" AND SubCategory="{{{2}}}"|Category="{{{1}}}"}} | + | |where={{#if: {{{2|}}}|(Category="{{#replace:{{{1}}}|,|" OR Category="}}") AND (SubCategory="{{#replace:{{{2}}}|,|" OR SubCategory="}}")|Category="{{#replace:{{{1}}}|,|" OR Category="}}"}} |
|order by=Name | |order by=Name | ||
|fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,Cost,Weight,Short | |fields=CONCAT( '[[', _pageName, '|', Name, ']]' ) = Name,Cost,Weight,Short | ||
|format=table | |format=table | ||
}} | }} |
Revision as of 21:22, 25 September 2019
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)
No results