Template:BCS cosmetic item list by hero

From Blooncyclopedia, the independent Bloons knowledge base
Revision as of 11:10, 18 July 2025 by Polavux (talk | contribs) (Created page with "<includeonly><div class="center-col-2 center-col-4 responsive-block-col-1">{{#cargo_query:tables=bcs_cosmetic_items=items, bcs_rewards=rewards |fields=CONCAT("30px|link=", items._pageName, "|Icon of ", items.name, " ", items.name) = Item, CONCAT("", items.category, "") = Category, GROUP_CONCAT(rewards.name SEPARATOR ", ") = Unlock method(s), CONCAT(CASE WHEN items.introduced IS NULL THEN "Launch" ELSE CONCAT("Bloons...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template adds rows to the table "bcs_rewards", which is declared by the template BCS rewards. View table.

Generates a table of cosmetic items in Bloons Card Storm that are equippable to a specific Hero using a Cargo query. This template also stores the IDs of the cosmetic items unlocked at levels 10 and 15 to "bcs_rewards".

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Hero1

no description

Stringrequired
Level 10 cosmetic item IDlevel 10

no description

Stringrequired
Level 15 cosmetic item IDlevel 15

no description

Stringrequired

Example usage

{{BCS cosmetic item list by hero|Quincy|level 10=CardBackQuincyMasterHero|level 15=AltQuincyHeroCard01}}
Error 1054: Unknown column 'card' in 'where clause'

Function: CargoSQLQuery::run Query: SELECT CONCAT("Icon of ", `items`.`name`, " ", `items`.`name`) AS `Item`,CONCAT("", `items`.`category`, "") AS `Category`,GROUP_CONCAT(`rewards`.`name` SEPARATOR ", ") AS `Unlock method(s)`,CONCAT(CASE WHEN `items`.`introduced` IS NULL THEN "Launch" ELSE CONCAT("Version ", `items`.`introduced`, "") END) AS `Introduced` FROM `cargo__bcs_cosmetic_items` `items` LEFT OUTER JOIN `cargo__bcs_rewards` `rewards` ON ((`items`.`id`=`rewards`.`item`)) WHERE card = "Quincy" GROUP BY `items`.`_pageName`, `items`.`name`, `items`.`image`, `items`.`introduced`, `rewards`.`item` ORDER BY `items`.`category` LIMIT 100