Actions

Template

Difference between revisions of "BaseItemList SubCategory Cards"

From P6 Spheres

 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
  
--><h2 style="position: -webkit-sticky; position:sticky; top:20px; margin:4px; padding:5px; background-color:white;width:50%;border:1px solid #DDDDDD;"> {{{ItemSubType|Missing SubType}}} </h2><!--
+
--><h2 style="margin:4px; padding:5px;"> {{{ItemSubType|Missing SubType}}} </h2><!--
  
-->{{#cargo_query:
+
-->{{FlexContainer|type=begin}}{{#cargo_query:
 
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=_pageName=Page,Name,Price,Weight,Fluff,Description,Benefit,Note
+
|fields=_pageName=Page,Name,PrettyPrice,PrettyWeight,Fluff,Description,Benefit,Note
 
|format=template
 
|format=template
 
|template=BaseItemList_ItemCard
 
|template=BaseItemList_ItemCard
|named args=yes}}
+
|named args=yes}}{{FlexContainer}}
 
</includeonly>
 
</includeonly>

Latest revision as of 23:33, 14 March 2020

Creates a list of cards defined by the template BaseItemList_ItemCard

Required Fields: ItemType, ItemSubType