User:Niirfa-sa/Template:State

{{#ifexpr:{{#if:|1|0}} or {{#if:|2|0}}|
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:|50%|{{#if:|11%|25%}}|}}; vertical-align:top; " |
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:|50%|{{#if:|11%|25%}}|}}; vertical-align:top; " |


 * class="infoboxcell" colspan="" style="width:{{#if:|25%|{{#if:|33%|50%}}|}}" |

{{#ifexpr:{{#if:|1|0}} or {{#if:|2|0}}| {{{event2|}}}
 * }}
 * -|}}
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:{{date3|}}}|50%|{{#if:|11%|25%}}|}}; vertical-align:top; " |
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:{{date3|}}}|50%|{{#if:|11%|25%}}|}}; vertical-align:top; " |
 * class="infoboxcell" colspan="" style="width:{{#if:|25%|{{#if:{{{event3|}}}|33%|50%}}|}}" |

{{#ifexpr:{{#if:|1|0}} or {{#if:|2|0}}| {{{event3|}}}
 * }}
 * class="infoboxcell" colspan="{{#if:{{{event4|}}}|1|0}}" style="width:{{#if:{{date4|}}}|50%|{{#if:{{{event4|}}}|11%|25%}}|}}; vertical-align:top; " |
 * class="infoboxcell" colspan="{{#if:{{{event4|}}}|1|0}}" style="width:{{#if:{{date4|}}}|50%|{{#if:{{{event4|}}}|11%|25%}}|}}; vertical-align:top; " |
 * class="infoboxcell" colspan="" style="width:{{#if:{{{date4|}}}|25%|{{#if:{{{event4|}}}|33%|50%}}|}}" |

{{#ifexpr:{{#if:|1|0}} or {{#if:|2|0}}|
 * }}
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:{{end date|}}}|50%|{{#if:{{end event|}}}|11%|25%}}|}}; vertical-align:top; " |
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:{{end date|}}}|50%|{{#if:{{end event|}}}|11%|25%}}|}}; vertical-align:top; " |


 * class="infoboxcell" colspan="" style="width:" |

{{#ifexpr:{{#if:|1|0}} or {{#if:|2|0}}| }} }} {{{predecessor|}}} {{!}} class="infoboxcell" colspan="{{#if:{{{predecessor|}}}|1|2}}" style="width:{{#if:{{{successor|}}}|25%|{{#if:{{{predecessor|}}}|33%|50%}}|}}" {{!}} {{{successor|}}} {{ #if:| {{!}} colspan="2" style="font-size:smaller; text-align:right" {{!}} }} {{ #if:| {{!}} colspan="2" style="font-size:smaller; text-align:right" {{!}} ''Source: }}
 * -|}}
 * colspan="2" |
 * valign="top" align="center" style="border:0;"| {{#if: | {| width=92% style="background:transparent; text-align:center; margin:0 auto; border:0;"
 * style="border:0; padding:0; vertical-align:middle; text-align:right;"| {{{successor}}}
 * }
 * }
 * }}
 * align="center" style="border:0; padding-bottom:0"| || align="center" style="border:0; padding-bottom:0;"|
 * valign="top" align="center" style="border:0;"| {{#if:{{{p1|}}} | {| width=100% style="background: transparent; text-align:center; margin:0 auto; border:0;"
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:{{successor|}}}|50%|{{#if:{{predecessor|}}}|11%|25%}}|}}; vertical-align:top; " |
 * valign="top" align="center" style="border:0;"| {{#if:{{{p1|}}} | {| width=100% style="background: transparent; text-align:center; margin:0 auto; border:0;"
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:{{successor|}}}|50%|{{#if:{{predecessor|}}}|11%|25%}}|}}; vertical-align:top; " |
 * class="infoboxcell" colspan="{{#if:|1|0}}" style="width:{{#if:{{successor|}}}|50%|{{#if:{{predecessor|}}}|11%|25%}}|}}; vertical-align:top; " |
 * }}
 * }

An example is shown to the right: