Template:BuildingQuery

{{#cargo_query: table=InfoboxBuildings }}
 * fields=Image,_pageName,Name,Region,Toons
 * where={{#if:{{{name|}}}|Name="{{{name|}}}"|{{#if:{{{region|}}}|Region="{{{region|}}}"|{{#if:{{{toons|}}}|Toons="{{{toons|}}}"}} }} }} {{#if:{{{name|}}}|AND Name="{{{name|}}}"}} {{#if:{{{region|}}}|AND Region="{{{region|}}}"}} {{#if:{{{toons|}}}|AND Toons="{{{toons|}}}"}}
 * format=template
 * template=BuildingQuery/row
 * intro={{BuildingQuery/header}}
 * outro={{!}}}
 * named args=yes
 * group by=_pageName
 * order by=Name ASC