Jump to content

Module:Version/doc/de

From mediawiki.org
This page is a translated version of the page Module:Version/doc and the translation is 17% complete.

The main entrypoint is the get function.

First parameter is the release type, which can be one of the following:

  • stable
  • legacy
  • lts
  • beta
  • alpha

Second parameter is the format, which can be one of the following:

  • version
  • branch
  • git
  • date

Note that alpha und beta only work with branch, the behavior of other output formats is undefined.

Beispiele

  • {{#invoke:Version|get|alpha|branch}}: 1.45
  • {{#invoke:Version|get|beta|branch}}: 1.44
  • {{#invoke:Version|get|stable|version}}: 1.43.0
  • {{#invoke:Version|get|stable|branch}}: 1.43
  • {{#invoke:Version|get|stable|git}}: REL1_43
  • {{#invoke:Version|get|stable|date}}: 2024-12-21
  • {{#invoke:Version|get|lts|version}}: 1.43.0
  • {{#invoke:Version|get|legacy|version}}: 1.42.4
  • {{#invoke:Version|get|legacylts|version}}: 1.39.11

That said, you probably want to use one of the wrapper templates in Kategorie:Vorlagen für MediaWiki-Versionsinformationen instead of calling this module directly.[Warum?]