Module:Version/doc/ja
このページは、Module:Version/doc の説明文 下位ページです。 使用法の情報、カテゴリ、言語間リンク、その他のコンテンツなど、元の Module ページの一部ではない情報を含みます。 |
This module is rated as ready for general use. 成熟した形に達しており、バグがなく、適切な場所であればどこでも使用できると考えられています。 新しい利用者が学習するための選択肢として、ヘルプ ページや他のリソースで言及する準備ができています。 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. 非常に多くのページで使用されている閲覧回数が多いモジュールです。 Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
メインのエントリーポイントは 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 つを使用する方がいいでしょう。[何故?]