Difference between revisions of "Template:CMBSiteInfo"

From EVE University Wiki
Jump to: navigation, search
m (Change some coding so that if some info is not entered the field is empty instead of showing the parameter name.)
(Refactor to use meta template {{Infobox}} as by project "Cleanup Infobox Templates")
Line 1: Line 1:
<div style="float: right; margin: 0 2em 2em;">
+
<includeonly>{{NPCTableCSS}}</includeonly>{{Infobox
{| class=wikitable style="margin: 1em auto 1em auto; width: 250px; font-size: 0.9em; line-height: 1.4em;"
+
| name          = <!-- left empty, to NOT have edit links at the bottom of the box.-->
|+ style="padding: 0.5em;" | '''Site Details '''
+
 
|-
+
| title          = Site Details
| style="background: #222; text-align: center; padding: 0.5em;" colspan="2" | '''<big>{{{name|{{Co|gray|Site name ?}}}}}</big>'''
+
| above          = {{{name|{{Co|gray|Site name ?}}}}}
|-
+
 
| style="background: #222; width: 1%; padding: 0.5em;" | '''Type'''
+
| label1  = Type
| style="padding: 0.5em;" | {{#switch: {{{type}}}
+
|   data1  = {{#switch: {{lc: {{{type}}} }}
  | DED
+
| anomaly    = [[Combat sites#Combat anomalies|Combat Anomaly]]
  | ded        =[[Combat_sites#DED_rated_complexes|DED Rated Complex]]
+
  | chemical    = [[Combat sites#Chemical Labs|Chemical Lab]]
  | unrated    =[[Combat_sites#Unrated_complexes|Unrated Complex]]
+
  | cosmos      = [[Combat sites#COSMOS sites|COSMOS site]]
 +
  | ded        = [[Combat sites#DED rated complexes|DED Rated Complex]]
 
  | escalation
 
  | escalation
  | expedition  =[[Combat_sites#expeditions|Expedition]]
+
  | expedition  = [[Combat sites#expeditions|Expedition]]
  | anomaly     =[[Combat_sites#Combat_anomalies|Combat Anomaly]]
+
  | unrated     = [[Combat sites#Unrated_complexes|Unrated Complex]]
| chemical    =[[Combat_sites#Chemical_Labs|Chemical Lab]]
+
  }}
  | COSMOS
+
 
| cosmos      =[[Combat_sites#COSMOS_sites|COSMOS site]]
+
| label2  = Rating
}}
+
|   data2  = {{{rating|}}}
|-
+
 
| style="background: #222; padding: 0.5em;" | '''Rating'''
+
| label3  = Found in
| style="padding: 0.5em;" | {{#if:{{{rating|}}}|{{{rating}}}|}}
+
|   data3  = {{{location|}}}
|-
+
 
| style="background: #222; padding: 0.5em;" | '''Found in'''
+
| label4  = Max ship size
| style="padding: 0.5em;" | {{{location|}}}
+
|   data4  = {{{ship limit|}}}
|-
+
 
| style="background: #222; padding: 0.5em; white-space:nowrap" | '''Max ship size'''
+
| label5  = Faction
| style="padding: 0.5em;" | {{{ship limit|}}}
+
|   data5  = {{#switch: {{lc: {{{faction}}} }}
|-
+
  | angel
| style="background: #222; padding: 0.5em;white-space:nowrap" | '''Faction'''
+
  | angels
| style="padding: 0.5em;" | {{#switch: {{{faction}}}
+
  | angel cartel = [[Angel Cartel]]
  | Serpentis = [[Serpentis]]
+
  | amarr
| Angel
+
  | amarr empire = [[Amarr Empire|Amarr]]
  | Angels
 
  | Angel Cartel = [[Angel_Cartel|Angel Cartel]]
 
  | Guristas pirates
 
| Guristas = [[Guristas_Pirates|Guristas]]
 
| Sansha
 
| Sansha's
 
| Sansha's Nation = [[Sansha%27s_Nation|Sansha's Nation]]
 
| Blood Raider
 
| Blood Raider Covenant
 
| Blood Raiders = [[The_Blood_Raider_Covenant|Blood Raiders]]
 
| Mordu
 
| Mordu's
 
| Mordu's Legion = [[Mordu's Legion]]
 
| Amarr Empire
 
  | Amarr = [[Amarr Empire|Amarr]]
 
 
  | Ammatar = [[Ammatar]]
 
  | Ammatar = [[Ammatar]]
  | Minmatar
+
  | blood raider
  | Minmatar Republic = [[Minmatar Republic|Minmatar]]
+
| blood raiders
  | Gallente Federation
+
| blood raider covenant = [[The_Blood_Raider_Covenant|Blood Raiders]]
  | Gallente = [[Gallente Federation|Gallente]]
+
| caldari
  | Caldari State
+
  | caldari state = [[Caldari State|Caldari]]
  | Caldari = [[Caldari State|Caldari]]
+
| edencom = [[EDENCOM]]
  | Khanid Kingdom
+
  | gallente
  | Khanid = [[Khanid Kingdom|Khanid]]
+
  | gallente federation = [[Gallente Federation|Gallente]]
  | Mercenaries = Mercenary
+
  | guristas
  | Rogue Drones = [[Rogue Drones|Rogue Drones]]
+
  | guristas pirates = [[Guristas Pirates|Guristas]]
  | Triglavians = [[Triglavian_Collective|Triglavian Collective]]
+
  | khanid
  | EDENCOM = [[EDENCOM]]
+
  | khanid kingdom = [[Khanid Kingdom|Khanid]]
 +
  | mercenary
 +
| mercenaries = Mercenary
 +
  | minmatar
 +
| minmatar republic = [[Minmatar Republic|Minmatar]]
 +
| mordu
 +
| mordu's
 +
| mordu's legion = [[Mordu's Legion]]
 +
| rogue drones = [[Rogue Drones]]
 +
  | sansha
 +
| sansha's
 +
| sansha's nation = [[Sansha's Nation]]
 +
| serpentis = [[Serpentis]]
 +
  | triglavians = [[Triglavian Collective]]
 
  | {{{faction|}}}
 
  | {{{faction|}}}
}}
+
}}
|-
+
 
| style="background: #222; padding: 0.5em; white-space:nowrap;" | '''[[Damage_types|Damage to deal]]'''
+
| label6  = [[Damage types|Damage to deal]]
| style="padding: 0.5em;" | {{#if:{{{damage|}}}|{{{damage}}}|{{#switch: {{{faction}}}
+
|   data6  = {{#if:{{{damage|}}}
| Serpentis = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
| {{{damage}}}
| Angel
+
| {{#switch: {{lc: {{{faction}}} }}
| Angels
+
  | angel
| Angel Cartel = {{Damagetype|Ex}}<br>{{Damagetype|Kin}}
+
  | angels
| Syndicate
+
  | angel cartel = {{Damagetype|Ex}}<br>{{Damagetype|Kin}}
| The Syndicate = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | amarr
| Guristas pirates
+
  | amarr empire = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Guristas = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | ammatar = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Sansha
+
  | blood raider
| Sansha's
+
  | blood raiders
| Sansha's Nation = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | blood raider covenant = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Blood Raider
+
  | caldari
| Blood Raider Covenant
+
  | caldari state = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| Blood Raiders = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | concord = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| Mordu's
+
  | edencom = Varies
| Mordu's Legion = {{Damagetype|Kin}}<br>{{Damagetype|Em}}
+
  | eom
| EOM
+
  | equilibrium of mankind = {{Damagetype|Kin}}
| Equilibrium of Mankind = {{Damagetype|Kin}}
+
  | gallente
| CONCORD = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | gallente federation = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| Amarr Empire
+
  | guristas
| Amarr = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | guristas pirates = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| Ammatar = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | khanid
| Minmatar Republic
+
  | khanid kingdom = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Thukker Tribe
+
  | mercenary
| Minmatar = {{Damagetype|Ex}}<br>{{Damagetype|Kin}}
+
  | mercenaries = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| Gallente Federation
+
  | minmatar
| Gallente = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | minmatar republic = {{Damagetype|Ex}}<br>{{Damagetype|Kin}}
| Caldari State
+
  | mordu's
| Caldari = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | mordu's legion = {{Damagetype|Kin}}<br>{{Damagetype|Em}}
| Khanid Kingdom
+
  | rogue drones = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Khanid = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | sansha
| Mercenaries = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | sansha's
| Rogue Drones = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | sansha's nation = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Triglavians = {{Damagetype|Ex}}<br>{{Damagetype|Th}}
+
  | serpentis = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| EDENCOM = Varies
+
  | syndicate
}}}}
+
  | the syndicate = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
|-
+
  | thukker tribe = {{Damagetype|Ex}}<br>{{Damagetype|Kin}}
| style="background: #222; padding: 0.5em;" | '''[[Damage_types|Damage to<br>Resist]]'''
+
  | triglavians = {{Damagetype|Ex}}<br>{{Damagetype|Th}}
| style="padding: 0.5em;" | {{#if:{{{resist|}}}|{{{resist}}}|{{#switch: {{{faction}}}
+
  }}
| Serpentis = 55% {{Damagetype|Kin}}<br>45% {{Damagetype|Th}}
+
}}
| Angel
+
 
| Angels
+
| label7  = [[Damage types|Damage to resist]]
| Angel Cartel = 62% {{Damagetype|Ex}}<br>22% {{Damagetype|Kin}}
+
|   data7  = {{#if:{{{resist|}}}
| Syndicate
+
| {{{resist}}}
| The Syndicate = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
| {{#switch: {{lc: {{{faction}}} }}
| Guristas pirates
+
  | angel
| Guristas = 79% {{Damagetype|kin}}<br>18% {{Damagetype|Th}}
+
  | angels
| Sansha
+
  | angel cartel = 62% {{Damagetype|Ex}}<br>22% {{Damagetype|Kin}}
| Sansha's
+
  | amarr
| Sansha's Nation = 53% {{Damagetype|Em}}<br>47% {{Damagetype|Th}}
+
  | amarr empire = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Blood Raider
+
  | ammatar = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Blood Raider Covenant
+
  | blood raider
| Blood Raiders = 50% {{Damagetype|Em}}<br>48% {{Damagetype|Th}}
+
  | blood raiders
| Mordu's
+
  | blood raider covenant = 50% {{Damagetype|Em}}<br>48% {{Damagetype|Th}}
| Mordu's Legion = {{Damagetype|Kin}}<br>{{Damagetype|Em}}
+
  | caldari state
| EOM
+
  | caldari = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| Equilibrium of Mankind = {{Damagetype|Kin}}
+
  | concord = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| CONCORD = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | edencom = Varies
| Amarr Empire
+
  | eom
| Amarr = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | equilibrium of mankind = {{Damagetype|Kin}}
| Ammatar = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | gallente
| Minmatar Republic
+
  | gallente federation = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| Thukker Tribe
+
  | guristas
| Minmatar = {{Damagetype|Ex}}<br>{{Damagetype|Kin}}
+
  | guristas pirates = 79% {{Damagetype|kin}}<br>18% {{Damagetype|Th}}
| Gallente Federation
+
  | khanid
| Gallente = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | khanid kingdom = {{Damagetype|Em}}<br>{{Damagetype|Th}}
| Caldari State
+
  | mercenary
| Caldari = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | mercenaries = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
| Khanid Kingdom
+
  | minmatar
| Khanid = {{Damagetype|Em}}<br>{{Damagetype|Th}}
+
  | minmatar republic = {{Damagetype|Ex}}<br>{{Damagetype|Kin}}
| Mercenaries = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
+
  | mordu's
| Rogue Drones = [[NPC_Damage_Types#NPC_damage_types|Varied]]
+
  | mordu's legion = {{Damagetype|Kin}}<br>{{Damagetype|Em}}
| Triglavians = [[NPC_Damage_Types#NPC_damage_types|Omni]]
+
  | rogue drones = [[NPC Damage_Types#NPC damage types|Varied]]
| EDENCOM = Varies
+
  | sansha
}}}}
+
  | sansha's
|-
+
  | sansha's nation = 53% {{Damagetype|Em}}<br>47% {{Damagetype|Th}}
| style="background: #222; padding: 0.5em;" | '''Sig. Strength'''
+
  | serpentis = 55% {{Damagetype|Kin}}<br>45% {{Damagetype|Th}}
| style="padding: 0.5em;" | {{#if:{{{signature strength |}}}|{{{signature strength }}}|}}
+
  | syndicate
|}
+
  | the syndicate = {{Damagetype|Kin}}<br>{{Damagetype|Th}}
__NOTOC__
+
  | thukker tribe = {{Damagetype|Ex}}<br>{{Damagetype|Kin}}
</div>{{NPCTableCSS}}<noinclude>
+
  | triglavians = [[NPC Damage Types#NPC damage types|Omni]]
{{Documentation}}
+
  }}
 +
}}
 +
 
 +
| label8  = Sig. strength
 +
|   data8  = {{{signature strength|}}}
 +
 
 +
}}<noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 08:21, 28 May 2022

Site Details
Site name ?
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template produces an infobox at the right side of the page containing basic information about a particular combat site.
This template also includes {{NPCTableCSS}}.
Dependencies
Uses
{{Infobox}}
{{Damage to deal}}
{{Damage to resist}}
Syntax
{{CMBSiteInfo
| name= 
| type= 
| rating= 
| location= 
| ship limit= 
| faction= 
| damage= 
| resist= 
| faction2= 
| damage2= 
| resist2= 
| signature strength= 
}}
Unused parameters will not be shown in the infobox and may be removed.
name
Name of the site. (Required)
type
Site type. One of anomaly, chemical, COSMOS, DED, expedition or unrated. This parameter produces a link to the relative article. The parameter is not case-sensitive.
rating
The site rating. e.g. 5/10
location
Where the site is found e.g. Highsec or a specific system or constellation etc.
ship limit
Maximum allowed ship size.
faction
The opposing faction in the site. Either one of the well-known factions in the table or free form. The well-known factions produce a link to the relative wiki article. The well-known factions are not case-sensitive.
Well-known factions
Full name Valid alternative(s)
Amarr Empire Amarr
Ammatar
Angel Cartel Angel, Angels
Blood Raider Covenant Blood Raider, Blood Raiders
Caldari State Caldari
EDENCOM
Gallente Federation Gallente
Guristas pirates Guristas
Khanid Kingdom Khanid
Mercenaries Mercenary
Minmatar Republic Minmatar
Mordu's Legion Mordu, Mordu's
Rogue Drones
Sansha's Nation Sansha, Sansha's
Serpentis
Triglavians
faction2
See faction


For damage and resist use {{Damagetype}}. When one of the well-known factions is used and nothing is entered the factions default values will be used.
damage
Best damage to deal (optional)
damage2
see damage
resist
Damage to resist (optional)
resist2
See resist


signature strength
Signature strength


Sample
Site Details
Serpentis Lookout
Type Unrated Complex
Found in High
Max ship size Battlecruiser
Faction Serpentis
Damage to deal Kinetic damage Kin
Thermal damage Th
Damage to resist 55% Kinetic damage Kin
45% Thermal damage Th
Sig. strength 10% in High Sec
{{CMBSiteInfo
| name= Serpentis Lookout
| type= unrated
| rating= 
| location= High
| ship limit= Battlecruiser
| faction= Serpentis
| damage= 
| resist= 
| signature strength= 10% in High Sec 
}}
gives...
Visit Template:CMBSiteInfo/doc to edit this text! (How does this work?) (Refresh this text - why?)