Actions

Template

Difference between revisions of "BaseItemList"

From P6 Spheres

 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Creates a list of subcategories for the desired category, each section containing cards defined by the template BaseItemList_ItemCard
+
<noinclude>Creates a list of tables for the desired category, each tables containing the items of one subcategory
  
'''Required Fields:''' 1 (containing the desired category)
+
'''Required Fields:''' Label,Tag
</noinclude><includeonly>{{#cargo_query:
+
</noinclude><includeonly><h2>{{#replace:{{{Label}}}|_|}}</h2>
 +
{{FlexContainer|type=begin}}
 +
{{#cargo_query:
 
tables=Base_Items
 
tables=Base_Items
|where=ItemType HOLDS '{{{1|}}}'
+
|where=ItemType HOLDS '{{{Tag}}}'
 
|group by=ItemSubType
 
|group by=ItemSubType
 
|fields=ItemType, ItemSubType
 
|fields=ItemType, ItemSubType
 
|format=template
 
|format=template
|template=BaseItemList_SubCategory_Cards
+
|template=BaseItemList_SubCategory_Table
|named args=yes}}</includeonly>
+
|named args=yes}}
 +
{{FlexContainer}}</includeonly>

Latest revision as of 20:58, 14 March 2020

Creates a list of tables for the desired category, each tables containing the items of one subcategory

Required Fields: Label,Tag