Template:Card table

{{#cargo_query: tables=Cards |fields=Cards._pageName=page, Cards.name, Cards.faction, Cards.flagship, Cards.stars, Cards.type, Cards.cost, Cards.attack, Cards.defense, Cards.effect |where={{#lstsep:{{#if:{{{name|}}}|({{#lstmap:{{{name|}}}|\!\!|@@@@|Cards.name="@@@@"|\_OR\_}})|}},{{#if:{{{faction|}}}|({{#lstmap:{{{faction|}}}|\!\!|@@@@|Cards.faction="@@@@"|\_OR\_}})|}},{{#if:{{{is_core|}}}|({{#switch:{{lc:{{{is_core}}} }}|yes=Cards.is_core=1|no=Cards.is_core=0}})|}},{{#if:{{{flagship|}}}|({{#lstmap:{{{flagship|}}}|\!\!|@@@@|Cards.flagship HOLDS "@@@@"|\_OR\_}})|}},{{#if:{{{stars|}}}|({{#lstmap:{{{stars|}}}|\!\!|@@@@|Cards.stars=@@@@|\_OR\_}})|}},{{#if:{{{type|}}}|({{#lstmap:{{{type|}}}|\!\!|@@@@|Cards.type="@@@@"|\_OR\_}})|}},{{#if:{{{species|}}}|({{#lstmap:{{{species|}}}|\!\!|@@@@|Cards.species="@@@@"|\_OR\_}})|}},{{#if:{{{cost|}}}|({{#lstmap:{{{cost|}}}|\!\!|@@@@| Cards.cost{{#ifeq:@@@@|7+|>6|=@@@@}} |\_OR\_}})|}},{{#if:{{{gold|}}}|({{#switch:{{lc:{{{gold}}} }}|true=Cards.has_gold=1|#default=Cards.has_gold=0}})|}},{{#if:{{{mechanics|}}}|({{#lstmap:{{{mechanics|}}}|\!\!|@@@@|Cards.mechanics HOLDS "@@@@"|\_OR\_}})|}},{{#if:{{{tags|}}}|({{#lstmap:{{{tags|}}}|\!\!|@@@@|Cards.tags HOLDS "@@@@"|\_OR\_}})|}},{{#if:{{{hiddentags|}}}|({{#lstmap:{{{hiddentags|}}}|\!\!|@@@@|Cards.hiddentags HOLDS "@@@@"|\_OR\_}})|}}|,|\_AND\_}} |group by=Cards._pageName |order by=Cards.stars, Cards.name |format=template |template=Card table row |intro={{Card table header}} {{!-}} |outro={{!}}} |named args=yes |more results text= |limit= }}