Module:Version/doc/ja

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

メインのエントリーポイントは get 関数です。

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 および beta only work with branch, the behavior of other output formats is undefined.

  • {{#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

とはいえ、このモジュールを直接呼び出すのではなく、Category:MediaWiki バージョン情報のテンプレート のラッパー テンプレートの 1 つを使用する方がいいでしょう。[何故?]