Template:Company: Difference between revisions

No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9;">
<div class="infobox" style="width: 22em; border: 1px solid #aaa; border-collapse: collapse; margin: 10px; float: right; background: #f9f9f9; font-size: 90%;">
<table style="width: 100%; border: none;">
<table style="width: 100%; border-collapse: collapse;">
<tr>
<tr>
<th colspan="2" style="background: #e9e9e9; text-align: center;">
<th colspan="2" style="background: #e9e9e9; text-align: center; padding: 5px;">
{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}
</th>
</th>
</tr>
</tr>
<!-- Logo -->
{{#if: {{{logo|}}} |
<tr>
<tr>
<td colspan="2" style="text-align: center;">
<td colspan="2" style="text-align: center; padding: 5px;">
{{#if: {{{logo|}}}
[[File:{{{logo}}}|200px|center]]
| [[File:{{{logo}}}|thumb|200px|center]]
{{#if: {{{logo_caption|}}} | <div style="font-style: italic; font-size: 85%;">{{{logo_caption}}}</div> }}
</td>
</tr>
}}
}}
</td>
 
<!-- Simple info rows -->
{{#if: {{{type|}}} | <tr><th>Type</th><td>{{{type}}}</td></tr> }}
{{#if: {{{industry|}}} | <tr><th>Industry</th><td>{{{industry}}}</td></tr> }}
{{#if: {{{founded|}}} | <tr><th>Founded</th><td>{{{founded}}}</td></tr> }}
{{#if: {{{founder|}}} | <tr><th>Founder(s)</th><td>{{{founder}}}</td></tr> }}
{{#if: {{{location|}}} | <tr><th>Location</th><td>{{{location}}}</td></tr> }}
{{#if: {{{hq|}}} | <tr><th>Headquarters</th><td>{{{hq}}}</td></tr> }}
{{#if: {{{area|}}} | <tr><th>Area Served</th><td>{{{area}}}</td></tr> }}
{{#if: {{{services|}}} | <tr><th>Services</th><td>{{{services}}}</td></tr> }}
{{#if: {{{products|}}} | <tr><th>Products</th><td>{{{products}}}</td></tr> }}
{{#if: {{{phone|}}} | <tr><th>Telephone</th><td>{{{phone}}}</td></tr> }}
{{#if: {{{employees|}}} | <tr><th>Employees</th><td>{{{employees}}}</td></tr> }}
 
<!-- Social media (shows only username but links to full URL) -->
{{#if: {{{facebook|}}} |
<tr>
<th>Facebook</th>
<td>[{{{facebook}}} {{#replace:{{{facebook}}}|https://www.facebook.com/|}}]</td>
</tr>
}}
{{#if: {{{instagram|}}} |
<tr>
<th>Instagram</th>
<td>[{{{instagram}}} {{#replace:{{{instagram}}}|https://www.instagram.com/|}}]</td>
</tr>
}}
{{#if: {{{twitter|}}} |
<tr>
<th>Twitter (X)</th>
<td>[{{{twitter}}} {{#replace:{{{twitter}}}|https://twitter.com/|}}]</td>
</tr>
}}
{{#if: {{{linkedin|}}} |
<tr>
<th>LinkedIn</th>
<td>[{{{linkedin}}} {{#replace:{{{linkedin}}}|https://www.linkedin.com/company/|}}]</td>
</tr>
</tr>
{{#if: {{{logo_caption|}}}
}}
| <tr>
 
<td colspan="2" style="text-align: center; font-style: italic;">{{{logo_caption}}}</td>
<!-- Website -->
{{#if: {{{website|}}} |
<tr>
<th>Website</th>
<td>[{{{website}}} {{{website}}}]</td>
</tr>
</tr>
}}
}}
{{#if: {{{type|}}}
 
| <tr>
</table>
<th style="text-align: left;">Type</th>
          <td>{{{type}}}</td>
        </tr>
    }}
    {{#if: {{{industry|}}}
      | <tr>
          <th style="text-align: left;">Industry</th>
          <td>{{{industry}}}</td>
        </tr>
    }}
    {{#if: {{{founded|}}}
      | <tr>
          <th style="text-align: left;">Founded</th>
          <td>{{{founded}}}</td>
        </tr>
    }}
    {{#if: {{{founder|}}}
      | <tr>
          <th style="text-align: left;">Founder</th>
          <td>{{{founder}}}</td>
        </tr>
    }}
    {{#if: {{{location|}}}
      | <tr>
          <th style="text-align: left;">Location</th>
          <td>{{{location}}}</td>
        </tr>
    }}
    {{#if: {{{hq|}}}
      | <tr>
          <th style="text-align: left;">Headquarters</th>
          <td>{{{hq}}}</td>
        </tr>
    }}
    {{#if: {{{area|}}}
      | <tr>
          <th style="text-align: left;">Area Served</th>
          <td>{{{area}}}</td>
        </tr>
    }}
    {{#if: {{{services|}}}
      | <tr>
          <th style="text-align: left;">Services</th>
          <td>{{{services}}}</td>
        </tr>
    }}
    {{#if: {{{products|}}}
      | <tr>
          <th style="text-align: left;">Products</th>
          <td>{{{products}}}</td>
        </tr>
    }}
    {{#if: {{{phone|}}}
      | <tr>
          <th style="text-align: left;">Telephone</th>
          <td>{{{phone}}}</td>
        </tr>
    }}
    {{#if: {{{employees|}}}
      | <tr>
          <th style="text-align: left;">Number of Employees</th>
          <td>{{{employees}}}</td>
        </tr>
    }}
    {{#if: {{{facebook|}}}
      | <tr>
          <th style="text-align: left;">Facebook</th>
          <td>{{{facebook}}}</td>
        </tr>
    }}
    {{#if: {{{instagram|}}}
      | <tr>
          <th style="text-align: left;">Instagram</th>
          <td>{{{instagram}}}</td>
        </tr>
    }}
    {{#if: {{{twitter|}}}
      | <tr>
          <th style="text-align: left;">Twitter (X)</th>
          <td>{{{twitter}}}</td>
        </tr>
    }}
    {{#if: {{{linkedin|}}}
      | <tr>
          <th style="text-align: left;">LinkedIn</th>
          <td>{{{linkedin}}}</td>
        </tr>
    }}
    {{#if: {{{website|}}}
      | <tr>
          <th style="text-align: left;">Website</th>
          <td>[{{{website}}} {{{website}}}]</td>
        </tr>
    }}
  </table>
</div>
</div>


Line 139: Line 89:
| website    = https://about.meta.com
| website    = https://about.meta.com
}}
}}
</noinclude>
</noinclude>