Module:Version/doc

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.



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