Difference between revisions of "Template:ShipsMatrix"

From EVE University Wiki
Jump to: navigation, search
m (Add Metamorphosis.)
(Add code to produce a fully expanded ship matrix, without hide/show options, to be used on the EVE ships page. Make that code case insensitive. Reduce starting spaces in the CSS section.)
Line 1: Line 1:
 
{{#css:
 
{{#css:
  
.ships-matrix
+
.ships-matrix
  {
+
{
  font-family: arial;
+
  font-family: arial;
  font-size: 12px;
+
  font-size: 12px;
  line-height: 130%;
+
  line-height: 130%;
  }
+
}
  
.ships-matrix table
+
.ships-matrix table
  {
+
{
    width:100%;
+
  width:100%;
  }
+
}
  
.ships-matrix table,
+
.ships-matrix table,
.ships-matrix tr,
+
.ships-matrix tr,
.ships-matrix th,
+
.ships-matrix th,
.ships-matrix td
+
.ships-matrix td
  {  
+
{  
  margin: 0;
+
  margin: 0;
  padding: 0;
+
  padding: 0;
  text-align: left;
+
  text-align: left;
  font-weight: normal;
+
  font-weight: normal;
  }
+
}
  
.ships-matrix th,
+
.ships-matrix th,
.ships-matrix td
+
.ships-matrix td
  {
+
{
  line-height: 110%;
+
  line-height: 110%;
  padding: 3px 5px;
+
  padding: 3px 5px;
  }
+
}
  
.ships-matrix tr
+
.ships-matrix tr
 
  {
 
  {
 
    
 
    
 
  }
 
  }
  
.ships-matrix a
+
.ships-matrix a
  {
+
{
    font-size: 11px;
+
  font-size: 11px;
  }
+
}
  
.ships-matrix a:hover,
+
.ships-matrix a:hover,
.ships-matrix a.hover
+
.ships-matrix a.hover
  {
+
{
  text-decoration:none;
+
  text-decoration: none;
  color:white;
+
  color: white;
  }
+
}
  
.ships-matrix tr.firstprimary,
+
.ships-matrix tr.firstprimary,
.ships-matrix tr.secondprimary
+
.ships-matrix tr.secondprimary
  {
+
{
  background-color: black;
+
  background-color: black;
  }
+
}
  
.ships-matrix .firstprimary th,
+
.ships-matrix .firstprimary th,
.ships-matrix .secondprimary th
+
.ships-matrix .secondprimary th
  {
+
{
  border-bottom: 1px solid #2D2413;
+
  border-bottom: 1px solid #2D2413;
  border-top: 1px solid #2D2413;   
+
  border-top: 1px solid #2D2413;   
  height: 20px;
+
  height: 20px;
  line-height: 20px;
+
  line-height: 20px;
  }
+
}
  
.ships-matrix .showexplain
+
.ships-matrix .showexplain
  {  
+
{  
  text-align: right;
+
  text-align: right;
  font-size: 80%;
+
  font-size: 80%;
  color: #CCCCCC;
+
  color: #CCCCCC;
  }
+
}
  
.ships-matrix .noshowexplain
+
.ships-matrix .noshowexplain
  {
+
{
  text-align: center;
+
  text-align: center;
  font-size: 14px;
+
  font-size: 14px;
  color: #B89964;
+
  color: #B89964;
  font-family: trebuchet MS;
+
  font-family: trebuchet MS;
  font-variant: small-caps;
+
  font-variant: small-caps;
  }
+
}
  
.ships-matrix tr.primary
+
.ships-matrix tr.primary
  {
+
{
  background-color: #222222;
+
  background-color: #222222;
  }
+
}
  
.ships-matrix .primary .collapseButton,
+
.ships-matrix .primary .collapseButton,
.ships-matrix .special .collapseButton,
+
.ships-matrix .special .collapseButton,
.ships-matrix .secondprimary .collapseButton
+
.ships-matrix .secondprimary .collapseButton
  {
+
{
  color: transparent;
+
  color: transparent;
  display: block;
+
  display: block;
  float: right;
+
  float: right;
  padding: 0;
+
  padding: 0;
  }
+
}
  
.ships-matrix .primary .collapseButton a,
+
.ships-matrix .primary .collapseButton a,
.ships-matrix .special .collapseButton a,
+
.ships-matrix .special .collapseButton a,
.ships-matrix .secondprimary .collapseButton a
+
.ships-matrix .secondprimary .collapseButton a
  {
+
{
  background-color: transparent;
+
  background-color: transparent;
  color: #CCCCCC;
+
  color: #CCCCCC;
  font-size: 80%;
+
  font-size: 80%;
  left: 0;
+
  left: 0;
  width: 100%;
+
  width: 100%;
  z-index: 20;
+
  z-index: 20;
  }
+
}
  
.ships-matrix .primary .collapseButton a:hover,
+
.ships-matrix .primary .collapseButton a:hover,
.ships-matrix .primary .collapseButton a.hover
+
.ships-matrix .primary .collapseButton a.hover
  {
+
{
  background-color:#614F31;
+
  background-color: #614F31;
  }
+
}
  
  .ships-matrix tr.highlight
+
.ships-matrix tr.highlight
  {
+
{
  background-color:#2D0404;
+
  background-color:#2D0404;
  }
+
}
  
.ships-matrix tr.special
+
.ships-matrix tr.special
  {
+
{
  background-color: #30281A;
+
  background-color: #30281A;
  }
+
}
  
.ships-matrix tr.even
+
.ships-matrix tr.even
  {
+
{
 
    
 
    
  }
+
}
  
.ships-matrix tr.odd
+
.ships-matrix tr.odd
  {
+
{
 
    
 
    
  }
+
}
  
.ships-matrix th
+
.ships-matrix th
  {
+
{
 
    
 
    
  }
+
}
 
   
 
   
.ships-matrix .firstcol { width:16%; }
+
.ships-matrix .firstcol { width:16%; }
  
.ships-matrix .racialcol { width:21%; }
+
.ships-matrix .racialcol { width:21%; }
  
.ships-matrix .piratecol { width:12%; }
+
.ships-matrix .piratecol { width:12%; }
  
.ships-matrix .othercol { width:21%; }
+
.ships-matrix .othercol { width:21%; }
  
.ships-matrix .widecol { width:84%; }
+
.ships-matrix .widecol { width:84%; }
  
.ships-matrix .centertext { color: gray; text-align: center; }
+
.ships-matrix .centertext
 +
{
 +
  color: gray;
 +
  text-align: center;
 +
}
  
.ships-matrix .racialcol .img,
+
.ships-matrix .racialcol .img,
.ships-matrix .piratecol .img,
+
.ships-matrix .piratecol .img,
.ships-matrix .othercol .img
+
.ships-matrix .othercol .img
  {
+
{
  display: inline-block;
+
  display: inline-block;
  margin-right: 5px;
+
  margin-right: 5px;
  }
+
}
  
.ships-matrix .groupheader
+
.ships-matrix .groupheader
  {
+
{
  color: #B89964;
+
  color: #B89964;
  padding-left: 5px;
+
  padding-left: 5px;
  }
+
}
  
 
  .ships-matrix .groupheader .textlabel
 
  .ships-matrix .groupheader .textlabel
Line 171: Line 175:
 
   }
 
   }
  
.ships-matrix .primary .firstcol,
+
.ships-matrix .primary .firstcol,
.ships-matrix .primary .racialcol,
+
.ships-matrix .primary .racialcol,
.ships-matrix .primary .piratecol,
+
.ships-matrix .primary .piratecol,
.ships-matrix .primary .widecol,
+
.ships-matrix .primary .widecol,
.ships-matrix .special .firstcol,
+
.ships-matrix .special .firstcol,
.ships-matrix .special .racialcol,
+
.ships-matrix .special .racialcol,
.ships-matrix .special .piratecol,
+
.ships-matrix .special .piratecol,
.ships-matrix .special .widecol
+
.ships-matrix .special .widecol
  {
+
{
  border-bottom: 1px solid black;
+
  border-bottom: 1px solid black;
  }
+
}
  
.ships-matrix .firstindent
+
.ships-matrix .firstindent
  {
+
{
  padding-left:10px;
+
  padding-left: 10px;
  }
+
}
  
.ships-matrix .secondindent
+
.ships-matrix .secondindent
  {
+
{
  padding-left:15px;
+
  padding-left: 15px;
  }
+
}
  
 
}}
 
}}
Line 199: Line 203:
  
 
   <tr class='firstprimary'>
 
   <tr class='firstprimary'>
   <th class='firstcol showexplain'>show advanced ships</th>
+
   <th class='firstcol showexplain'>{{#ifeq: {{lc: {{{expgroup}}} }} | all | | show advanced ships}}</th>
 
   <th class='racialcol noshowexplain'><div class='img'>[[Image:Isis_amarr.png|center|x20px|link=]]</div>Amarr</th>
 
   <th class='racialcol noshowexplain'><div class='img'>[[Image:Isis_amarr.png|center|x20px|link=]]</div>Amarr</th>
 
   <th class='racialcol noshowexplain'><div class='img'>[[Image:Isis_caldari.png|center|x20px|link=]]</div>Caldari</th>
 
   <th class='racialcol noshowexplain'><div class='img'>[[Image:Isis_caldari.png|center|x20px|link=]]</div>Caldari</th>
Line 221: Line 225:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | frigates | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | frigates= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 281: Line 289:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | destroyers | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | destroyers= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 325: Line 337:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | cruisers | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | cruisers= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 385: Line 401:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | battlecruisers | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | battlecruisers= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 413: Line 433:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | battleships | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | battleships= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 449: Line 473:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | carriers | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | carriers= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 469: Line 497:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | dreadnoughts | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | dreadnoughts= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 513: Line 545:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | freighters | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | freighters= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 533: Line 569:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | haulers | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | haulers= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='primary'>
 
     <tr class='primary'>
Line 565: Line 605:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | ore | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | ore= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='special'>
 
     <tr class='special'>
Line 614: Line 658:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | pirates | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | pirates= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='secondprimary'>
 
     <tr class='secondprimary'>
Line 717: Line 765:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | other | |collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | other= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='secondprimary'>
 
     <tr class='secondprimary'>
Line 841: Line 893:
 
     </table>
 
     </table>
  
     <table class='collapsible {{#ifeq: {{{expgroup}}} | special edition | | collapsed}}' cellspacing='0' cellpadding='0'>
+
     <table class='{{#switch: {{lc: {{{expgroup}}} }}
 +
    | #default= collapsible collapsed
 +
    | special edition= collapsible
 +
    | all=
 +
    }}' cellspacing='0' cellpadding='0'>
  
 
     <tr class='special'>
 
     <tr class='special'>
Line 932: Line 988:
  
 
</div>
 
</div>
<noinclude>
+
<noinclude>{{documentation}}</noinclude>
{{documentation}}
 
</noinclude>
 

Revision as of 09:36, 21 May 2023

show advanced ships
Isis amarr.png
Amarr
Isis caldari.png
Caldari
Isis gallente.png
Gallente
Isis minmatar.png
Minmatar
Corvettes Impairor Ibis Velator Reaper
Force Auxiliaries Apostle Minokawa Ninazu Lif
Titans Avatar Leviathan Erebus Ragnarok
Shuttles Amarr Shuttle Caldari Shuttle Gallente Shuttle Minmatar Shuttle
Template documentation (for the above template, sometimes hidden or invisible)
Description
This template generates a footer with expandable rows, listing all ships by faction and type. It also has an option to display a fully expanded version without the show/hide option.
The rules for placing Ships into the matrix are:
  • Amarr, Caldari, Gallente and Minmatar Ships from the "Ship Tree" go in the "Primary" sub-table
  • ORE Ships from the "Ship Tree" go in the "Outer Ring Excavation Ships" sub-table
  • Ships from the "Ship Tree" found under "Pirate Factions" in the "Regional Market" in-game window go in the "Pirate Factions Ships" sub-table
  • Ships described in-game as built by CONCORD, Ships described in-game as built by Society of Conscious Thought, EDENCOM Ships from the "Ship Tree" and Triglavian Ships from the "Ship Tree" go in the "Other Faction Ships" sub-table; the exception are Ships that are only given once, such as Ships given during the Alliance Tournament - these belong in the "Special Edition Ships" sub-table
  • All Ships that do not belong to any previous sub-table go in the "Special Edition Ships" sub-table
Dependencies
Uses
{{Sh}} for ship links in the "Special Edition Ships" section.
CSS class nowraplinks from MediaWiki:Common.css
Syntax
{{ShipsMatrix|<expgroup= expgroup>}}
Parameters
expgroup=
To auto expand a collapsed ship group - One of the following: battlecruisers, battleships, carriers, cruisers, destroyers, dreadnoughts, freighters, frigates, haulers, ore, pirates, special edition or other.
Tho produce a fully expanded ship matrix without the show/hide option use the expgroup parameter all.
Notes
The all value for the fully expanded version was developed to replace the manual coding of the article EVE ships.
Visit Template:ShipsMatrix/doc to edit this text! (How does this work?) (Refresh this text - why?)