More actions
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: | ||
<!-- #css: at the end --> | |||
<table cellspacing="0" cellpadding="0" class="InfoboxCorp"> | |||
<caption> {{{corpname|corpname is missing}}} </caption> | |||
<tr> | |||
<td colspan="2" class="logo"> {{#if: {{{corplogo|}}}|[[Image:{{{corplogo}}}{{!}}center{{!}}280px{{!}}{{{caption}}}]]}} </td> | |||
</tr> | |||
<tr> | |||
{{#if: {{{alliance|}}} | | <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|}}} | | {{#if: {{{publicchannel|}}} | | ||
{{ | <tr> | ||
{{ | <td> Public Channel </td><td> {{{publicchannel}}} </td> | ||
{{ | </tr> | ||
}} | |||
{{#if: {{{ | {{#if: {{{website|}}} | | ||
{{ | <tr> | ||
<td> Website </td><td> [{{{website}}} {{{webnicename}}}] </td> | |||
{{ | </tr> | ||
|}} | }} | ||
{{#if: {{{ | {{#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> | |||
{{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> | |||
Revision as of 15:03, 27 April 2022
| Ticker | |
| CEO | |
| Director(s) | |
| Founded on | |
| Status | |
| Headquarters | |
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
| |
|
| Ticker | E-UNI |
| Alliance | Ivy League |
| CEO | Jilokari Kurvora |
| Director(s) | Kai-Alon Deninard Dairek Alamari ... |
| Founded on | 15 March 2004 |
| Status | Active |
| Headquarters | Stacmon |
| Public Channel | EVE University |
| Website | UniWiki |
| History | |
| Alliances | - |
| 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?)
