Difference between revisions of "Template:Infobox militia"

From EVE University Wiki
Jump to: navigation, search
m (Rewrite to use meta template {{Infobox}} as by project "Cleanup Infobox Templates")
 
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;"
+
{{Infobox
|+  <div style="font-size:180%">'''{{{corpname}}}'''</div>
+
| name    = <!-- left empty, to NOT have edit links at the bottom of the box.-->
|-
+
 
| colspan="2" style="background:#202020; text-align:left; border-bottom:1px #000000 solid" | [[Image:{{{corplogo}}}|center|150px]]
+
| title  =
|-
+
| above  = {{#if: {{{corpname|}}}
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Ticker
+
            | {{{corpname}}}
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | '''{{{ticker}}}'''
+
            | {{Co|gray|Corporation name ?}}
|-
+
            }}
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Faction
+
 
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{faction}}}
+
| image  = {{#if: {{{corplogo|}}}
|-
+
            | [[File:{{{corplogo}}}{{!}}250px{{!}}{{{caption|}}}]]
| 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}}}
+
 
|-
+
| caption =
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Headquarters
+
 
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{headquarters}}}
+
| label1  = Ticker
|-
+
| data1  = {{{ticker|}}}
|style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Offices
+
 
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{offices}}}
+
| label2  = Faction
|-
+
| data2  = {{{faction|}}}
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Activity
+
 
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | {{{activity}}}
+
| label3  = CEO
|-
+
| data3  = {{{ceo|}}}
| colspan="2" style="background:#202020; text-align:left; border-bottom:1px #000000 solid" | [[Image:{{{allylogo}}}|center|75px]]
+
 
|-
+
| label4  = Headquarters(s)
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Allied Faction
+
| data4  = {{{headquarters|}}}
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | '''{{{ally}}}'''
+
 
|-
+
| label5  = Offices
| colspan="2" style="background:#202020; text-align:left; border-bottom:1px #000000 solid" | [[Image:{{{enemylogo}}}|center|75px]]
+
| data5  = {{{offices|}}}
|-
+
 
| style="background:#000000;border-bottom:1px #000000 solid; padding: 0.5em;border-right:1px #000000 solid; font-weight:bold;" | Enemy
+
| label6  = Activity
| style="background:#101010;border-bottom:1px #000000 solid; padding: 0.5em;" | '''{{{enemy}}}'''
+
| data6  = {{{activity|}}}
|}<noinclude>
+
 
 +
| label7  = Allied Faction
 +
| data7  = {{{ally|}}}
 +
 
 +
| data8  = {{#if: {{{ally}}}
 +
            | {{#if: {{{allylogo|}}}
 +
                | [[File:{{{allylogo}}}{{!}}center{{!}}75px]]
 +
              }}
 +
            }}
 +
 
 +
| label9  = Enemy
 +
| data9  = {{{enemy|}}}
 +
 
 +
| data10  = {{#if: {{{enemy|}}}
 +
            | {{#if: {{{enemylogo|}}}
 +
                | [[File:{{{enemylogo}}}{{!}}center{{!}}75px]]
 +
              }}
 +
            }}
 +
 
 +
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:44, 30 May 2022

Corporation name ?
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template creates an infobox for a Militia
Dependencies
Uses
{{Infobox}}
Usage
Copy and paste the code below into a militia page and complete the info.
{{Infobox militia
|corpname     = 
|corplogo     = 
|ticker       = 
|faction      = 
|ceo          = 
|headquarters = 
|offices      = 
|activity     = 
|ally         = 
|allylogo     = 
|enemy        = 
|enemylogo    = 
}}
Syntax parameters
corpname 
Name of the corporation
corplogo 
Name of the image of the militia logo. (Including the extension, jpg, png, etc.)
ticker 
The militia ticker.
faction 
Name of the faction the militia is part of.
ceo 
Name of the CEO.
headquarters 
Location of the militia's headquarters.
offices 
Number of offices and in how many systems
activity 
Activity type of the militia.
ally 
Allied faction of the militia
allylogo
Name of the image of the allied faction's logo. (Including the extension, jpg, png, etc.)
enemy 
Enemy faction of the militia
enemylogo 
Name of the image of the enemy faction's logo. (Including the extension, jpg, png, etc.)
Sample
State Protectorate
State Protectorate.png
Ticker SPROT
Faction Caldari State
CEO Mumara Kara
Headquarters(s) Jita
Offices 16 in 16 systems
Activity Militia
Allied Faction 24th Imperial Crusade
24th Imperial Crusade.png
Enemy Federal Defence Union
Federal Defense Union.png
{{Infobox militia
|corpname     = State Protectorate
|corplogo     = State Protectorate (transparent).png
|ticker       = SPROT
|faction      = [[Caldari State]]
|ceo          = Mumara Kara
|headquarters = Jita
|offices      = 16 in 16 systems 
|activity     = Militia
|ally         = 24th Imperial Crusade
|allylogo     = 24th Imperial Crusade.png
|enemy        = [[Federal Defence Union]]
|enemylogo    = Federal Defense Union.png 
}}
Visit Template:Infobox militia/doc to edit this text! (How does this work?) (Refresh this text - why?)