Template:BTDB2 hp/doc: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
Created page with "<templatedata> { "params": { "1": { "label": "Amount", "description": "If specified, displays a number after the icon. If greater than 1000, comma separation is added automatically by the template.", "example": "100", "type": "number", "suggested": true }, "name": { "label": "Name", "description": "If set to anything, adds a text link to \"Monkey Money\" after the icon and (if an amount is specified) amount.", "example": "y", "type": "bo..."
 
mNo edit summary
Line 8: Line 8:
"type": "number",
"type": "number",
"suggested": true
"suggested": true
},
"2": {
"label": "Hero",
"description": "If specified, displays the icon of a Hero.",
"example": "Quincy",
"type": "string"
},
},
"name": {
"name": {
Line 14: Line 20:
"example": "y",
"example": "y",
"type": "boolean"
"type": "boolean"
},
"hero": {
"label": "Hero",
"description": "If specified, displays the icon of a Hero.",
"example": "Quincy",
"type": "string"
}
}
},
},
Line 25: Line 25:
"paramOrder": [
"paramOrder": [
"1",
"1",
"name",
"2",
"hero"
"name"
],
],
"format": "inline"
"format": "inline"
Line 46: Line 46:
|{{BTDB2 hp|100|name=y}}
|{{BTDB2 hp|100|name=y}}
|-
|-
|<pre>{{BTDB2 hp|999|hero=Quincy}}</pre>
|<pre>{{BTDB2 hp|999|Quincy}}</pre>
|{{BTDB2 hp|999|hero=Quincy}}
|{{BTDB2 hp|999|Quincy}}
|-
|-
|<pre>{{BTDB2 hp|10|hero=Quincy|name=y}}</pre>
|<pre>{{BTDB2 hp|10|Quincy|name=y}}</pre>
|{{BTDB2 hp|10|hero=Quincy|name=y}}
|{{BTDB2 hp|10|Quincy|name=y}}
|}
|}
<includeonly>[[Category:Battles 2 templates]][[Category:Icon templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude>
<includeonly>[[Category:Battles 2 templates]][[Category:Icon templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude>

Revision as of 17:16, 9 December 2024

Creates an icon of a Hero Point 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

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