Module:Version/doc/pl
Appearance
| To jest podstrona dokumentacji dla Module:Version/doc. Zawiera ona opis użycia, kategorie i inne elementy, które nie są częścią oryginalnej strony Module. |
| 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 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. 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 the release type, which can be one of the following:
stablelegacyltsbetaalpha
Second parameter is the format, which can be one of the following:
versionbranchgitdate
Note that alpha oraz beta only work with branch, the behaviour of other output formats is undefined.
Przykłady
{{#invoke:Version|get|alpha|branch}}: 1.47{{#invoke:Version|get|beta|branch}}: —{{#invoke:Version|get|stable|version}}: 1.46.0{{#invoke:Version|get|stable|branch}}: 1.46{{#invoke:Version|get|stable|git}}: REL1_46{{#invoke:Version|get|stable|date}}: 2026-06-30{{#invoke:Version|get|lts|version}}: 1.43.9{{#invoke:Version|get|legacy|version}}: 1.45.4{{#invoke:Version|get|legacylts|version}}: 1.43.9
That said, you probably want to use one of the wrapper templates in Category:MediaWiki version information templates instead of calling this module directly.[dlaczego?]