Template:History

{{ #ifeq: {{ #var:historysearch}}|1|1|{{ #ifeq: {{ #var:historydetailhead|0}} | 1 ||{{ #ifeq: {{ #var:history|0}} | 1 | {{ #ifeq: {{ #var:historydetailhead|0}} |1|{{ #vardefine:historydetailhead|0}}|{{ #vardefine:historyhead|0}} }}{{#vardefine:mode|{{#var:prevmode|}}}} | {{   #switch: {{#var:mode}} | overview = | details = | }}{{   #if: {{#var:nomode}} | {{ #ifexpr: ({{#if: {{{2|}}} | 1 | 0 }}) and ({{ #var:history|1}} < 2) | {{        #switch: {{{ilink|{{{link|ver}}}}}}        | none = {{ #ifeq: {{{2|}}} | unknown || {{{2}}}}}        | ver = {{ #ifeq: {{{2|}}} | unknown ||{{          #ifeq: {{#var:mode}} | realms          | {{{2}}}          | {{Version link|{{              #switch: {{#var:mode}} | release | weekly = {{{2}}} | {{#var:mode}} {{{2}}}              }}|{{              #ifeq: {{#sub: {{{2}}} | 0 | 1 }} | (              | {{#sub: {{{2}}} | 1 | -1 }}              | {{{2}}}              }}            }}          }} }}          | {{            #if: {{{ilink|}}} | {{{2|link}}} | [{{{link}}} {{{2|link}}}]            }}        }} }}{{      #if: {{{snap|}}}      | {{        #ifexpr: {{ #var:history|1}} < 2 |{{	      #vardefine: rowspan{{#var: historyindex}} | {{#expr: {{#var: rowspan{{#var: historyindex}} | 0 }} + {{#var: rows}} }} }} }}{{ #switch: {{{islink|{{{slink|ver}}}}}} | none = {{ #if: {{#switch: {{{snap|}}} | unknown | ? | release = 1 }} || {{{snap}}} }} | ver = {{ #if: {{#switch: {{{snap|}}} | unknown | ? | release = 1 }} || {{Version link|{{ #switch: {{#var:mode}} | release | weekly = {{{snap}}} | {{#var:mode}} {{{snap}}} }}|{{         #ifeq: {{#sub: {{{snap}}} | 0 | 1 }} | (          | {{#sub: {{{snap}}} | 1 | -1 }}          | {{{snap}}}          }} }} }}        | {{          #if: {{{islink|}}} | {{{snap|slink}}} | [{{{slink}}} {{{snap|slink}}} ] }}        }} }}    | {{      #switch: {{#var:mode}}       | release = Official release       | weekly  = Upcoming       | pocketa = Pocket Edition Alpha       | pocketb = Pocket Edition Beta       | pocketu = Upcoming Pocket Edition       | console = Console Edition       | pi      = Pi Edition       | realms  = Realms | unknown = Unknown | {{ }}     }} }}{{  #switch: {{ #var:mode}} | weekly = | pocketu = }}}} }} {{documentation}}
 * 1) ifeq: {{ #var:historyhead}} | 1 |{{
 * if: {{{3|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{3|}}}{{ #vardefine:historysearch|0}}|1|{{{3}}}| {{{3}}} }} }}{{
 * if: {{{4|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{4|}}}{{ #vardefine:historysearch|0}}|1|{{{4}}}| {{{4}}} }} }}{{
 * if: {{{5|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{5|}}}{{ #vardefine:historysearch|0}}|1|{{{5}}}| {{{5}}} }} }}{{
 * if: {{{6|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{6|}}}{{ #vardefine:historysearch|0}}|1|{{{6}}}| {{{6}}} }} }}{{
 * if: {{{7|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{7|}}}{{ #vardefine:historysearch|0}}|1|{{{7}}}| {{{7}}} }} }}{{
 * if: {{{8|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{8|}}}{{ #vardefine:historysearch|0}}|1|{{{8}}}| {{{8}}} }} }}{{
 * if: {{{9|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{9|}}}{{ #vardefine:historysearch|0}}|1|{{{9}}}| {{{9}}} }} }}{{
 * if: {{{10|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{10|}}}{{ #vardefine:historysearch|0}}|1|{{{10}}}| {{{10}}} }} }}{{
 * if: {{{11|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{11|}}}{{ #vardefine:historysearch|0}}|1|{{{11}}}| {{{11}}} }} }}{{
 * if: {{{12|}}} | {{ #ifeq: {{ #vardefine:historysearch|1}}{{{12|}}}{{ #vardefine:historysearch|0}}|1|{{{12}}}| {{{12}}} }} }}{{ #vardefine:history|{{ #expr: {{ #var:history}} - 1 }} }}{{
 * if: {{NAMESPACE}}