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

This is the current revision of this page, as edited by BDavis (WMF) (talk | contribs) at 03:14, 30 June 2016 (*really* point at Sandbox/BDavis_(WMF)/Version). The present address (URL) is a permanent link to this version.
(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:Sandbox/BDavis_(WMF)/Version|get|stable|version}}: 1.27.0
  • {{#invoke:Sandbox/BDavis_(WMF)/Version|get|stable|branch}}: 1.27
  • {{#invoke:Sandbox/BDavis_(WMF)/Version|get|stable|git}}: REL1_27
  • {{#invoke:Sandbox/BDavis_(WMF)/Version|get|stable|date}}: 2016-06-28
  • {{#invoke:Sandbox/BDavis_(WMF)/Version|get|legacy|version}}: 1.26.3
  • {{#invoke:Sandbox/BDavis_(WMF)/Version|get|lts|version}}: 1.23.14
  • {{#invoke:Sandbox/BDavis_(WMF)/Version|get|alpha|branch}}: 1.28

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