Module:Sandbox/BDavis (WMF)/Version/doc

This is an old revision of this page, as edited by BDavis (WMF) (talk | contribs) at 03:12, 30 June 2016 (Copy from Module:Version/doc&oldid=2024068). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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|stable|version}}: Script error: No such module "Version".
  • {{#invoke:Version|get|stable|branch}}: Script error: No such module "Version".
  • {{#invoke:Version|get|stable|git}}: Script error: No such module "Version".
  • {{#invoke:Version|get|stable|date}}: Script error: No such module "Version".
  • {{#invoke:Version|get|legacy|version}}: Script error: No such module "Version".
  • {{#invoke:Version|get|lts|version}}: Script error: No such module "Version".
  • {{#invoke:Version|get|alpha|branch}}: Script error: No such module "Version".

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