Difference between revisions of "Module:Version/doc"

From Northumberland Climbing
Jump to navigation Jump to search
module>Tomybrz
m ({{module rating|release}}{{module rating|protected}})
 
m (1 revision imported)
 
(No difference)

Latest revision as of 05:53, 31 July 2020

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.36
  • {{#invoke:Version|get|stable|version}}: 1.34.2
  • {{#invoke:Version|get|stable|branch}}: 1.34
  • {{#invoke:Version|get|stable|git}}: REL1_34
  • {{#invoke:Version|get|stable|date}}: 2020-06-24
  • {{#invoke:Version|get|lts|version}}: 1.31.8
  • {{#invoke:Version|get|legacy|version}}: 1.33.4
  • {{#invoke:Version|get|legacylts|version}}: 1.31.8

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