Template:BTDB2 hp/doc: Difference between revisions
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" | ||
} | } | ||
}, | }, | ||
| Line 25: | Line 25: | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
" | "2", | ||
" | "name" | ||
], | ], | ||
"format": "inline" | "format": "inline" | ||
| Line 46: | Line 46: | ||
|{{BTDB2 hp|100|name=y}} | |{{BTDB2 hp|100|name=y}} | ||
|- | |- | ||
|<pre>{{BTDB2 hp|999| | |<pre>{{BTDB2 hp|999|Quincy}}</pre> | ||
|{{BTDB2 hp|999| | |{{BTDB2 hp|999|Quincy}} | ||
|- | |- | ||
|<pre>{{BTDB2 hp|10| | |<pre>{{BTDB2 hp|10|Quincy|name=y}}</pre> | ||
|{{BTDB2 hp|10| | |{{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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Amount | 1 | If specified, displays a number after the icon. If greater than 1000, comma separation is added automatically by the template.
| Number | suggested |
| Hero | 2 | If specified, displays the icon of a Hero.
| String | optional |
| Name | name | If set to anything, adds a text link to "Monkey Money" after the icon and (if an amount is specified) amount.
| Boolean | optional |
Example usage
| Wikitext | Result |
|---|---|
{{BTDB2 hp}}
|
|
{{BTDB2 hp|9999}}
|
|
{{BTDB2 hp|100|name=y}}
|
|
{{BTDB2 hp|999|Quincy}}
|
|
{{BTDB2 hp|10|Quincy|name=y}}
|