Diferencia entre revisiones de «Plantilla:Version link»
m 1 revisión |
Sin resumen de edició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> | ||