Module:Sandbox/BDavis (WMF)/Version/doc: Difference between revisions
imported>BDavis (WMF) (*really* point at Sandbox/BDavis_(WMF)/Version) |
(No difference)
|
Latest revision as of 04:14, 30 Haziran 2016
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.