Template:BTD6 mk info: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
m fix to stop ul from breaking on mobile view
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly><templatestyles src="Info/style.css"/><div class="info"><!--
!class="head"|{{{name}}}
--><div class="head">{{{name}}}</div>
|-
{|class="subtable main centered"
|
{|class="info-sub main centered-cells"
|[[File:{{{image}}}|100px|Icon of {{{name}}}]]
|[[File:{{{image}}}|100px|Icon of {{{name}}}]]
|-
|-
|{{{description}}}
|{{{description}}}
|}
|}
{|class="info-sub"
{|class="subtable"
![[Tower category|Category]]
![[Tower category|Category]]
|colspan="2"|{{#switch:{{{category}}}
|colspan="2"|{{#switch:{{{category}}}
Line 20: Line 18:
|-
|-
!Prerequisites
!Prerequisites
|colspan="2"|{{#ifexpr:{{{points required|0}}} != 0 or {{#if:{{{prerequisites|}}}|1|0}}|<ul>{{#ifeq:{{{points required|0}}}|0||
|colspan="2"|{{#ifexpr:{{{points required|0}}} != 0 or {{#if:{{{prerequisites|}}}|1|0}}|<!--
<li>[[File:BTD6 KnowledgeIcon.png|x17px|link=Monkey Knowledge Point]] {{{points required}}} invested}}</li>
-->{{#ifeq:{{{points required|0}}}|0||[[File:BTD6 KnowledgeIcon.png|x17px|link=Monkey Knowledge Point]] {{{points required}}} invested<br>}}<!--
{{#if:{{{prerequisites|}}}|{{#cargo_query:tables = btd6_mk=main_mk, btd6_mk__prerequisites, btd6_mk=prerequisites_mk
-->{{#if:{{{prerequisites|}}}|{{#cargo_query:tables = btd6_mk=main_mk, btd6_mk__prerequisites, btd6_mk=prerequisites_mk
|join on = main_mk._ID=btd6_mk__prerequisites._RowID, btd6_mk__prerequisites._value=prerequisites_mk.name
|join on = main_mk._ID=btd6_mk__prerequisites._RowID, btd6_mk__prerequisites._value=prerequisites_mk.name
|fields=CONCAT("<li>[[File:", prerequisites_mk.image, "|x20px|link=", prerequisites_mk._pageName, "{{!}}", prerequisites_mk.name, "]] [[", prerequisites_mk._pageName, "|", prerequisites_mk.name, "]]</li>") = text
|fields=CONCAT("[[File:", prerequisites_mk.image, "|x20px|link=", prerequisites_mk._pageName, "{{!}}", prerequisites_mk.name, "]] [[", prerequisites_mk._pageName, "|", prerequisites_mk.name, "]]<br>") = text
|where=main_mk.name = "{{{name|x}}}"
|where=main_mk.name = "{{{name|x}}}"
|delimiter=
|delimiter=
}}}}</ul>|―}}
}}}}|―}}
|-
|-
!Prerequisite of
!Prerequisite of
|colspan="2"|{{#cargo_query:table=btd6_mk
|colspan="2"|{{#cargo_query:table=btd6_mk
|fields=CONCAT("[[File:", image, "|x20px|link=", _pageName, "{{!}}", name, "]] [[", _pageName, "|", name, "]]") = text
|fields=CONCAT("[[File:", image, "|x20px|link=", _pageName, "{{!}}", name, "]] [[", _pageName, "|", name, "]]<br>") = text
|where=prerequisites HOLDS "{{{name|x}}}" AND NOT unused
|where=prerequisites HOLDS "{{{name|x}}}" AND NOT unused
|format=ul
|format=list
|default=―}}
|delimiter=
|default=―
}}
|-
|-
!Introduced
!Introduced
|colspan="2"|{{#if:{{{introduced|}}}|[[Bloons TD 6 v{{{introduced}}}|Version {{{introduced}}}]]|Launch}}
|colspan="2"|{{#if:{{{introduced|}}}|[[Update history:Bloons TD 6/Version {{{introduced}}}|Version {{{introduced}}}]]|Launch}}
|}
|}</div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd6_mk
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd6_mk
|id={{{id|}}}
|id={{{id|}}}
|unused={{{unused|No}}}
|unused={{{unused|No}}}

Latest revision as of 21:59, 3 June 2026

This template defines the Cargo table "btd6_mk". View table.

Infobox for Monkey Knowledge. Contents are added to the Cargo table "btd6_mk" and placed in one of six article categories.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the Monkey Knowledge. This is displayed in the infobox header and stored in Cargo.

Example
Flanking Maneuvers
Stringrequired
Imageimage

The Monkey Knowledge's icon. This is displayed in the infobox and stored in Cargo.

Example
BTD6 mk FlankingManeuversIcon.png
Filerequired
Descriptiondescription

The Monkey Knowledge's description. This is displayed in the infobox and stored in Cargo.

Example
Sniper, Monkey Sub, & Monkey Buccaneer attack 10% faster when set to 'Last' targeting priority.
Stringrequired
Categorycategory

The tree this Monkey Knowledge belongs to. This is displayed in the infobox, stored in Cargo, and determines the article's category.

Suggested values
Primary Military Magic Support Heroes Powers
Stringrequired
Monkey Money costcost

The Monkey Money cost to purchase this Monkey Knowledge. Leave this blank if the Monkey Knowledge does not have a cost. This is displayed in the infobox and stored in Cargo.

Example
500
Numberoptional
Monkey Knowledge Points requiredpoints required

The number of Monkey Knowledge Points that need to be invested in the tree to be able to unlock this Monkey Knowledge. Leave this blank if the Monkey Knowledge does not require any points. This is displayed in the infobox and stored in Cargo.

Example
8
Numberoptional
Version introducedintroduced

The version number of the update this Monkey Knowledge was introduced in. Leave this blank if this Monkey Knowledge was in the game at launch. This is displayed in the infobox and stored in Cargo.

Example
22.0
Numberoptional
Prerequisitesprerequisites

The prerequisite Monkey Knowledge to unlock this Monkey Knowledge, separated by semicolons with no spaces. This is displayed in the infobox and stored in Cargo. (The "prerequisite of" parameter is generated automatically with Cargo.)

Example
Quad Burst;Trade Agreements
Stringoptional
Version introduced (console)introduced C

The version number of the update to the console version this Monkey Knowledge was introduced in. Leave this blank if this Monkey Knowledge was in the console version at launch. This is currently not unused, but is stored in Cargo.

Example
2.0
Numberoptional
Internal IDid

The internal ID of this Monkey Knowledge. This is stored in Cargo.

Example
FlankingManeuvers
Stringoptional
Unused?unused

If true, this Monkey Knowledge is treated as unused or removed content and does not show up in Cargo query templates (used for Recurring 'Rangs).

Default
No
Booleanoptional

Example usage

Flanking Maneuvers
Icon of Flanking Maneuvers
Sniper, Monkey Sub, & Monkey Buccaneer attack 10% faster when set to 'Last' targeting priority.
Category Military
Cost Monkey Money 500
Prerequisites 8 invested
Quad Burst Quad Burst
Trade Agreements Trade Agreements
Prerequisite of Sub Admiral Sub Admiral
Introduced Version 22.0
{{BTD6 mk info
|id=FlankingManeuvers

|name       =Flanking Maneuvers
|image      =BTD6 mk FlankingManeuversIcon.png
|description=Sniper, Monkey Sub, & Monkey Buccaneer attack 10% faster when set to 'Last' targeting priority.

|introduced  =22.0
|introduced C=

|category       =Military
|cost           =500
|points required=8
|prerequisites  =Quad Burst, Trade Agreements
}}