Template:MC/CompareVersion
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
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-*
The above text is transcluded from Template:MC/CompareVersion/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/CompareVersion/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/CompareVersion/doc. (View all subpages of this page.)