Template:Infobox: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{{!}} class="infobox section-border"
<table class="infobox section-border">
{{!}}- style="{{#if:{{{color|}}}|background-color: {{{color}}};}}" class="textfloat"
  <tr style="{{#if:{{{color|}}}|background-color: {{{color}}};}}" class="textfloat">
! {{#if:{{{maxcol|}}}|colspan="{{{maxcol}}}" {{!}}}} {{{name|}}}{{#if:{{{image|}}}|<nowiki/>
    <th {{#if:{{{maxcol|}}}|colspan="{{{maxcol}}}"}}>{{{name|}}}</th>
{{!}}-
  </tr>{{#if:{{{image|}}}|
{{!}} <center>{{{image}}}</center>
  <tr>
}}{{#forargs:data
    <td><center>{{{image}}}</center></td>
| key
  </tr>}}{{#forargs:data
| value
    | key
|<nowiki/>
    | value
{{!}}- class="list-table"
    | <nowiki/>
! {{{line{{#var:key|}}|}}}{{#if:{{{col{{#var:key|}}|}}}
  <tr class="list-table">
  | {{!}}{{!}}{{#if:{{{maxcol|}}}| colspan="{{{maxcol}}}" {{!}}}} {{#var:value|}}
    <th>{{{line{{#var:key|}}|}}}</th>{{#if:{{{col{{#var:key|}}|}}}
  | {{#forargs:subdata{{#var:key|}}/
      | <td {{#if:{{{maxcol|}}}|colspan="{{{maxcol}}}"}}>{{#var:value|}}</td>
    | subkey
      | {{#forargs:subdata{{#var:key|}}/
    | subvalue
        | subkey
    | {{!}}{{!}} {{#var:subvalue|}}
        | subvalue
    }}
        | <td>{{#var:subvalue|}}</td>
   }}
        }}
}}
   </tr>
{{!}}}
  }}</table>