Template:BTDB2 last updated/doc: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
Created page with "<templatedata> { "params": { "1": { "label": "Version number", "description": "The version number to use.", "example": "46.0", "type": "string", "required": true } }, "format": "inline", "description": "Creates a hatnote to be used at the top of stats and strategy articles pertaining to Battles 2. Like other hatnotes, this should be placed above any notice templates, such as {{stub}}." } </templatedata> ==Example usage== <pre>{{BTDB2 last updated|..."
 
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
"label": "Version number",
"label": "Version number",
"description": "The version number to use.",
"description": "The version number to use.",
"example": "46.0",
"example": "4.0",
"type": "string",
"type": "string",
"required": true
"required": true
},
"2": {
"label": "OTA number",
"description": "The OTA number to use.",
"example": "1",
"type": "string"
},
"section": {
"label": "Section?",
"description": "If set to anything, displays \"this section was\" instead of \"this article was\".",
"type": "boolean"
}
}
},
},
Line 16: Line 27:


==Example usage==
==Example usage==
<pre>{{BTDB2 last updated|4.0}}</pre>
<pre>{{BTDB2 last updated|4.4}}</pre>
{{BTDB2 last updated|4.0}}
{{BTDB2 last updated|4.4}}
<pre>{{BTDB2 last updated|4.4|1}}</pre>
{{BTDB2 last updated|4.4|1}}
<includeonly>[[Category:Battles 2 templates]][[Category:Hatnotes]]</includeonly><noinclude>[[Category:Documentation]]</noinclude>
<includeonly>[[Category:Battles 2 templates]][[Category:Hatnotes]]</includeonly><noinclude>[[Category:Documentation]]</noinclude>

Latest revision as of 03:19, 30 June 2025

Creates a hatnote to be used at the top of stats and strategy articles pertaining to Battles 2. Like other hatnotes, this should be placed above any notice templates, such as {{stub}}.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Version number1

The version number to use.

Example
4.0
Stringrequired
OTA number2

The OTA number to use.

Example
1
Stringoptional
Section?section

If set to anything, displays "this section was" instead of "this article was".

Booleanoptional

Example usage

{{BTDB2 last updated|4.4}}
This article was last updated for: version 4.4
{{BTDB2 last updated|4.4|1}}
This article was last updated for: version 4.4 OTA 1