Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox corporation: Difference between revisions

Template page
m Missed a number of escapes. Add | to #if: parameters
m Rewrite, wiki mark-up to html for the table. All the {{!}} escapes where cluttering up the code, making it hard to read and error prone.. Move inline css to #css:.
Line 1: Line 1:
{| cellspacing="0" cellpadding="0" style="clear:left;width:300px;color:white;font-size:11px;float:right;margin-left:1em; margin-bottom:1em;"
<!-- #css: at the end -->
|+ '''{{{corpname}}}'''
<table cellspacing="0" cellpadding="0" class="InfoboxCorp">
|-
  <caption> {{{corpname|corpname is missing}}} </caption>
| colspan="2" style="background:#202020; text-align:left; border-bottom:1px #000000 solid" | [[Image:{{{corplogo}}}|center|280px|{{{caption}}}]]
<tr>
|-
  <td colspan="2" class="logo"> {{#if: {{{corplogo|}}}|[[Image:{{{corplogo}}}{{!}}center{{!}}280px{{!}}{{{caption}}}]]}} </td>
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Ticker
</tr>
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | '''{{{ticker}}}'''
<tr>
{{#if: {{{alliance|}}} |
  <td> Ticker </td><td style="font-weight: bold;"> {{{ticker|}}} </td>
{{!}}-
</tr>
{{!}} style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" {{!}} Alliance
{{#if: {{{alliance|}}} |  
{{!}} style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" {{!}} {{{alliance}}}
<tr>
|}}
  <td> Alliance </td><td> {{{alliance}}} </td>
|-
</tr>
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | CEO
}}
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{ceo}}}
<tr>
|-
  <td> CEO </td><td> {{{ceo|}}} </td>
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Director(s)
</tr>
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{director}}}
<tr>
|-
  <td> Director(s) </td><td> {{{director|}}} </td>
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Founded on
</tr>
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{founded}}}
<tr>
|-
  <td> Founded on </td><td> {{{founded|}}} </td>
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Status
</tr>
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{status}}}
<tr>
|-
  <td> Status </td><td> {{{status|}}} </td>
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Headquarters
</tr>
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{headquarters}}}
<tr>
  <td> Headquarters </td><td> {{{headquarters|}}} </td>
</tr>
{{#if: {{{publicchannel|}}} |
{{#if: {{{publicchannel|}}} |
{{!}}-
<tr>
{{!}} style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" {{!}} Public Channel
  <td> Public Channel </td><td> {{{publicchannel}}} </td>
{{!}} style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" {{!}} {{{publicchannel}}}  
</tr>
|}}
}}
{{#if: {{{website|}}} |
{{#if: {{{website|}}} |
{{!}}-
<tr>
{{!}} style="vertical-align: top; background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" {{!}} Website
  <td> Website </td><td> [{{{website}}} {{{webnicename}}}] </td>
{{!}} style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" {{!}} [{{{website}}} {{{webnicename}}}]
</tr>
|}}
}}
{{#if: {{{prevalliances|}}}{{{prevceos|}}}|
{{#if: {{{prevalliances|}}}{{{prevceos|}}} |
{{!}}-
<tr>
{{!}} colspan=2 style="background:#202020;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; horizontal-align: center; font-weight:bold;" align=center{{!}} History
  <td colspan=2 class="hdr"> History </td>
{{!}}-
<tr>
{{!}} style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" {{!}} Alliances
  <td> Alliances </td><td> {{#if: {{{prevalliances|}}}|{{{prevalliances|}}}|-}} </td>
{{!}} style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" {{!}} {{{prevalliances}}}
</tr>
{{!}}-
<tr>
{{!}} style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" {{!}} Former CEOs
  <td> Former CEOs </td><td> {{#if: {{{prevceos|}}}|{{{prevceos|}}}|-}} </td>
{{!}} style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" {{!}} {{{prevceos}}}
</tr>
|}}
}}
|}<noinclude>
</table>
{{documentation}}
{{#css:
</noinclude>
table.InfoboxCorp  {
  float: right;
  clear: left;
  margin-bottom: 1em;
  margin-left: 1em;
  width: 300px;
  color: white;
  font-size: 11px;
  }
 
.InfoboxCorp caption {
  font-weight: bold;
}
 
.InfoboxCorp td {
  border-bottom: 1px solid black;
  padding: 0.5em;
  }
 
.InfoboxCorp td:first-child {
  width: 8em;
  background: black;
  vertical-align: top;
  font-weight: bold;
  }
 
.InfoboxCorp td.logo,
.InfoboxCorp td.hdr {
  background: #202020;
  }
 
.InfoboxCorp td.logo {
  padding: initial;
  }
 
.InfoboxCorp td.hdr {
  text-align: center;
  }
 
}}
<noinclude>{{documentation}}</noinclude>