Template:BTD5 token/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "<templatedata> { "params": { "1": { "label": "Amount", "description": "If specified, displays a comma-separated number.", "example": "100", "type": "number", "suggested": true }, "name": { "label": "Name", "description": "If set to anything, adds a text link to \"Token (BTD5)\" after the icon and (if an amount is specified) amount.", "example": "y", "type": "boolean" } }, "description": "Creates a link to \"Token (BTD5)\" with an ico..." |
mNo edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
"1": { | "1": { | ||
"label": "Amount", | "label": "Amount", | ||
"description": "If specified, displays a comma | "description": "If specified, displays a number after the icon. If greater than 1000, comma separation is added automatically by the template.", | ||
"example": "100", | "example": "100", | ||
"type": "number", | "type": "number", | ||
| Line 16: | Line 16: | ||
} | } | ||
}, | }, | ||
"description": "Creates | "description": "Creates an icon of Tokens from the mobile version of Bloons TD 5 that links to \"Token (BTD5)\". Can also display a formatted number.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
| Line 30: | Line 30: | ||
!Result | !Result | ||
|- | |- | ||
|<pre>{{ | |<pre>{{BTD5 token}}</pre> | ||
|{{ | |{{BTD5 token}} | ||
|- | |- | ||
|<pre>{{ | |<pre>{{BTD5 token|9999}}</pre> | ||
|{{ | |{{BTD5 token|9999}} | ||
|- | |- | ||
|<pre>{{ | |<pre>{{BTD5 token|100|name=y}}</pre> | ||
|{{ | |{{BTD5 token|100|name=y}} | ||
|} | |} | ||
<includeonly>[[Category:BTD5 templates]][[Category:Icon templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | <includeonly>[[Category:BTD5 templates]][[Category:Icon templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | ||
Latest revision as of 20:01, 16 November 2024
Creates an icon of Tokens from the mobile version of Bloons TD 5 that links to "Token (BTD5)". Can also display a formatted number.
| 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 |
| Name | name | If set to anything, adds a text link to "Token (BTD5)" after the icon and (if an amount is specified) amount.
| Boolean | optional |
Example usage
| Wikitext | Result |
|---|---|
{{BTD5 token}}
|
|
{{BTD5 token|9999}}
|
|
{{BTD5 token|100|name=y}}
|