Template:History

{{ #ifeq: {{ #var:historysearch}}|1|1|{{ #ifeq: {{ #var:historyhead}} |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: ({{ #var:rowspan|0}} > 0) and ({{ #var:history|1}} < 2) |{{ #vardefine:rowspan|{{ #expr: {{ #var:rowspan}} - {{ #var:rows}} }} }}|{{#switch: {{{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}}}                                        }}                                      }}                                    }} }}                                    | {{ #ifeq: {{{ilink|0}}}|1|{{{2|link}}}|[{{{link}}} {{{2|link}}}]}} }} }}{{ #if: {{{snap|}}}|{{#switch: {{{slink|ver}}}                                    | none = {{ #ifeq: {{{snap|}}} | unknown || {{{snap}}}}}                                    | ver = {{ #ifeq: {{{snap|}}} | unknown ||{{Version link|{{#switch: {{#var:mode}} | release | weekly = {{{snap}}} | {{#var:mode}} {{{snap}}} }}|{{                                      #ifeq: {{#sub: {{{snap}}} | 0 | 1 }} | ( | {{#sub: {{{snap}}} | 1 | -1 }} | {{{snap}}} }}                                   }} }}                                    | {{ #ifeq: {{{islink|0}}}|1|{{{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 = }}}} }} {{/doc}}
 * 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}}

it:Template:History nl:Template:History