Template:BTDB2 hp: Difference between revisions

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

Latest revision as of 17:16, 9 December 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 PointsQuincy Hero Points 999
{{BTDB2 hp|10|Quincy|name=y}}
Hero PointsQuincy Hero Points 10 Quincy Hero Points