Actions

Template

Difference between revisions of "BaseItemList"

From P6 Spheres

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>Creates a list of tables for the desired category, each tables containing the items of one subcategory
 
<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><h2>{{#replace:{{{1|}}}|_|}}</h2>
+
</noinclude><includeonly><h2>{{#replace:{{{Label}}}|_|}}</h2>
 +
{{FlexContainer|type=begin}}
 
{{#cargo_query:
 
{{#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
Line 11: Line 12:
 
|template=BaseItemList_SubCategory_Table
 
|template=BaseItemList_SubCategory_Table
 
|named args=yes}}
 
|named args=yes}}
 
+
{{FlexContainer}}</includeonly>
</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