VOOZH about

URL: https://minecraft.wiki/w/Template:CompareVersion

⇱ Template:CompareVersion – Minecraft Wiki


Template:CompareVersion

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
This template uses Module:CompareVersion, a script written in 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

[edit source]
  • |1=: User-specified version. Only supports the format of numerical digits separated by dots, e.g. 1.21, 1.21.0, or 0.14.0. Minor variations e.g. Preview 1.21.0.22, v0.16.0, alpha v0.15.0, 0.2.0j, or Beta 1.3 are 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.

Code

{{#if:{{CompareVersion|1.21.50|bedrock}}|[[Bedrock Edition 1.21.50]] has been released. | [[Bedrock Edition 1.21.50]] has not been released.}}

Output

Bedrock Edition 1.21.50 has been released.

List of unsupported codes

[edit source]
  • java-experimental-version
  • java-experimental
  • java-snap
  • java-type
  • java-combat-snap
  • bedrock-beta
  • bedrock-beta-android
  • bedrock-preview
  • bedrock-preview-*
[view] [edit] [history] [purge]The above documentation is transcluded from Template:CompareVersion/doc.
Retrieved from "https://minecraft.wiki/w/Template:CompareVersion?oldid=2752079"

Navigation menu