Template:BTDB2 hp: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<span style="margin-right:-20px">[[File:BTDB2 hero xp large.png|x20px|link=Hero Point|Hero Points]]</span>{{#if:{{{hero|}}}|[[File:BTDB2 {{{hero|quincy}}} xp large.png|x20px|link=Hero Point|Hero Points]]}} {{formatnum:{{{1|}}}}}{{#if:{{{name|}}}|<nowiki> </nowiki>[[Hero Point]]s}}</includeonly><noinclude>{{/doc}}</noinclude>
<includeonly><span style="margin-right:-20px">[[File:BTDB2 hero xp large.png|x20px|link=Hero Point|Hero Points]]</span>{{#if:{{{hero|}}}|[[File:BTDB2 {{{hero|quincy}}} xp large.png|x20px|link=Hero Point|Hero Points]]}} {{formatnum:{{{1|}}}}}{{#if:{{{name|}}}|<nowiki> </nowiki>[[Hero Point]]s}}</includeonly><noinclude>{{/doc}}</noinclude>

Revision as of 14:43, 18 November 2024

Creates an icon of Hero Points from Bloons TD Battles 2 that links to "Hero Point". Can also display a formatted number and the head icon of a specific Hero.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Amount1

If specified, displays a number after the icon. If greater than 1000, comma separation is added automatically by the template.

Example
100
Numbersuggested
Hero2

If specified, displays the icon of a Hero.

Example
Quincy
Stringoptional
Namename

If set to anything, adds a text link to "Monkey Money" after the icon and (if an amount is specified) amount.

Example
y
Booleanoptional

Example usage

Wikitext Result
{{BTDB2 hp}}
Hero Points
{{BTDB2 hp|9999}}
Hero Points 9,999
{{BTDB2 hp|100|name=y}}
Hero Points 100 Hero Points
{{BTDB2 hp|999|Quincy}}
Hero Points 999
{{BTDB2 hp|10|Quincy|name=y}}
Hero Points 10 Hero Points