Module:Version/doc/en-gb

From Linux Web Expert

< Module:Version‎ | doc

Revision as of 16:18, 12 July 2023 by imported>Reedy (Created page with "Note that $1 only work with $2, the behaviour of other output formats is undefined.")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 and beta only work with branch, the behaviour of other output formats is undefined.

Examples

  • {{#invoke:Version|get|alpha|branch}}: 1.43
  • {{#invoke:Version|get|beta|branch}}: 1.42
  • {{#invoke:Version|get|stable|version}}: 1.41.1
  • {{#invoke:Version|get|stable|branch}}: 1.41
  • {{#invoke:Version|get|stable|git}}: REL1_41
  • {{#invoke:Version|get|stable|date}}: 2024-03-28
  • {{#invoke:Version|get|lts|version}}: 1.39.7
  • {{#invoke:Version|get|legacy|version}}: 1.40.3
  • {{#invoke:Version|get|legacylts|version}}: 1.39.7

That said, you probably want to use one of the wrapper templates in Category:MediaWiki version information templates instead of calling this module directly.[[[<translate nowrap> w:Wikipedia:Please clarify</translate>|<span title="<translate nowrap> The reason for this is unclear.</translate>"><translate> why?</translate>]]]