Actions

Template

Difference between revisions of "BaseItemList SubCategory Table"

From P6 Spheres

 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
tables=Base_Items
 
tables=Base_Items
 
|where=ItemType HOLDS "{{{ItemType|1}}}" AND ItemSubType HOLDS "{{{ItemSubType|1}}}"
 
|where=ItemType HOLDS "{{{ItemType|1}}}" AND ItemSubType HOLDS "{{{ItemSubType|1}}}"
|fields=CONCAT('[[',_pageName,'|',Name,']]')=Name,Price,Short
+
|fields=CONCAT('[[',_pageName,'|',SortName,']]')=Name,PrettyPrice=Price,PrettyWeight=Weight,Short
 +
|order by=SortName
 
|format=table}}{{Flex|type=end}}
 
|format=table}}{{Flex|type=end}}
 
</includeonly>
 
</includeonly>

Latest revision as of 18:08, 15 March 2020

Creates a list of cards defined by the template BaseItemList_ItemCard

Required Fields: ItemType, ItemSubType