Difference between revisions of "Equipment DescList"
From Titan's Teeth
Dicemonger (talk | contribs) |
Dicemonger (talk | contribs) |
||
(22 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) | + | * 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={{#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="}}"}}) {{#ifeq: {{{3|}}}|Yes|| AND (Hidden!=1 OR Hidden IS NULL)}} |
|order by=Name | |order by=Name | ||
− | |fields=Name,Fluff,Description,Benefit,Note | + | |fields=_pageName = Page,Name,Fluff,Description,Benefit,Note |
|format=template | |format=template | ||
|template=Equipment_DescList_Item | |template=Equipment_DescList_Item | ||
− | | | + | |named args=yes |
}} | }} |
Latest revision as of 00:57, 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