ElEditors, Interface administrators, Administrators
85,550
edits
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#if:{{{color|}}}|{{#vardefine:color| background-color: {{{color}}};}}}}<table class="infobox section-border"> | {{#if:{{{color|}}} | ||
|{{#vardefine:color| background-color: {{{color}}};}} | |||
}} | |||
<table class="infobox section-border"> | |||
<tr style="{{#var:color|}}" class="textfloat"> | |||
<th colspan="{{#expr:{{{colset|1}}}+1}}">{{{title|}}}</th> | |||
</tr> | |||
{{#if:{{{image|}}} | |||
|<tr> | |||
<td colspan="{{#expr:{{{colset|1}}}+1}}"><center>{{{image}}}</center></td> | |||
</tr> | |||
}} | |||
{{#forargs:label | |||
| key | |||
| val | |||
| | |||
{{#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> |