Difference between revisions of "Template:EquipmentCardList Category"

From Epic Paths
Jump to navigation Jump to search
 
Line 7: Line 7:


-->{{Grid|type=begin}}{{#cargo_query:tables=Equipment_Items
-->{{Grid|type=begin}}{{#cargo_query:tables=Equipment_Items
|where=({{#if: {{{2|}}}|(Category="{{#replace:{{{1}}}|,|" OR Category="}}") AND (SubCategory="{{#replace:{{{2}}}|,|" OR SubCategory="}}")|Category="{{#replace:{{{1}}}|,|" OR Category="}}"}}) AND Description != ""
|where=({{#if: {{{2|}}}|(Category="{{#replace:{{{1}}}|,|" OR Category="}}") AND (SubCategory="{{#replace:{{{2}}}|,|" OR SubCategory="}}")|Category="{{#replace:{{{1}}}|,|" OR Category="}}"}}) AND !(Fluff = "" AND Description = "" AND Benefit = "" AND Note = "")
|order by=Name
|order by=Name
|fields=_pageName = Page,Name,Fluff,Description,Benefit,Note
|fields=_pageName = Page,Name,Fluff,Description,Benefit,Note

Latest revision as of 22:55, 26 August 2021

All lower-case

  • 1: category. Multiple categories can be added to the table with comma-separation (weapons,armor)
  • 2: subcategory (optional). Multiple subcategories can be added to the table with comma-separation (camping,survival)