Module:Version/doc/ja: Difference between revisions
From Bonkipedia
< Module:Version | doc
[[mw:]]>FuzzyBot (Updating to match new version of source page) |
ManfredoDo (talk | contribs) m (1 revision imported: Module Import) |
(No difference)
|
Latest revision as of 18:21, 12 November 2022
This is a documentation subpage for Module:Version/doc. It contains usage information, categories and other content that is not part of the original Module page. |
<translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate> |
<translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate> |
メインのエントリーポイントは 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.40{{#invoke:Version|get|beta|branch}}
: 1.39{{#invoke:Version|get|stable|version}}
: 1.38.4{{#invoke:Version|get|stable|branch}}
: 1.38{{#invoke:Version|get|stable|git}}
: REL1_38{{#invoke:Version|get|stable|date}}
: 2022-09-29{{#invoke:Version|get|lts|version}}
: 1.35.8{{#invoke:Version|get|legacy|version}}
: 1.37.6{{#invoke:Version|get|legacylts|version}}
: 1.35.8
とはいえ、このモジュールを直接呼び出すのではなく、Category:MediaWiki version information templates のラッパー テンプレートの 1 つを使用する方がいいでしょう。[[[<translate nowrap> w:Wikipedia:Please clarify</translate>|<span title="<translate nowrap> The reason for this is unclear.</translate>"><translate> why?</translate>]]]