From Brotato Wiki
(INITIAL \o/) |
(add templatedata) |
||
Line 31: | Line 31: | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"version": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Version", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
} | |||
} | |||
} | |||
</templatedata></noinclude> |
Revision as of 22:43, 13 November 2022
Show a game version number:
- The text is green if the provided version matches the current version.
- The text is red if it's lower.
Intended for use on the Modding page, to better show mods that use an outdated version of the game.
Also includes hover text explaining the colors.
Uses Template:GetVersion to get the current version (1.1.7.1).
Example
{{Version|0.5.11c}}
= 0.5.11c
{{Version|0.6.0.7}}
= 0.6.0.7
Example using the current game version, in case the examples above are all out of date:
{{Version|{{GetVersion}}}}
= 1.1.7.1
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Version | version 1 | no description | String | required |