Difference between revisions of "Template:Infobox corporation"

From EVE University Wiki
Jump to: navigation, search
m
m (Rewrite to use meta template {{Infobox}} as by project "Cleanup Infobox Templates")
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{Template:Work in Progress}}
+
{{Infobox
[[Category:Template]]</noinclude>
+
| name    = <!-- left empty, to NOT have edit links at the bottom of the box.-->
{| style="float:right;border:1px solid;margin:10px;"
 
! colspan="3" style="background:black;color:gold;text-align:center;font-size:11pt;font-weight:bold" | {{{title}}}
 
|-
 
| colspan="3" style="text-align:center;font-size:7pt" | [[Image:{{{image file}}}|noframe|200px]]
 
|-
 
| colspan="3" style="background:black;color:gold;text-align:center;font-size:9pt;font-weight:bold" | Corporation
 
|-
 
| colspan="1" style="background:black;font-size:9pt;font-weight:bold" | Type || colspan="2" style="font-size:9pt" | {{{type}}}
 
|-
 
| colspan="1" style="background:black;font-size:9pt;font-weight:bold" | Founded || style="font-size:9pt" | {{{founded}}}
 
|-
 
| colspan="1" style="background:black;font-size:9pt;font-weight:bold" | Headquarters || style="font-size:9pt" | {{{office}}}
 
|-
 
| colspan="1" style="background:black;font-size:9pt;font-weight:bold" | CEO || style="font-size:9pt" | {{{ceo}}}
 
|-
 
| colspan="1" style="background:black;font-size:9pt;font-weight:bold" | Members || style="font-size:9pt" | {{{members}}}
 
|-
 
| colspan="1" style="background:black;font-size:9pt;font-weight:bold" | Homepage || style="font-size:9pt" | {{{urlcorp}}}
 
|-
 
| colspan="3" style="background:black;color:gold;text-align:center;font-size:9pt;font-weight:bold" | Alliance
 
|-
 
| colspan="1" style="background:black;font-size:9pt;font-weight:bold" | Name || style="font-size:9pt" | {{{alliance}}}
 
|-
 
| colspan="1" style="background:black;font-size:9pt;font-weight:bold" | Members || style="font-size:9pt" | {{{corps}}}
 
|-
 
|}
 
<noinclude>
 
  
== How to implement ==
+
| title   =  
<code>
+
| above    = {{#if: {{{corpname|}}}
{{Infobox corporation<br />
+
              | {{{corpname}}}
|title                   =Corporation Name<br />
+
              | {{Co|gray|Corporation name ?}}
|image file              =Corporation Logo<br />
+
              }}
|urlcorp                  =Homepage URL<br />
 
|type                    =NPC/Player Corporation<br />
 
|founded                  =Year founded <br />
 
|ceo                      =CEO Name<br />
 
|members                  =Number of members<br />
 
|office                  =Main office location<br />
 
|alliance                =Alliance Name<br />
 
|corps                    =Alliance's other corporations (names)<br />
 
}}
 
</code>
 
  
 +
|  image  = {{#if: {{{corplogo|}}}
 +
              | [[File:{{{corplogo}}}{{!}}250px{{!}}{{{caption|}}}]]
 +
              }}
 +
| caption  =
  
== Example ==
+
|  label1  = Ticker
An example can be found [[User:Azalea dreambreaker|here]].
+
|  data1  = {{{ticker|}}}
Pages that will use this template: CONCORD, Khanid Innovation, Wiyrkomi Peace Corps
 
  
 +
|  label2  = Alliance
 +
|  data2  = {{{alliance|}}}
  
== Development ==
+
|  label3  = CEO
=== Structure ===
+
|  data3  = {{{ceo|}}}
The template needs a fixed or maximum width, it expands too much, see [[User:Azalea dreambreaker|example]].<br />
 
Maybe the label "Corporation" should be removed?
 
  
=== Additional Infos ===
+
|  label4  = Director(s)
What could be taken into the infobox:
+
|  data4  = {{{director|}}}
* homepage url (done)
 
* corporation tag
 
* number of members (done)
 
* main activities
 
* office location (done)
 
  
 +
|  label5  = Founded on
 +
|  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>
 
</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?)