Diferencia entre revisiones de «Plantilla:Versión»

De Minecraft Wiki
Saltar a: navegación, buscar
m
m
Línea 1: Línea 1:
<includeonly>{{#if: {{{nolink|}}} | {{#if: {{{server|}}}{{{s|}}}
+
<includeonly><!--
  +
| {{#if: {{{weekly|}}} | {{raw:en:Version|weekly=1|server=1|nolink=1}}
 
  +
-->{{#vardefine:classic|0.30}}<!--
| {{#if: {{{classic|}}} | {{raw:en:Version|classic=1|server=1|nolink=1}}
 
  +
-->{{#vardefine:classic-server|1.1.2}}<!--
| {{raw:en:Version|server=1|nolink=1}} }} }}
 
  +
-->{{#vardefine:pc|1.8}}<!--
|{{#if: {{{weekly|}}} | {{raw:en:Version|weekly=1|nolink=1}}
 
  +
-->{{#vardefine:pc-server|1.8}}<!--
|{{#if: {{{android|}}} | {{raw:en:Version|android=1|nolink=1}}
 
  +
-->{{#vardefine:android|0.9.5}}<!--
|{{#if: {{{android-snap|}}} | {{raw:en:Version|android-snap=1|nolink=1}}
 
  +
-->{{#vardefine:ios|0.7.2}}<!--
|{{#if: {{{ios|}}} | {{raw:en:Version|ios=1|nolink=1}}
 
  +
-->{{#vardefine:weekly|1.8.1-pre2}}<!--
|{{#if: {{{firetv|}}} | {{raw:en:Version|firetv=1|nolink=1}}
 
  +
-->{{#vardefine:weekly-server|}}<!--
|{{#if: {{{ps3|}}} | {{raw:en:Version|ps3=1|nolink=1}}
 
  +
-->{{#vardefine:xbox|TU16}}<!--
|{{#if: {{{xbox|}}} | {{raw:en:Version|xbox=1|nolink=1}}
 
  +
-->{{#vardefine:pi|0.1.1}}<!--
|{{#if: {{{pi|}}} | {{raw:en:Version|pi=1|nolink=1}}
 
  +
|{{#if: {{{classic|}}} | {{raw:en:Version|classic=1|nolink=1}}
 
  +
-->{{
|{{#if: {{{launcher|}}} | {{raw:en:Version|launcher=1|nolink=1}}
 
  +
#vardefine:switch|{{#var:{{
|{{raw:en:Version|nolink=1}} }}}}}}}}}}}}}}}}}}}}}}
 
  +
#switch: {{
|{{#if: {{{server|}}}{{{s|}}}
 
| {{#if: {{{weekly|}}} | {{raw:en:Version|weekly=1|server=1}}
+
#if: {{{c|}}}{{{classic|}}} | 1 | 0
  +
}}{{
| {{#if: {{{classic|}}} | {{raw:en:Version|classic=1|server=1}}
 
| {{raw:en:Version|server=1}} }}}}
+
#if: {{{android|}}} | 1 | 0
  +
}}{{
|{{#if: {{{weekly|}}} | {{raw:en:Version|weekly=1}}
 
|{{#if: {{{android|}}} | {{raw:en:Version|android=1}}
+
#if: {{{ios|}}} | 1 | 0
  +
}}{{
|{{#if: {{{android-snap|}}} | {{raw:en:Version|android-snap=1}}
 
|{{#if: {{{ios|}}} | {{raw:en:Version|ios=1}}
+
#if: {{{xbox|}}} | 1 | 0
  +
}}{{
|{{#if: {{{firetv|}}} | {{raw:en:Version|firetv=1}}
 
|{{#if: {{{ps3|}}} | {{raw:en:Version|ps3=1}}
+
#if: {{{pi|}}} | 1 | 0
  +
}}{{
|{{#if: {{{xbox|}}} | {{raw:en:Version|xbox=1}}
 
|{{#if: {{{pi|}}} | {{raw:en:Version|pi=1}}
+
#if: {{{weekly|}}} | 1 | 0
  +
}}{{
|{{#if: {{{classic|}}} | {{raw:en:Version|classic=1}}
 
|{{#if: {{{launcher|}}} | {{raw:en:Version|launcher=1}}
+
#if: {{{s|}}}{{{server|}}} | 1 | 0
|{{raw:en:Version}}
+
}}
  +
| 1000000 = classic
}}}}}}}}}}}}}}}}}}}}}}}}</includeonly><noinclude>
 
  +
| 1000001 = classic-server
{{documentation}}
 
  +
| 0100000 = android
<!-- Put categories/interwiki on the documentation page -->
 
  +
| 0010000 = ios
  +
| 0001000 = xbox
  +
| 0000100 = pi
  +
| 0000010 = weekly
  +
| 0000011 = weekly-server
  +
| 0000001 = pc-server
  +
| #default = pc
  +
}}}}
  +
}}<!--
  +
  +
-->{{
  +
#vardefine:type|{{
  +
#switch: {{
 
#if: {{{c|}}}{{{classic|}}} | 1 | 0
  +
}}{{
 
#if: {{{android|}}} | 1 | 0
  +
}}{{
 
#if: {{{ios|}}} | 1 | 0
  +
}}{{
 
#if: {{{xbox|}}} | 1 | 0
  +
}}{{
  +
#if: {{{pi|}}} | 1 | 0
  +
}}{{
 
#if: {{{weekly|}}} | 1 | 0
  +
}}{{
 
#if: {{{s|}}}{{{server|}}} | 1 | 0
  +
}}
  +
| 1000000 | 1000001 = Classic
  +
| 0100000 | 0010000 = PE
  +
| 0001000 = Xbox
  +
| 0000100 = Pi
  +
}}
  +
}}{{
  +
#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}} }}}}
  +
}}
 
}}</includeonly><noinclude>
  +
{{/doc}}
  +
  +
[[Category:Templates|V]]</noinclude>

Revisión del 12:01 19 oct 2014

Esta es la página de documentación. Esta debería ser transcluída en la páginaplantilla principal. Véase la Plantilla:Documentación para más información
Atajos
v
ver
Véase también: Plantilla:Versión/PF

This template displays and links to the latest version of a particular edition of Minecraft.

MainMenu.png or BEMenuScreen.png should be updated when {{v|java}} or {{v|bedrock}} are changed, respectively.

Version Displayed Code used
Java Edition java {{v|java}}
Java Edition upcoming java-upcoming {{v|java-upcoming}}
Java Edition snapshot java-snap {{v|java-snap}}
Java Edition Combat snapshot java-combat-snap {{v|java-combat-snap}}
Launcher (Windows) launcher-win {{v|launcher-win}}
Launcher (macOS) launcher-mac {{v|launcher-mac}}
Launcher (Linux) launcher-lin {{v|launcher-lin}}
Launcher (Windows beta) launcher-win-beta {{v|launcher-win-beta}}
Launcher (macOS beta) launcher-mac-beta {{v|launcher-mac-beta}}
Launcher (Linux beta) launcher-lin-beta {{v|launcher-lin-beta}}
Bedrock Edition bedrock {{v|bedrock}}
Bedrock Edition (Android) bedrock-android {{v|bedrock-android}}
Bedrock Edition (iOS/iPadOS) bedrock-ios {{v|bedrock-ios}}
Bedrock Edition (Windows 10) bedrock-win10 {{v|bedrock-win10}}
Bedrock Edition (PlayStation 4) bedrock-ps4 {{v|bedrock-ps4}}
Bedrock Edition (Xbox One) bedrock-xbone {{v|bedrock-xbone}}
Bedrock Edition (Nintendo Switch) bedrock-switch {{v|bedrock-switch}}
Bedrock Edition (Fire/Fire Phone) bedrock-fireos {{v|bedrock-fireos}}
Bedrock Edition (Fire TV) bedrock-firetv {{v|bedrock-firetv}}
Bedrock Edition realm server bedrock-realm-server {{v|bedrock-realm-server}}
Bedrock Edition upcoming bedrock-upcoming {{v|bedrock-upcoming}}
Bedrock Edition beta bedrock-beta {{v|bedrock-beta}}
Education Edition education {{v|education}}
Education Edition (Windows) education-win {{v|education-win}}
Education Edition (macOS) education-mac {{v|education-mac}}
Education Edition (iOS/iPadOS) education-ios {{v|education-ios}}
Education Edition (Chrome OS) education-chromeos {{v|education-chromeos}}
Education Edition upcoming education-upcoming {{v|education-upcoming}}
Education Edition beta education-beta {{v|education-beta}}
China version (Windows) china-pc {{v|china-pc}}
China version (Android) china-android {{v|china-android}}
China version (iOS/iPadOS) china-ios {{v|china-ios}}
Minecraft Earth (Android) earth-android {{v|earth-android}}
Minecraft Earth (iOS/iPadOS) earth-ios {{v|earth-ios}}
Minecraft Dungeons Internal version no. dungeons-internal {{v|dungeons-internal}}
Minecraft Dungeons (Windows) dungeons-win {{v|dungeons-win}}
Minecraft Dungeons (Xbox One) dungeons-xbone {{v|dungeons-xbone}}
Minecraft Dungeons (Xbox Series X|S) dungeons-xbseries {{v|dungeons-xbseries}}
Minecraft Dungeons (Nintendo Switch) dungeons-switch {{v|dungeons-switch}}
Minecraft Dungeons (PlayStation 4) dungeons-ps4 {{v|dungeons-ps4}}