Only add logo if logo is present
m Fix other fields
Line 2: Line 2:
<table class="infobox">
<table class="infobox">
     <caption>{{{name}}}</caption>
     <caption>{{{name}}}</caption>
     {{#if:{{{logo|}}}
     {{#if:{{{logo|}}}|<tr>
    |<tr>
         <td colspan="2" class="infobox-image">
         <td colspan="2" class="infobox-image">
[[File:{{{logo}}}|center|frameless|320x150px|{{{logoalt}}}]]
[[File:{{{logo}}}|center|frameless|320x150px|{{{logoalt}}}]]
             <div class="infobox-caption">{{{logocaption}}}</div>
             {{#if:{{{logocaption|}}}|<div class="infobox-caption">{{{logocaption}}}</div>}}
         </td>
         </td>
     </tr>}}
     </tr>}}
     <tr>
     {{#if:{{{formerly|}}}|<tr>
         <th class="infobox-label">Formerly</th>
         <th class="infobox-label">Formerly</th>
         <td class="infobox-data">{{{formerly}}}</td>
         <td class="infobox-data">{{{formerly}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{type|}}}|<tr>
         <th class="infobox-label">Company type</th>
         <th class="infobox-label">Company type</th>
         <td class="infobox-data">{{{type}}}</td>
         <td class="infobox-data">{{{type}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{founder|}}}|<tr>
         <th class="infobox-label">Founder</th>
         <th class="infobox-label">Founder</th>
         <td class="infobox-data">{{{founder}}}</td>
         <td class="infobox-data">{{{founder}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{founded|}}}|<tr>
         <th class="infobox-label">Founded</th>
         <th class="infobox-label">Founded</th>
         <td class="infobox-data">{{{founded}}}</td>
         <td class="infobox-data">{{{founded}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{area|}}}|<tr>
         <th class="infobox-label">Area served</th>
         <th class="infobox-label">Area served</th>
         <td class="infobox-data">{{{area}}}</td>
         <td class="infobox-data">{{{area}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{headquarters|}}}|<tr>
         <th class="infobox-label">Headquarters</th>
         <th class="infobox-label">Headquarters</th>
         <td class="infobox-data">{{{headquarters}}}</td>
         <td class="infobox-data">{{{headquarters}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{keypeople|}}}|<tr>
         <th class="infobox-label">Key people</th>
         <th class="infobox-label">Key people</th>
         <td class="infobox-data">{{{keypeople}}}</td>
         <td class="infobox-data">{{{keypeople}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{products|}}}|<tr>
         <th class="infobox-label">Products</th>
         <th class="infobox-label">Products</th>
         <td class="infobox-data">{{{products}}}</td>
         <td class="infobox-data">{{{products}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{parent|}}}|<tr>
         <th class="infobox-label">Parent</th>
         <th class="infobox-label">Parent</th>
         <td class="infobox-data">{{{parent}}}</td>
         <td class="infobox-data">{{{parent}}}</td>
     </tr>
     </tr>}}
     <tr>
     {{#if:{{{website|}}}|<tr>
         <th class="infobox-label">Website</th>
         <th class="infobox-label">Website</th>
         <td class="infobox-data">{{{website}}}</td>
         <td class="infobox-data">{{{website}}}</td>
     </tr>
     </tr>}}
</table>
</table>

Revision as of 00:56, 25 August 2024

{{{name}}}