Module:Sandbox/BDavis (WMF)/Version/doc
![]() | This is a documentation subpage for Module:Sandbox/BDavis (WMF)/Version. It may contain usage information, categories and other content that is not part of the original module page. |
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.