Template:Infobox: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<table class="infobox section-border">
<table class="infobox section-border">
   <tr style="{{#if:{{{color|}}}|background-color: {{{color}}};}}" class="textfloat">
   <tr style="{{#if:{{{color|}}}|background-color: {{{color}}};}}" class="textfloat">
     <th {{#if:{{{maxcol|}}}|colspan="{{{maxcol}}}"}}>{{{name|}}}</th>
     <th colspan="{{#expr:{{{maxcol|1}}} + 1}}">{{{name|}}}</th>
   </tr>{{#if:{{{image|}}}|
   </tr>{{#if:{{{image|}}}|
   <tr>
   <tr>
Line 9: Line 9:
     | value
     | value
     | <nowiki/>
     | <nowiki/>
   <tr class="list-table">
   {{#if:{{#var:value|}}
    <th>{{{line{{#var:key|}}|}}}</th>{{#if:{{{col{{#var:key|}}|}}}
    | <tr class="list-table">
      | <td {{#if:{{{maxcol|}}}|colspan="{{{maxcol}}}"}}>{{#var:value|}}</td>
        <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
        | <td>{{#var:subvalue|}}</td>
          | subvalue
          | <td>{{#var:subvalue|}}</td>
          }}
         }}
         }}
       }}
       </tr>
  </tr>
     }}</table>
     }}</table>

Revision as of 20:35, 21 February 2015

{{#forargs:data | key | value |