m (Mise à jour) |
m (Nouveau modèle) |
||
Ligne 1 : | Ligne 1 : | ||
− | <includeonly>< |
+ | <includeonly>{{#invoke: version | version }}</includeonly> |
⚫ | |||
− | |||
− | -->{{#vardefine:classic|0.30}}<!-- |
||
− | -->{{#vardefine:classic-server|1.1.2}}<!-- |
||
− | -->{{#vardefine:pc|1.8.1}}<!-- |
||
− | -->{{#vardefine:pc-server|1.8.1}}<!-- |
||
− | -->{{#vardefine:weekly|}}<!-- |
||
− | -->{{#vardefine:weekly-server|}}<!-- |
||
− | -->{{#vardefine:android|0.10.4}}<!-- |
||
− | -->{{#vardefine:android-snap|}}<!-- |
||
− | -->{{#vardefine:ios|0.10.4}}<!-- |
||
− | -->{{#vardefine:firetv|0.10.0}}<!-- |
||
− | -->{{#vardefine:xbox|1.6.4}}<!-- |
||
− | -->{{#vardefine:ps3|1.08}}<!-- |
||
− | -->{{#vardefine:pi|0.1.1}}<!-- |
||
− | -->{{#vardefine:launcher|1.5.3}}<!-- |
||
− | |||
− | -->{{ |
||
− | #vardefine:switch|{{#var:{{ |
||
− | #switch: {{ |
||
− | #if: {{{c|}}}{{{classic|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{android|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{android-snap|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{ios|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{firetv|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{ps3|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{xbox|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{pi|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{weekly|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{s|}}}{{{server|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{launcher|}}} | 1 | 0 |
||
− | }} |
||
− | | 10000000000 = classic |
||
− | | 10000000010 = classic-server |
||
− | | 01000000000 = android |
||
− | | 00100000000 = android-snap |
||
− | | 00010000000 = ios |
||
− | | 00001000000 = firetv |
||
− | | 00000100000 = ps3 |
||
− | | 00000010000 = xbox |
||
− | | 00000001000 = pi |
||
− | | 00000000100 = weekly |
||
− | | 00000000110 = weekly-server |
||
− | | 00000000010 = pc-server |
||
− | | 00000000001 = launcher |
||
− | | #default = pc |
||
− | }}}} |
||
− | }}<!-- |
||
− | |||
− | -->{{ |
||
− | #vardefine:type|{{ |
||
− | #switch: {{ |
||
− | #if: {{{c|}}}{{{classic|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{android|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{android-snap|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{ios|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{firetv|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{ps3|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{xbox|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{pi|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{weekly|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{s|}}}{{{server|}}} | 1 | 0 |
||
− | }}{{ |
||
− | #if: {{{launcher|}}} | 1 | 0 |
||
− | }} |
||
− | | 10000000000 | 10000000010 = Classic |
||
− | | 01000000000 | 00100000000 | 00010000000 | 00001000000 = PE |
||
− | | 00000100000 = ps3 |
||
− | | 00000010000 = Xbox |
||
− | | 00000001000 = Pi |
||
− | | 00000000001 = Launcher |
||
− | }} |
||
− | }}{{ |
||
− | #if: {{{1|}}}{{{t|}}}{{{table|}}}<!-- table cell formatting --> |
||
− | | style="{{ |
||
− | #ifeq: {{ #if: {{{1|}}} | {{{1}}} | {{#var:switch}} }} | {{#var:switch}}<!-- there's probably a better way to do this, but whatever for now --> |
||
− | | background: #C6EFCE; color: #006100<!-- {{{1}}} matches the requested version: green color --> |
||
− | | background: #FFC7CE; color: #9C0006<!-- {{{1}}} doesn't match the requested version: red color --> |
||
− | }}" {{!}} |
||
− | }}{{ |
||
− | #if: {{{nolink|}}}{{ #if: {{#var:switch}} || 1 }} |
||
− | | {{ |
||
− | #if: {{{1|}}} |
||
− | | {{{1}}} |
||
− | | {{#var:switch}} |
||
− | }} |
||
− | | {{ |
||
− | #if: {{{1|}}} |
||
− | | {{version link|{{#if: {{#var:type}} | {{#var:type}} {{{1}}} | {{{1}}} }}|{{{1}}}}} |
||
− | | {{version link|{{#if: {{#var:type}} | {{#var:type}} {{#var:switch}} | {{#var:switch}} }}|{{ #if: {{{2|}}} | {{{2}}} | {{#var:switch}} }}}} |
||
− | }} |
||
⚫ | |||
{{/doc}} |
{{/doc}} |
||
Version du 16 décembre 2014 à 17:27
[purger]
Ceci est la page de documentation, elle devrait être incluse dans le page principale du modèle. Voir Modèle:Documentation pour plus d'informations- Raccourci
- v
Ce modèle utilise Module:Version, avec des données stockées dans Module:Version/Numéros.
Ces programmes sont écrits en Lua. Voir wp:Lua et mw:Extension:Scribunto pour plus d'informations.
Ces programmes sont écrits en Lua. Voir wp:Lua et mw:Extension:Scribunto pour plus d'informations.
Ce modèle permet d'afficher les numéros des versions actuelles de Minecraft.
Versions actuelles
Version Java
Édition | Version | Code utilisé |
---|---|---|
Minecraft Java | 1.20.2
|
{{v}}
|
Minecraft serveur | 1.20.2
|
{{v|s=1}}
|
Hebdomadaire | 1.20.2
|
{{v|weekly=1}}
|
Hebdomadaire serveur | 1.20.2
|
{{v|weekly-server=1}}
|
Lanceur (Windows) | 2.4.104
|
{{v|launcher-windows=1}}
|
Lanceur (macOS) | 2.4.104
|
{{v|launcher-mac=1}}
|
Lanceur (Linux) | 2.4.104
|
{{v|launcher-linux=1}}
|
Version Bedrock
Édition | Version | Code utilisé |
---|---|---|
Android | 1.20.15
|
{{v|android=1}}
|
Android (bêta) | bêta 1.20.30.25
|
{{v|android-snap=1}}
|
iOS | 1.20.15
|
{{v|ios=1}}
|
Fire OS | 1.20.15
|
{{v|fireos=1}}
|
Fire TV | 1.20.15
|
{{v|firetv=1}}
|
Windows 10 | 1.20.15
|
{{v|windows10=1}}
|
Windows 10 Mobile |
|
{{v|windows10-mobile=1}}
|
Windows 10 (bêta) | bêta 1.20.30.25
|
{{v|windows10-snap=1}}
|
Gear VR |
|
{{v|gearvr=1}}
|
Xbox One | 1.20.15
|
{{v|xbone=1}}
|
Xbox One (bêta) | bêta 1.20.30.25
|
{{v|xbone-snap=1}}
|
PS4 | 1.20.15
|
{{v|ps4=1}}
|
Nintendo Switch | 1.20.15
|
{{v|nswitch=1}}
|
Version éducative
Édition | Version | Code utilisé |
---|---|---|
Éducation | 1.18.42
|
{{v|education=1}}
|
Éducation (Windows 10) | 1.20.2
|
{{v|education=1}}
|
Éducation (macOS) | 1.18.42
|
{{v|education-mac=1}}
|
Éducation (iOS) | 1.18.42
|
{{v|education-ios=1}}
|
Éducation (bêta) |
|
{{v|education-beta=1}}
|
Minecraft Earth
Édition | Version | Code utilisé |
---|---|---|
Earth | 0.24.0
|
{{v|earth=1}}
|
Earth (Android) | 0.24.0
|
{{v|earth-android=1}}
|
Earth (iOS) | 0.24.0
|
{{v|earth-ios=1}}
|
NB : Les versions portable et consoles ne sont plus mises à jour, le code existe cependant toujours.
Utilisation
Pour afficher la version actuelle d'une édition de Minecraft, il faut utiliser le code :
{{v|nom-edition=1}}
Pour une utilisation dans un fichier (comme dans Minecraft Wiki/platform), il faut ajouter le paramètre {{{platform}}}
:
[[Fichier:Windows.svg|40px|lien={{v|windows10=1|platform=1}}]]
Modifier le numéro de version
Page en correspondance : Module:Version/Numéros