Template:Infobox: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align: center;">[[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|200px}}]]</td></tr>}} | {{#if:{{{image|}}}|<tr><td colspan="2" style="text-align: center;">[[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|200px}}]]</td></tr>}} | ||
{{#if:{{{caption|}}}|<td><td colspan="2" style="text-align: center; font-size: 85%;">{{{caption}}}</td></tr>}} | {{#if:{{{caption|}}}|<td><td colspan="2" style="text-align: center; font-size: 85%;">{{{caption}}}</td></tr>}} | ||
<!-- Loop through label1/data1, label2/data2, etc. up to 30 --> | <!-- Loop through label1/data1, label2/data2, etc. up to 30 --> | ||
{{#if:{{{label1|}}}|</td><th style="text-align: left; padding: 0.2em;">{{{label1}}}</th><td style="padding: 0.2em;">{{{data1|}}}</td></td>}} | {{#if:{{{label1|}}}|</td><th style="text-align: left; padding: 0.2em;">{{{label1}}}</th><td style="padding: 0.2em;">{{{data1|}}}</td></td>}} | ||
Revision as of 17:49, 21 April 2026
Usage
{{Infobox
| title = Example
| image = Example.jpg
| caption = Example image
| label1 = Type
| data1 = Company
| label2 = Founded
| data2 = 1883
| label3 = Founder
| data3 = John Doe
}}