Template:BTD6 cosmetic item list by introduced: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:


|extra col 1=CONCAT(items.category, " ― [[", items._pageName, "|", items.subcategory, "]]") = Category
|extra col 1=CONCAT(items.category, " ― [[", items._pageName, "|", items.subcategory, "]]") = Category
{{#if:{{{show trophy store|}}}|{{!}}extra col 2=IF(GROUP_CONCAT(sources.name) LIKE "%Trophy Store%", "{{Y}}", "{{N}}") = Trophy Store?}}
{{#if:{{{hide trophy store|}}}||{{!}}extra col 2=IF(GROUP_CONCAT(sources.name) LIKE "%Trophy Store%", "{{Y}}", "{{N}}") = Trophy Store?}}
|center extra cols=y
|center extra cols=y


Line 11: Line 11:
|join on =items.id = sources.item
|join on =items.id = sources.item
|group by=items._pageName, items.name, items.image, items.category, items.subcategory, items.introduced
|group by=items._pageName, items.name, items.image, items.category, items.subcategory, items.introduced
|order by={{#if:{{{show trophy store|}}}|Trophy Store? DESC,}} items.category, items.subcategory, items.name
|order by={{#if:{{{hide trophy store|}}}||Trophy Store? DESC,}} items.category, items.subcategory, items.name
}}</includeonly><noinclude>{{/doc}}</noinclude>
}}</includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 08:05, 8 April 2026

Generates a table of cosmetic items in Bloons TD 6 according to the version they were introduced in using a Cargo query.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Version1

The version to list items from. Must be a number and cannot include the "v".

Example
40.0
Numberrequired
XD only?xd only

If enabled, shows items exclusive to the Chinese version. If not, Chinese version-exclusive items are excluded.

Booleanoptional

Example usage

{{BTD6 cosmetic item list by introduced|45.0}}
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2=IF(GROUP_CONCAT(`sources`.`name`) LIKE "%Trophy Store%", "[[File:Yes.svg|x30px' at line 3

Function: CargoSQLQuery::run Query: SELECT CONCAT("<div class='flex-left-icon-wrapper'>Image of", `items`.`name`, "<div>", "", `items`.`name`, "", "</div></div>") AS `Item`,CONCAT(`items`.`category`, " ― ", `items`.`subcategory`, "") = Category |extra col 2=IF(GROUP_CONCAT(`sources`.`name`) LIKE "%Trophy Store%", "Yes", "No") = Trophy Store? AS `CONCAT(items category, ― , items subcategory, ) = Category |extra col 2=IF(GROUP CONCAT(sources name) LIKE %Trophy Store% , Yes , No ) = Trophy Store?` FROM `cargo__btd6_cosmetic_items` `items` LEFT OUTER JOIN `cargo__btd6_cosmetic_sources` `sources` ON ((`items`.`id`=`sources`.`item`)) WHERE `items`.`introduced` = "45.0" AND NOT xd_only GROUP BY `items`.`_pageName`, `items`.`name`, `items`.`image`, `items`.`category`, `items`.`subcategory`, `items`.`introduced` ORDER BY `Trophy Store?` DESC,`items`.`category`,`items`.`subcategory`,`items`.`name` LIMIT 100