Anonymous

Template:Infobox: Difference between revisions

From Elwiki
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#if:{{{color|}}}|{{#vardefine:color| background-color: {{{color}}};}}}}<table class="infobox section-border">
{{#if:{{{color|}}}
  <tr style="{{#var:color}}" class="textfloat">
|{{#vardefine:color| background-color: {{{color}}};}}
    <th colspan="{{#expr:{{{colset|1}}}+1}}">{{{title|}}}</th>
}}
  </tr>{{#if:{{{image|}}}|<tr>
<table class="infobox section-border">
    <td  colspan="{{#expr:{{{colset|1}}}+1}}"><center>{{{image}}}</center></td>
<tr style="{{#var:color|}}" class="textfloat">
  </tr>}}{{#forargs:label
<th colspan="{{#expr:{{{colset|1}}}+1}}">{{{title|}}}</th>
  | key
  </tr>
  | val
  {{#if:{{{image|}}}
  | {{#if:{{{set{{#var:key|}}|}}}
  |<tr>
    | {{#vardefine:div|{{#expr:{{{colset|1}}}/{{{set{{#var:key|}}|}}}}}}}<tr><th>{{#var:val|}}</th>{{#forargs:data{{#var:key|}}/
    <td  colspan="{{#expr:{{{colset|1}}}+1}}"><center>{{{image}}}</center></td>
      | subkey
  </tr>
      | subval
  }}
      | <td colspan="{{#var:div|}}">{{#var:subval|}}</td>
  {{#forargs:label
      }}</tr>
| key
    | {{#if:{{{data{{#var:key|}}|}}}
| val
      | <tr><th>{{#var:val|}}</th><td colspan="{{{colset|1}}}">{{{data{{#var:key|}}|}}}</td></tr>
|
      }}
{{#if:{{{set{{#var:key|}}|}}}
    }}
| {{#vardefine:div|{{#expr:{{{colset|1}}}/{{{set{{#var:key|}}|}}}}}}}
}}</table>
<tr><th>{{#var:val|}}</th>
{{#forargs:data{{#var:key|}}/
| subkey
| subval
| <td colspan="{{#var:div|}}">{{#var:subval|}}</td>
}}
</tr>
    |
    {{#if:{{{data{{#var:key|}}|}}}
    |<tr>
    <th>{{#var:val|}}</th>
<td colspan="{{{colset|1}}}">{{{data{{#var:key|}}|}}}</td>
</tr>
}}
}}
}}
</table>