Template:MC/CompareVersion/doc
Template page
More actions
Template:Documentation header Template:Lua This template compares a version of Minecraft to the current version, and returns "true" if the version is less than or equal to the current version (indicating that the version has been released), or an empty string if the version has not been released.
Parameters
|1=: User-specified version. Only supports the format of numerical digits separated by dots, e.g.1.21,1.21.0, or0.14.0. Minor variations e.g.Preview 1.21.0.22,v0.16.0,alpha v0.15.0,0.2.0j, orBeta 1.3are not supported.|2=: Code of edition of the game being used in the comparison, e.g.|2=bedrock. Refer to Template:Version/doc for the list of codes. Note that the codes in this list are unsupported.
Usage
Code <syntaxhighlight lang="mediawiki"> Bedrock Edition 1.21.50 has been released.</syntaxhighlight>
Output
Bedrock Edition 1.21.50 has been released.
List of unsupported codes
java-experimental-versionjava-experimentaljava-snapjava-typejava-combat-snapbedrock-betabedrock-beta-androidbedrock-previewbedrock-preview-*