Difference between revisions of "Template:Infobox corporation"

From EVE University Wiki
Jump to: navigation, search
m (Add "No-image" as default image.)
m (Rewrite to use meta template {{Infobox}} as by project "Cleanup Infobox Templates")
 
Line 1: Line 1:
<!-- #css: at the end -->
+
{{Infobox
<table cellspacing="0" cellpadding="0" class="InfoboxCorp">
+
| name    = <!-- left empty, to NOT have edit links at the bottom of the box.-->
<caption> {{{corpname|corpname is missing}}} </caption>
 
<tr>
 
  <td colspan="2" class="logo"> {{#if: {{{corplogo|}}}|[[Image:{{{corplogo}}}{{!}}center{{!}}280px{{!}}{{{caption}}}]]|[[Image:No-image.png{{!}}center{{!}}280px]]}} </td>
 
</tr>
 
<tr>
 
  <td> Ticker </td><td style="font-weight: bold;"> {{{ticker|}}} </td>
 
</tr>
 
{{#if: {{{alliance|}}} |
 
<tr>
 
  <td> Alliance </td><td> {{{alliance}}} </td>
 
</tr>
 
}}
 
<tr>
 
  <td> CEO </td><td> {{{ceo|}}} </td>
 
</tr>
 
<tr>
 
  <td> Director(s) </td><td> {{{director|}}} </td>
 
</tr>
 
<tr>
 
  <td> Founded on </td><td> {{{founded|}}} </td>
 
</tr>
 
<tr>
 
  <td> Status </td><td> {{{status|}}} </td>
 
</tr>
 
<tr>
 
  <td> Headquarters </td><td> {{{headquarters|}}} </td>
 
</tr>
 
{{#if: {{{publicchannel|}}} |
 
<tr>
 
  <td> Public Channel </td><td> {{{publicchannel}}} </td>
 
</tr>
 
}}
 
{{#if: {{{website|}}} |
 
<tr>
 
  <td> Website </td><td> [{{{website}}} {{{webnicename}}}] </td>
 
</tr>
 
}}
 
{{#if: {{{prevalliances|}}}{{{prevceos|}}} |
 
<tr>
 
  <td colspan=2 class="hdr"> History </td>
 
<tr>
 
  <td> Alliances </td><td> {{#if: {{{prevalliances|}}}|{{{prevalliances|}}}|-}} </td>
 
</tr>
 
<tr>
 
  <td> Former CEOs </td><td> {{#if: {{{prevceos|}}}|{{{prevceos|}}}|-}} </td>
 
</tr>
 
}}
 
</table>
 
{{#css:
 
table.InfoboxCorp  {
 
  float: right;
 
  clear: left;
 
  margin-bottom: 1em;
 
  margin-left: 1em;
 
  width: 300px;
 
  color: white;
 
  font-size: 11px;
 
  }
 
  
.InfoboxCorp caption {
+
| title    =
  font-weight: bold;
+
| above    = {{#if: {{{corpname|}}}
}
+
              | {{{corpname}}}
 +
              | {{Co|gray|Corporation name ?}}
 +
              }}
  
  .InfoboxCorp td {
+
|  image = {{#if: {{{corplogo|}}}
  border-bottom: 1px solid black;
+
              | [[File:{{{corplogo}}}{{!}}250px{{!}}{{{caption|}}}]]
  padding: 0.5em;
+
              }}
  }
+
| caption  =
  
  .InfoboxCorp td:first-child {
+
| label1  = Ticker
  width: 8em;
+
|   data1  = {{{ticker|}}}
  background: black;
 
  vertical-align: top;
 
  font-weight: bold;
 
   }
 
  
  .InfoboxCorp td.logo,
+
| label2  = Alliance
  .InfoboxCorp td.hdr {
+
|  data2 = {{{alliance|}}}
  background: #202020;
 
  }
 
  
  .InfoboxCorp td.logo {
+
| label3  = CEO
  padding: initial;
+
|   data3  = {{{ceo|}}}
   }
 
  
  .InfoboxCorp td.hdr {
+
| label4  = Director(s)
  text-align: center;
+
|   data4  = {{{director|}}}
   }
 
  
}}
+
|  label5  = Founded on
<noinclude>{{documentation}}</noinclude>
+
|  data5  = {{{founded|}}}
 +
 
 +
|  label6  = Headquarters
 +
|  data6  = {{{headquarters|}}}
 +
 
 +
|  label7  = Public Channel
 +
|  data7  = {{{publicchannel|}}}
 +
 
 +
 
 +
|  label8  = Website
 +
|  data8  = {{#if: {{{website|}}}
 +
              | [{{{website}}} {{{webnicename}}}]
 +
            }}
 +
 
 +
 
 +
| header9  = {{#If: {{{prevalliances|}}}{{{prevceos|}}}
 +
              | History
 +
            }}
 +
 
 +
| label10  = Alliances
 +
|  data10  = {{{prevalliances|}}}
 +
 
 +
| label11  = Former CEOs
 +
|  data11  = {{{prevceos|}}}
 +
 
 +
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 10:04, 30 May 2022

Corporation name ?
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template creates an infobox for a faction
Dependencies
uses
{{Infobox}}
Usage
Copy and paste the code below into a corporation page and complete the info.
{{Infobox corporation
|corpname      = 
|corplogo      = 
|caption       = 
|ticker        = 
|alliance      = 
|ceo           = 
|director      = 
|founded       = 
|status        = 
|headquarters  = 
|publicchannel = 
|website       = 
|webnicename   = 
|prevalliances = 
|prevceos      = 
}}
Syntax parameters
corpname
Name of the corporation
corplogo
Name of the image of the corporations logo. (Including the extension, jpg, png, etc.)
caption
Caption to go with the corporation logo.
ticker
The corporations ticker.
alliance
Name of the alliance the corporation is part of.
ceo
Name of the current CEO.
director
Name of the director(s). When entering more than one, separate them with <br>.
founded
The date the corporation was founded.
status
Staus of the corporation, Active or Closed.
headquarters
System or station the corporations headquarters is based at.
publicchannel
Name of the corporations in-game public chat channel.
webbsite
URL of the corporations website.
webnicename
The visible name of he website in the infobox. When omitted the website will be visible as a number between square brackets, (e.g. [1]|
prevalliances
Name or names of alliances the corporation has previously been part of. When entering more than one, separate them with <br>.
prevceos
Name(s) of previous CEO's. When entering more than one, separate them with <br>.
Unused parameters will not show.
Sample
EVE University
E-UNI.png
Ticker E-UNI
Alliance Ivy League
CEO Jilokari Kurvora
Director(s) Kai-Alon Deninard
Dairek Alamari
...
Founded on 15 March 2004
Headquarters Stacmon
Public Channel EVE University
Website UniWiki
History
Former CEOs Morning Maniac
Laura Karpinski
{{Infobox corporation
|corpname      = EVE University
|corplogo      = E-UNI.png
|caption       = 
|ticker        = E-UNI
|alliance      = Ivy League
|ceo           = Jilokari Kurvora
|director      = Kai-Alon Deninard<br>Dairek Alamari<br>...
|founded       = 15 March 2004
|status        = Active
|headquarters  = Stacmon
|publicchannel = EVE University
|website       = https://wiki.eveuniversity.org
|webnicename   = UniWiki
|prevalliances = 
|prevceos      = Morning Maniac<br>Laura Karpinski
}}
Visit Template:Infobox corporation/doc to edit this text! (How does this work?) (Refresh this text - why?)