Template:Generic cargo count/doc: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 34: Line 34:
Bloons Card Storm has {{generic cargo count|bcs_cards}} cards.
Bloons Card Storm has {{generic cargo count|bcs_cards}} cards.
<pre>Rogue Legends has {{generic cargo count|btd6_artifacts|where=type != "Boost"}} Artifacts, or {{generic cargo count|btd6_artifacts|where=type != "Boost"|count=COUNT(description_common)+COUNT(description_rare)+COUNT(description_legendary)}} if different rarities of an Artifact are counted separately.</pre>
<pre>Rogue Legends has {{generic cargo count|btd6_artifacts|where=type != "Boost"}} Artifacts, or {{generic cargo count|btd6_artifacts|where=type != "Boost"|count=COUNT(description_common)+COUNT(description_rare)+COUNT(description_legendary)}} if different rarities of an Artifact are counted separately.</pre>
Rogue Legends has {{generic cargo count|btd6_artifacts|where=type != "Boost"}} Artifacts, or {{generic cargo count|btd6_artifacts|where=type != "Boost"|count=COUNT(description_common)+COUNT(description_rare)+COUNT(description_legendary)}} Artifacts if all rarities of an Artifact are counted separately.
Rogue Legends has {{generic cargo count|btd6_artifacts|where=type != "Boost"}} Artifacts, or {{generic cargo count|btd6_artifacts|where=type != "Boost"|count=COUNT(description_common)+COUNT(description_rare)+COUNT(description_legendary)}} Artifacts if all rarities of each Artifact are counted separately.
<includeonly>[[Category:Cargo query templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude>
<includeonly>[[Category:Cargo query templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude>

Latest revision as of 00:29, 31 October 2025

This template displays the number of rows in a specified cargo table.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Cargo table1

no description

Example
bcs_cards
Stringrequired
Wherewhere

Corresponds to the "where" field in a cargo query.

Stringoptional
Countcount

Overrides the count field.

Default
COUNT(*)
Example
COUNT(description_common)+COUNT(description_rare)+COUNT(description_legendary)
Stringoptional

Example usage

Bloons Card Storm has {{generic cargo count|bcs_cards}} cards.

Bloons Card Storm has 282 cards.

Rogue Legends has {{generic cargo count|btd6_artifacts|where=type != "Boost"}} Artifacts, or {{generic cargo count|btd6_artifacts|where=type != "Boost"|count=COUNT(description_common)+COUNT(description_rare)+COUNT(description_legendary)}} if different rarities of an Artifact are counted separately.

Rogue Legends has 116 Artifacts, or 307 Artifacts if all rarities of each Artifact are counted separately.