Module:Version/doc

< Module:Version
Revision as of 23:33, 30 November 2019 by Joelmartin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Version

The main entrypoint is the "get" function. First parameter is release, can be "stable", "legacy", "lts", or "alpha". Second parameter is the format, can be "version", "branch", "git", or "date". Note that "alpha" only works with "branch", the behavior of other output formats is undefined.

  • {{#invoke:Version|get|alpha|branch}}: 1.35
  • {{#invoke:Version|get|stable|version}}: 1.33.1
  • {{#invoke:Version|get|stable|branch}}: 1.33
  • {{#invoke:Version|get|stable|git}}: REL1_33
  • {{#invoke:Version|get|stable|date}}: 2019-10-07
  • {{#invoke:Version|get|lts|version}}: 1.31.5
  • {{#invoke:Version|get|legacy|version}}: 1.32.5
  • {{#invoke:Version|get|legacylts|version}}: 1.31.5

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