Diferencia entre revisiones de «Plantilla:Version link»
m (1 revisión) |
|||
Línea 1: | Línea 1: | ||
<includeonly>[[{{ | <includeonly>[[{{ | ||
#if: {{ #pos: {{ lc: {{{1}}} }} | pocket }}{{ #pos: {{ lc: {{{1}}} }} | pe }} <!-- Android and iOS Pocket Edition --> | #if: {{ #pos: {{ lc: {{{1}}} }} | pocket }}{{ #pos: {{ lc: {{{1}}} }} | pe }} <!-- Android and iOS Pocket Edition --> | ||
− | | | + | | Pocket Edition version history#{{ |
#if: {{ #pos: {{{1}}} | ) }} <!-- If there's brackets, a date is assumed and is used as the anchor instead of a version number --> | #if: {{ #pos: {{{1}}} | ) }} <!-- If there's brackets, a date is assumed and is used as the anchor instead of a version number --> | ||
| {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | | {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | ||
| A{{ #explode: {{{1}}} | | -1 }} | | A{{ #explode: {{{1}}} | | -1 }} | ||
}} | }} | ||
− | | {{ #if: {{ #pos: {{ lc: {{{1}}} }} | | + | | {{ #if: {{ #pos: {{ lc: {{{1}}} }} | ps3 }} <!-- PlayStation 3 Edition --> |
− | | | + | | PlayStation 3 Edition version history#{{ |
#if: {{ #pos: {{{1}}} | ) }} <!-- Brackets --> | #if: {{ #pos: {{{1}}} | ) }} <!-- Brackets --> | ||
| {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | | {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | ||
| {{ #explode: {{{1}}} | | -1 }} | | {{ #explode: {{{1}}} | | -1 }} | ||
}} | }} | ||
− | | {{ #if: {{ #pos: {{ lc: {{{1}}} }} | | + | | {{ #if: {{ #pos: {{ lc: {{{1}}} }} | xbox }} <!-- Xbox 360 Edition --> |
− | | | + | | Xbox 360 Edition version history#{{ |
#if: {{ #pos: {{{1}}} | ) }} <!-- Brackets --> | #if: {{ #pos: {{{1}}} | ) }} <!-- Brackets --> | ||
| {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | | {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | ||
− | | | + | | {{ #explode: {{{1}}} | | -1 }} |
}} | }} | ||
− | | | + | | {{ #if: {{ #pos: {{ lc: {{{1}}} }} | pi }} <!-- Pi Edition --> |
− | + | | Pi Edition version history#{{ | |
− | | | + | #if: {{ #pos: {{{1}}} | ) }} <!-- Brackets --> |
− | # | ||
− | |||
− | |||
| {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | | {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | ||
+ | | A{{ #explode: {{{1}}} | | -1 }} | ||
}} | }} | ||
− | | {{ <!-- Otherwise, find special prefixes --> | + | | {{ #if: {{ #switch: {{{1}}} | 1.7.4 | 1.7.5 | 1.7.6 | 1.8 = 1 }}{{ #pos: {{{1}}} | 14w }} <!-- New version pages --> |
− | + | | {{{1}}} | |
− | + | | Version history{{ | |
− | + | #if: {{ #pos: {{{1}}} | ) }} <!-- Brackets --> | |
− | + | | /{{ #explode: {{{1}}} | | 0 }}#{{ | |
− | + | #switch: {{ lc: {{ #explode: {{ #sub: {{{1}}} | {{ #pos: {{{1}}} | ( }} }} | | 1 }} }} <!-- Seecret updates --> | |
− | + | | friday = SF{{ #sub: {{ #explode: {{{1}}} | | -1 }} | 0 | -1 }} | |
− | + | | saturday = SS{{ #sub: {{ #explode: {{{1}}} | | -1 }} | 0 | -1 }} | |
− | + | | {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }} | |
− | + | }} | |
− | + | | {{ <!-- Otherwise, find special prefixes --> | |
− | + | #if: {{ #pos: {{{1}}} | Preview }}{{ #pos: {{{1}}} | Prerelease }}{{ #pos: {{{1}}} | Pre-release }}{{ #pos: {{{1}}} | pre }}{{ #pos: {{ lc: {{{1}}} }} | rc }}{{ #ifeq: {{ #sub: {{{1}}} | 2 | 1 }} | w | 1 }} <!-- Pre-releases, release candidates, snapshots, previews --> | |
− | + | | /Development versions#{{ | |
− | + | #if: {{ #pos: {{{1}}} | pre }} | |
+ | | B{{ #explode: {{{1}}} | | -1 }} | ||
+ | | {{{1}}} | ||
+ | }} | ||
+ | | {{ | ||
+ | #if: {{ #pos: {{{1}}} | Pre }}{{ #pos: {{ lc: {{{1}}} }} | test }} <!-- The first few versions of Minecraft --> | ||
+ | | /Classic#{{ #sub: {{{1}}} | 8 | {{ #if: {{ #pos: {{ lc: {{{1}}} }} | test }} | -14 }} }} | ||
+ | | {{ | ||
+ | #if: {{ #explode: {{{1}}} | | 1 }} | ||
+ | | /{{ #replace: {{{1}}} | | # }} <!-- Otherwise if it has a space, replace it with a # --> | ||
+ | | #{{{1}}} <!-- Otherwise, just use the whole string --> | ||
+ | }} | ||
+ | }} | ||
}} | }} | ||
}} | }} | ||
Línea 52: | Línea 62: | ||
}}]]</includeonly><noinclude> | }}]]</includeonly><noinclude> | ||
{{/doc}} | {{/doc}} | ||
− | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revisión del 23:51 11 abr 2014
- Atajo
- verlink
Esta plantilla se utiliza para vincular automáticamente a la página de la historia de la versión correcta, junto con un ancla para la versión especificada.
Uso
Esta plantilla debe aceptar cualquier número de versión de Minecraft estándar, también aceptará fechas (entre paréntesis) que serán utilizados en lugar del número de versión para el anclaje. Esto es útil para las primeras versiones de Minecraft que a menudo tenían múltiples versiones con el mismo número de versión.
Ejemplos
{{verlink|12w05a}}
{{verlink|1.1}}
{{verlink|Indev (February 4, 2010)}}
{{verlink|Beta 1.9|These are not the versions you are looking for}}
These are not the versions you are looking for
{{verlink|Beta 1.9pre6}}
{{verlink|Alpha 1.2.2 (November 10, 2010)}}
Alpha 1.2.2 (November 10, 2010)
{{verlink|Classic 0.26 SURVIVAL TEST}}
{{verlink|Classic 0.26 SURVIVAL TEST (October 22, 2009)}}
Classic 0.26 SURVIVAL TEST (October 22, 2009)
{{verlink|Pocket Edition Alpha 0.2.0}}
{{verlink|Pocket Edition Alpha 0.2.0 (February 17, 2012)}}
Pocket Edition Alpha 0.2.0 (February 17, 2012)
{{verlink|PE Alpha 0.2.0}}
{{verlink|Xbox Edition 1.3.1}}
{{verlink|Xbox 1.3.1}}
{{verlink|Pi Edition Alpha 0.1.1}}
{{verlink|Pi Alpha 0.1.1}}
{{verlink|Indev (Seecret Friday Update 1)}}
Infdev (Seecret Friday Update 1)
{{verlink|Alpha (Seecret Saturday 10)}}
La documentación anterior se transcluye de Plantilla:Version link/doc. (edit | history)