Template:Infobox: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
<table class="infobox"> | <table class="infobox"> | ||
<tr style="{{#var:color|}}" class="textfloat"> | <tr style="{{#var:color|}}" class="textfloat"> | ||
<th colspan="{{#expr:{{{colset|1}}}+1}}">{{{title|}}}</th> | <th class="title" colspan="{{#expr:{{{colset|1}}}+1}}">{{{title|}}}</th> | ||
</tr> | </tr> | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
|<tr> | |<tr> | ||
<td | <td class="image" colspan="{{#expr:{{{colset|1}}}+1}}"><center>{{{image}}}</center></td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 17: | Line 17: | ||
{{#if:{{{set{{#var:key|}}|}}} | {{#if:{{{set{{#var:key|}}|}}} | ||
| {{#vardefine:div|{{#expr:{{{colset|1}}}/{{{set{{#var:key|1}}|}}}}}}} | | {{#vardefine:div|{{#expr:{{{colset|1}}}/{{{set{{#var:key|1}}|}}}}}}} | ||
<tr> | <tr class="entry"> | ||
<th>{{#var:val|}}</th> | <th>{{#var:val|}}</th> | ||
{{#forargs:data{{#var:key|}}/ | {{#forargs:data{{#var:key|}}/ | ||
Line 27: | Line 27: | ||
| | | | ||
{{#if:{{{data{{#var:key|}}|}}} | {{#if:{{{data{{#var:key|}}|}}} | ||
|<tr> | |<tr class="entry"> | ||
<th>{{#var:val|}}</th> | <th>{{#var:val|}}</th> | ||
<td colspan="{{{colset|1}}}">{{{data{{#var:key|}}|}}}</td> | <td colspan="{{{colset|1}}}">{{{data{{#var:key|}}|}}}</td> |