Module:Version/doc

From mediawiki.org

The main entrypoint is the get function.

First parameter is the release type, which can be one of the following:

  • stable
  • legacy
  • lts
  • beta
  • alpha

Second parameter is the format, which can be one of the following:

  • version
  • branch
  • git
  • date

Note that alpha and beta only work with branch, the behavior of other output formats is undefined.

Examples

  • {{#invoke:Version|get|alpha|branch}}: 1.40
  • {{#invoke:Version|get|beta|branch}}: —
  • {{#invoke:Version|get|stable|version}}: 1.39.1
  • {{#invoke:Version|get|stable|branch}}: 1.39
  • {{#invoke:Version|get|stable|git}}: REL1_39
  • {{#invoke:Version|get|stable|date}}: 2022-12-22
  • {{#invoke:Version|get|lts|version}}: 1.39.1
  • {{#invoke:Version|get|legacy|version}}: 1.38.5
  • {{#invoke:Version|get|legacylts|version}}: 1.35.9

That said, you probably want to use one of the wrapper templates in Category:MediaWiki version information templates instead of calling this module directly.[why?]