ElEditors, Interface administrators, Administrators
85,546
edits
No edit summary |
mNo edit summary |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{color|}}} | <includeonly>{{#if:{{{colset|}}} | ||
| {{#vardefine:colset|{{{colset|}}}}} | |||
}}<table | | {{#vardefine:colset|1}} | ||
<tr style="{{#var:color|}}" class="textfloat"> | }}{{#switch:{{{color|}}} | ||
<th class="title" colspan="{{#expr:{{ | | ={{#vardefine:color| background-color: lightblue;}} | ||
| Rainbow={{#vardefine:rainbow|rainbow}} | |||
| #default ={{#vardefine:color| background-color: {{{color}}};}} | |||
}}<table style="{{{style|}}}" class="infobox {{{class|}}}"> | |||
<tr style="{{#var:color|}}" class="textfloat {{#var:rainbow|}}"> | |||
<th class="title" colspan="{{#expr:{{#var:colset|1}}+1}}">{{{title|}}}</th> | |||
</tr> | </tr> | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
|<tr> | |<tr> | ||
<td class="image" colspan="{{#expr:{{ | <td class="image" colspan="{{#expr:{{#var:colset|1}}+1}}">{{{image}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 15: | Line 20: | ||
| | | | ||
{{#if:{{{set{{#var:key|}}|}}} | {{#if:{{{set{{#var:key|}}|}}} | ||
| {{#vardefine:div|{{#expr:{{ | | {{#vardefine:div|{{#expr:{{#var:colset|1}}/{{{set{{#var:key|1}}|}}}}}}} | ||
<tr class="entry"> | <tr class="entry"> | ||
<th>{{#var:val|}}</th> | <th>{{#var:val|}}</th> | ||
Line 28: | Line 33: | ||
|<tr class="entry"> | |<tr class="entry"> | ||
<th>{{#var:val|}}</th> | <th>{{#var:val|}}</th> | ||
<td colspan="{{ | <td colspan="{{#var:colset|1}}">{{{data{{#var:key|}}|}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 47: | Line 52: | ||
:* <code>data???</code>: Data of entry. '''Required''' for entry. | :* <code>data???</code>: Data of entry. '''Required''' for entry. | ||
:* <code>set???</code>: (Optional) Number of entry columns (label does not count). | :* <code>set???</code>: (Optional) Number of entry columns (label does not count). | ||
:* <code>colset</code>: (Optional) ''' | :* <code>colset</code>: (Optional) '''Required''' only if having <code>set???</code>, the [[Template:PRODUCT|product]] of <code>set</code> numbers in the whole infobox. | ||
:* <code>style</code>: (Optional) Style of in infobox, following CSS syntax. | :* <code>style</code>: (Optional) Style of in infobox, following CSS syntax. | ||
:* <code>class</code>: (Optional) Class of infobox, following HTML <code>class</code> attribute syntax. | :* <code>class</code>: (Optional) Class of infobox, following HTML <code>class</code> attribute syntax. |