Template:Infobox: Difference between revisions

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

Revision as of 02:40, 21 February 2015