Template:Version link

From The Minery
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>[[{{
+
<includeonly>[[Version History#{{{1}}}|{{{1}}}]]</includeonly><noinclude>
  #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 -->
+
    | {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }}
+
    | A{{ #explode: {{{1}}} | | -1 }}
+
  }}
+
  | {{#if: {{#pos: {{lc: {{{1}}} }} | xbox }} <!-- Xbox 360 Edition -->
+
    | Xbox 360 Edition version history#{{
+
      #if: {{ #pos: {{{1}}} | ) }}              <!-- Brackets -->
+
      | {{ #replace: {{ #explode: {{{1}}} | ( | 1 }} | ) }}
+
      | B{{ #explode: {{{1}}} | | -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}}} | 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 # -->
+
            | &#35;{{{1}}}                      <!-- Otherwise, just use the whole string -->
+
          }}
+
        }}
+
      }}
+
    }}
+
  }}
+
}}|{{
+
  #if: {{{2|}}}
+
  | {{{2}}}
+
  | {{{1}}}
+
}}]]</includeonly><noinclude>
+
 
{{/doc}}
 
{{/doc}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 15:05, 27 May 2012

Template:/doc

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox