Template:Card table

{{#cargo_query: tables=Cards, CardLevels |join on=Cards._pageName=CardLevels._pageName |fields=Cards._pageName=page, Cards.Name=name, Cards.Type=type, Cards.Generation=generation, Cards.Stars=stars, CardLevels.Resources=resources, Cards.Resource=resource, CardLevels.Attack=attack, CardLevels.Defense=defense, CardLevels.HP=hp, CardLevels.PPESpecial=special |where={{#if:{{{resource|}}}|Cards.Resource="{{lc:{{{resource|}}} }}" AND|}} CardLevels.Level=1 |group by=Cards._pageName |default=No cards found. |intro={{Card table header}} |outro={{!}}} |format=template |template=Card table row |named args=yes |limit=1000 }}