Module:Version/doc/fr
From Linux Web Expert
< Module:Version | doc
File:OOjs UI icon book-ltr.svg | 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. |
File:OOjs UI icon check-constructive.svg | <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> |
File:Semi-protection-shackle-no-text.svg | <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> |
Le point d'entrée principal est la fonction get
.
Le premier paramètre est le type de la version; une valeur parmi les suivantes :
stable
legacy
lts
beta
alpha
Le second paramètre est le format; une valeur parmi les suivantes :
version
branch
git
date
Notez bien que alpha
et beta
ne fonctionne qu'avec branch
; le comportement avec d'autres formats de sortie n'est pas défini.
Exemples
{{#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
Cela étant dit, vous pouvez utiliser un des modèles englobants de Category:Modèles des informations de version de MediaWiki , plutôt que d'appeler ce module directement.[[[<translate nowrap> w:Wikipedia:Please clarify</translate>|<span title="<translate nowrap> The reason for this is unclear.</translate>"><translate> why?</translate>]]]