Template:Infobox: Difference between revisions

    m>Bryan Derksen
    (actually, using a different approach to eliminate the proliferation of redundant parameters)
    m>Bryan Derksen
    (increasing row limit to 60, as requested in talk)
    Line 87: Line 87:
      Row 40
      Row 40
    -->{{#if:{{{header40|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header40|}}}</th></tr>| {{#if:{{{label40|}}}|{{#if:{{{data40|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label40|}}}</th><td class="{{{class40|}}}" style="{{{datastyle|}}}">{{{data40|}}}</td></tr>}}|  {{#if:{{{data40|}}}|<tr><td colspan="2" class="{{{class40|}}}" style="text-align:center; {{{datastyle|}}}">{{{data40|}}}</td></tr>}} }} }}<!--
    -->{{#if:{{{header40|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header40|}}}</th></tr>| {{#if:{{{label40|}}}|{{#if:{{{data40|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label40|}}}</th><td class="{{{class40|}}}" style="{{{datastyle|}}}">{{{data40|}}}</td></tr>}}|  {{#if:{{{data40|}}}|<tr><td colspan="2" class="{{{class40|}}}" style="text-align:center; {{{datastyle|}}}">{{{data40|}}}</td></tr>}} }} }}<!--
    Row 41
    -->{{#if:{{{header41|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header41|}}}</th></tr>| {{#if:{{{label41|}}}|{{#if:{{{data41|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label41|}}}</th><td class="{{{class41|}}}" style="{{{datastyle|}}}">{{{data41|}}}</td></tr>}}|  {{#if:{{{data41|}}}|<tr><td colspan="2" class="{{{class41|}}}" style="text-align:center; {{{datastyle|}}}">{{{data41|}}}</td></tr>}} }} }}<!--
    Row 42
    -->{{#if:{{{header42|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header42|}}}</th></tr>| {{#if:{{{label42|}}}|{{#if:{{{data42|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label42|}}}</th><td class="{{{class42|}}}" style="{{{datastyle|}}}">{{{data42|}}}</td></tr>}}|  {{#if:{{{data42|}}}|<tr><td colspan="2" class="{{{class42|}}}" style="text-align:center; {{{datastyle|}}}">{{{data42|}}}</td></tr>}} }} }}<!--
    Row 43
    -->{{#if:{{{header43|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header43|}}}</th></tr>| {{#if:{{{label43|}}}|{{#if:{{{data43|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label43|}}}</th><td class="{{{class43|}}}" style="{{{datastyle|}}}">{{{data43|}}}</td></tr>}}|  {{#if:{{{data43|}}}|<tr><td colspan="2" class="{{{class43|}}}" style="text-align:center; {{{datastyle|}}}">{{{data43|}}}</td></tr>}} }} }}<!--
    Row 44
    -->{{#if:{{{header44|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header44|}}}</th></tr>| {{#if:{{{label44|}}}|{{#if:{{{data44|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label44|}}}</th><td class="{{{class44|}}}" style="{{{datastyle|}}}">{{{data44|}}}</td></tr>}}|  {{#if:{{{data44|}}}|<tr><td colspan="2" class="{{{class44|}}}" style="text-align:center; {{{datastyle|}}}">{{{data44|}}}</td></tr>}} }} }}<!--
    Row 45
    -->{{#if:{{{header45|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header45|}}}</th></tr>| {{#if:{{{label45|}}}|{{#if:{{{data45|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label45|}}}</th><td class="{{{class45|}}}" style="{{{datastyle|}}}">{{{data45|}}}</td></tr>}}|  {{#if:{{{data45|}}}|<tr><td colspan="2" class="{{{class45|}}}" style="text-align:center; {{{datastyle|}}}">{{{data45|}}}</td></tr>}} }} }}<!--
    Row 46
    -->{{#if:{{{header46|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header46|}}}</th></tr>| {{#if:{{{label46|}}}|{{#if:{{{data46|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label46|}}}</th><td class="{{{class46|}}}" style="{{{datastyle|}}}">{{{data46|}}}</td></tr>}}|  {{#if:{{{data46|}}}|<tr><td colspan="2" class="{{{class46|}}}" style="text-align:center; {{{datastyle|}}}">{{{data46|}}}</td></tr>}} }} }}<!--
    Row 47
    -->{{#if:{{{header47|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header47|}}}</th></tr>| {{#if:{{{label47|}}}|{{#if:{{{data47|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label47|}}}</th><td class="{{{class47|}}}" style="{{{datastyle|}}}">{{{data47|}}}</td></tr>}}|  {{#if:{{{data47|}}}|<tr><td colspan="2" class="{{{class47|}}}" style="text-align:center; {{{datastyle|}}}">{{{data47|}}}</td></tr>}} }} }}<!--
    Row 48
    -->{{#if:{{{header48|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header48|}}}</th></tr>| {{#if:{{{label48|}}}|{{#if:{{{data48|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label48|}}}</th><td class="{{{class48|}}}" style="{{{datastyle|}}}">{{{data48|}}}</td></tr>}}|  {{#if:{{{data48|}}}|<tr><td colspan="2" class="{{{class48|}}}" style="text-align:center; {{{datastyle|}}}">{{{data48|}}}</td></tr>}} }} }}<!--
    Row 49
    -->{{#if:{{{header49|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header49|}}}</th></tr>| {{#if:{{{label49|}}}|{{#if:{{{data49|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label49|}}}</th><td class="{{{class49|}}}" style="{{{datastyle|}}}">{{{data49|}}}</td></tr>}}|  {{#if:{{{data49|}}}|<tr><td colspan="2" class="{{{class49|}}}" style="text-align:center; {{{datastyle|}}}">{{{data49|}}}</td></tr>}} }} }}<!--
    Row 50
    -->{{#if:{{{header50|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header50|}}}</th></tr>| {{#if:{{{label50|}}}|{{#if:{{{data50|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label50|}}}</th><td class="{{{class50|}}}" style="{{{datastyle|}}}">{{{data50|}}}</td></tr>}}|  {{#if:{{{data50|}}}|<tr><td colspan="2" class="{{{class50|}}}" style="text-align:center; {{{datastyle|}}}">{{{data50|}}}</td></tr>}} }} }}<!--
    Row 51
    -->{{#if:{{{header51|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header51|}}}</th></tr>| {{#if:{{{label51|}}}|{{#if:{{{data51|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label51|}}}</th><td class="{{{class51|}}}" style="{{{datastyle|}}}">{{{data51|}}}</td></tr>}}|  {{#if:{{{data51|}}}|<tr><td colspan="2" class="{{{class51|}}}" style="text-align:center; {{{datastyle|}}}">{{{data51|}}}</td></tr>}} }} }}<!--
    Row 52
    -->{{#if:{{{header52|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header52|}}}</th></tr>| {{#if:{{{label52|}}}|{{#if:{{{data52|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label52|}}}</th><td class="{{{class52|}}}" style="{{{datastyle|}}}">{{{data52|}}}</td></tr>}}|  {{#if:{{{data52|}}}|<tr><td colspan="2" class="{{{class52|}}}" style="text-align:center; {{{datastyle|}}}">{{{data52|}}}</td></tr>}} }} }}<!--
    Row 53
    -->{{#if:{{{header53|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header53|}}}</th></tr>| {{#if:{{{label53|}}}|{{#if:{{{data53|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label53|}}}</th><td class="{{{class53|}}}" style="{{{datastyle|}}}">{{{data53|}}}</td></tr>}}|  {{#if:{{{data53|}}}|<tr><td colspan="2" class="{{{class53|}}}" style="text-align:center; {{{datastyle|}}}">{{{data53|}}}</td></tr>}} }} }}<!--
    Row 54
    -->{{#if:{{{header54|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header54|}}}</th></tr>| {{#if:{{{label54|}}}|{{#if:{{{data54|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label54|}}}</th><td class="{{{class54|}}}" style="{{{datastyle|}}}">{{{data54|}}}</td></tr>}}|  {{#if:{{{data54|}}}|<tr><td colspan="2" class="{{{class54|}}}" style="text-align:center; {{{datastyle|}}}">{{{data54|}}}</td></tr>}} }} }}<!--
    Row 55
    -->{{#if:{{{header55|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header55|}}}</th></tr>| {{#if:{{{label55|}}}|{{#if:{{{data55|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label55|}}}</th><td class="{{{class55|}}}" style="{{{datastyle|}}}">{{{data55|}}}</td></tr>}}|  {{#if:{{{data55|}}}|<tr><td colspan="2" class="{{{class55|}}}" style="text-align:center; {{{datastyle|}}}">{{{data55|}}}</td></tr>}} }} }}<!--
    Row 56
    -->{{#if:{{{header56|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header56|}}}</th></tr>| {{#if:{{{label56|}}}|{{#if:{{{data56|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label56|}}}</th><td class="{{{class56|}}}" style="{{{datastyle|}}}">{{{data56|}}}</td></tr>}}|  {{#if:{{{data56|}}}|<tr><td colspan="2" class="{{{class56|}}}" style="text-align:center; {{{datastyle|}}}">{{{data56|}}}</td></tr>}} }} }}<!--
    Row 57
    -->{{#if:{{{header57|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header57|}}}</th></tr>| {{#if:{{{label57|}}}|{{#if:{{{data57|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label57|}}}</th><td class="{{{class57|}}}" style="{{{datastyle|}}}">{{{data57|}}}</td></tr>}}|  {{#if:{{{data57|}}}|<tr><td colspan="2" class="{{{class57|}}}" style="text-align:center; {{{datastyle|}}}">{{{data57|}}}</td></tr>}} }} }}<!--
    Row 58
    -->{{#if:{{{header58|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header58|}}}</th></tr>| {{#if:{{{label58|}}}|{{#if:{{{data58|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label58|}}}</th><td class="{{{class58|}}}" style="{{{datastyle|}}}">{{{data58|}}}</td></tr>}}|  {{#if:{{{data58|}}}|<tr><td colspan="2" class="{{{class58|}}}" style="text-align:center; {{{datastyle|}}}">{{{data58|}}}</td></tr>}} }} }}<!--
    Row 59
    -->{{#if:{{{header59|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header59|}}}</th></tr>| {{#if:{{{label59|}}}|{{#if:{{{data59|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label59|}}}</th><td class="{{{class59|}}}" style="{{{datastyle|}}}">{{{data59|}}}</td></tr>}}|  {{#if:{{{data59|}}}|<tr><td colspan="2" class="{{{class59|}}}" style="text-align:center; {{{datastyle|}}}">{{{data59|}}}</td></tr>}} }} }}<!--
    Row 60
    -->{{#if:{{{header60|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header60|}}}</th></tr>| {{#if:{{{label60|}}}|{{#if:{{{data60|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label60|}}}</th><td class="{{{class60|}}}" style="{{{datastyle|}}}">{{{data60|}}}</td></tr>}}|  {{#if:{{{data60|}}}|<tr><td colspan="2" class="{{{class60|}}}" style="text-align:center; {{{datastyle|}}}">{{{data60|}}}</td></tr>}} }} }}<!--
      Below
      Below
    -->{{#if:{{{below|}}}|<tr><td colspan="2" style="background:#ddf; text-align:center; font-size:small; font-style:italic; {{{belowstyle|}}}">{{{below|}}}</td></tr>}}<!--
    -->{{#if:{{{below|}}}|<tr><td colspan="2" style="background:#ddf; text-align:center; font-size:small; font-style:italic; {{{belowstyle|}}}">{{{below|}}}</td></tr>}}<!--