Template:CrateQuery

{{#cargo_query: table=InfoboxCrates }}
 * fields=Image,_pageName,Name,SourceList
 * where={{#if:{{{name|}}}|Name="{{{name|}}}"|{{#if:{{{sourcelist|}}}|SourceList="{{{sourcelist|}}}"}} }} {{#if:{{{name|}}}|AND Name="{{{name|}}}"}} {{#if:{{{sourcelist|}}}|AND SourceList="{{{sourcelist|}}}"}}
 * format=template
 * template=CrateQuery/row
 * intro={{CrateQuery/header}}
 * outro={{!}}}
 * named args=yes
 * group by=_pageName
 * order by=Name ASC