Actions

Template

Difference between revisions of "BaseItemList"

From P6 Spheres

(Created page with "{{#cargo_query: tables=Base_Items |fields=ItemSubType |group by=ItemSubType |format=template |template=BaseItemList_SubCategory}}")
 
Line 1: Line 1:
{{#cargo_query:
+
<noinclude>Creates a list of subcategories for the desired category, each section containing cards defined by the template BaseItemList_ItemCard
 +
 
 +
'''Required Fields:''' 1 (containing the desired category)
 +
</noinclude><includeonly>{{#cargo_query:
 
tables=Base_Items
 
tables=Base_Items
|fields=ItemSubType
+
|where=ItemType = {{{1|1}}}
 
|group by=ItemSubType
 
|group by=ItemSubType
 +
|fields=ItemType, ItemSubType
 
|format=template
 
|format=template
|template=BaseItemList_SubCategory}}
+
|template=BaseItemList_SubCategory
 +
|named args=yes}}</includeonly>

Revision as of 13:49, 14 March 2020

Creates a list of subcategories for the desired category, each section containing cards defined by the template BaseItemList_ItemCard

Required Fields: 1 (containing the desired category)