Template:Block state table

{{
 * 1) ifeq: {{#var: blockstatetable | 0 }} | 1
 * {{#vardefine: blockstatetable | 1 }} {{{4|}}}  {{
 * {{#vardefine: blockstatetable | 1 }} {{{4|}}}  {{

#if: {{{5|}}} | {{{{#var: blockstatesprite}}Sprite|{{{5}}}}} }}   {{{7|}}}  }}{{
 * if: {{{6|}}}| {{

#if: {{{8|}}} | {{{{#var: blockstatesprite}}Sprite|{{{8}}}}} }}   {{{10|}}}  }}{{
 * if: {{{9|}}}| {{

#if: {{{11|}}} | {{{{#var: blockstatesprite}}Sprite|{{{11}}}}} }}   {{{13|}}}  }}{{
 * if: {{{12|}}}| {{

#if: {{{14|}}} | {{{{#var: blockstatesprite}}Sprite|{{{14}}}}} }}   {{{16|}}}  }}{{
 * if: {{{15|}}}| {{

#if: {{{17|}}} | {{{{#var: blockstatesprite}}Sprite|{{{17}}}}} }}   {{{19|}}}  }}{{
 * if: {{{18|}}}| {{

#if: {{{20|}}} | {{{{#var: blockstatesprite}}Sprite|{{{20}}}}} }}   {{{22|}}}  }}{{
 * if: {{{21|}}}| {{

#if: {{{23|}}} | {{{{#var: blockstatesprite}}Sprite|{{{23}}}}} }}   {{{25|}}}  }}{{
 * if: {{{24|}}}| {{

#if: {{{26|}}} | {{{{#var: blockstatesprite}}Sprite|{{{26}}}}} }}   {{{28|}}}  }}{{
 * if: {{{27|}}}| {{

#if: {{{29|}}} | {{{{#var: blockstatesprite}}Sprite|{{{29}}}}} }}   {{{31|}}}  }}{{#if: {{{foot|}}} | {{ #vardefine: blockstatesprite|block}}{{ #vardefine: blockstatetable|}} }} {{documentation}}
 * if: {{{30|}}}| {{