Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MC/CompareVersion/doc

Template page
Revision as of 22:36, 26 November 2024 by imported>Voicefulbread66
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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, 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.

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-version
  • java-experimental
  • java-snap
  • java-type
  • java-combat-snap
  • bedrock-beta
  • bedrock-beta-android
  • bedrock-preview
  • bedrock-preview-*


uk:Шаблон:Порівняння версій/док