Difference between revisions of "Template:Infobox agent"

From EVE University Wiki
Jump to: navigation, search
m (Needed a little more work and code to get it working.)
(Removed CSS, used Template:Infobox)
Line 1: Line 1:
<includeonly>{| class="infoboxtable"
+
<includeonly>{{Infobox
|-
+
|title        = {{{name}}}
! colspan="2" class="infoboxnamegray" | {{{name}}}
+
|image        = [[File:{{#if: {{{image|}}} | {{{image}}} | Member.png}}|{{#if: {{{size|}}} | {{{size}}}|125px}}]]
|- style="text-align:center"
+
 
| colspan="2" style="padding:0.5em;" | [[File:{{#if: {{{image|}}} | {{{image}}} | Member.png}}|{{#if: {{{size|}}} | {{{size}}}|125px}}]]
+
|header1 =  
|- style="text-align:center"
+
|label1  = Type
{{#if: {{{caption|}}} | {{!}} colspan="2" style="padding:0.5em;" {{!}} ''{{{caption|}}}'' }}
+
|data1  = {{#switch: {{ lc:{{{type}}} }}
|-
 
! colspan="2" class="infoboxdescriptiongray" | Details
 
|-
 
{{#if: {{{type|}}} | {{!}} width=80 {{!}}  <div>Type</div> {{!!}} {{#switch: {{lc:{{{type}}}}}
 
 
   | security = Security
 
   | security = Security
 
   | distribution = Distribution
 
   | distribution = Distribution
Line 20: Line 16:
 
   | cosmos = COSMOS
 
   | cosmos = COSMOS
 
   | #default = <span style="color:red">Accepted values: Security, Distribution, Mining, R&D, Career Agent, Factional Warfare, Storyline, Epic Arc, COSMOS</span>
 
   | #default = <span style="color:red">Accepted values: Security, Distribution, Mining, R&D, Career Agent, Factional Warfare, Storyline, Epic Arc, COSMOS</span>
  }}
 
 
}}
 
}}
|-
+
|header2 =
{{#if: {{{level|}}} | {{!}} <div>Level</div> {{!!}} {{{level}}} }}
+
|label2  = Level
|-
+
|data2  = {{{level|}}}
{{#if: {{{system|}}} | {{!}} <div>Location</div> {{!!}} {{{system}}} ({{ColorSecurityRating | rating = {{SystemToSecurity | system = {{{system}}} }} }})<br>{{SystemToRegion | system = {{{system}}} }} }}
+
|header3 =
|-
+
|label3  = Location
{{#if: {{{beacon|}}} | {{!}} <div>Beacon</div> {{!!}} {{{beacon}}} }}
+
|data3  = {{{system|}}} ({{ColorSecurityRating | rating = {{SystemToSecurity | system = {{{system|}}} }} }})<br>{{SystemToRegion | system = {{{system|}}} }}
|-
+
|header4 =
{{#if: {{{corporation|}}} | {{!}} <div>Affiliation</div> {{!!}} {{{corporation}}}<br>{{CorporationToFaction | corporation = {{{corporation}}} }} }}
+
|label4  = Beacon
|-
+
|data4  = {{{beacon|}}}
{{#if: {{{note|}}} | {{!}} <div>Note</div> {{!!}} {{{note}}} }}
+
|header5 =
|}{{InfoboxCSS}}</includeonly><noinclude>
+
|label5  = Affiliation
 +
|data5  = {{{corporation|}}}<br>{{CorporationToFaction | corporation = {{{corporation|}}} }}
 +
|header6 =
 +
|label6  = Note
 +
|data6  = {{{note|}}}
 +
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 18:08, 11 May 2022