Difference between revisions of "Module:Version/doc"
Jump to navigation
Jump to search
module>Tomybrz m ({{module rating|release}}{{module rating|protected}}) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 05:53, 31 July 2020
This module is rated as ready for general use. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
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|alpha|branch}}
: 1.36{{#invoke:Version|get|stable|version}}
: 1.34.2{{#invoke:Version|get|stable|branch}}
: 1.34{{#invoke:Version|get|stable|git}}
: REL1_34{{#invoke:Version|get|stable|date}}
: 2020-06-24{{#invoke:Version|get|lts|version}}
: 1.31.8{{#invoke:Version|get|legacy|version}}
: 1.33.4{{#invoke:Version|get|legacylts|version}}
: 1.31.8
That said, you probably want to use one of the wrapper templates in Category:MediaWiki version information templates instead of calling this module directly.