Template:Ship class infobox: Difference between revisions
From Halopedia, the Halo wiki
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background: | <table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background: transparent; border-collapse:collapse; border:3px solid #222222; font-size:smaller; line-height:1.5;"> | ||
<tr><td colspan="2"><div id="infoboxinternal"> | <tr><td colspan="2"><div id="infoboxinternal"> | ||
<table border="0" cellspacing="0" cellpadding=" | <table border="0" cellspacing="0" cellpadding="1.5" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;"> | ||
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{imageBG|# | <tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{imageBG|#30D5C8}}};">{{{image|}}}</td></tr> | ||
<tr style="text-align:center; color:#ffffff; background:# | <tr style="text-align:center; color:#ffffff; background:{{{nameBG|#30D5C8}}}; font-size:larger;"><th colspan="2">{{{name}}}</th></tr> {{t|1=|1{{{hidea|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{sectionBG|#5D8AA8}}};">'''Production information'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">{{{manufacturer-title|Manufacturer}}}</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{manufacturer|}}} | {{{manufacturer|}}} | ||
</td></tr>|1{{{manufacturer|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{ | </td></tr>|1{{{manufacturer|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">{{{class-title|Class}}}</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{class|}}} | {{{class|}}} | ||
</td></tr>|1{{{class|}}}=}}{{t|1=|1{{{ | </td></tr>|1{{{class|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">{{{role-title|Role}}}</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{role|}}} | |||
</td></tr>|1{{{role|}}}=}} {{t|1=|1{{{hideb|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{sectionBG|#5D8AA8}}};">'''Technical specifications'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">Engine</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | |||
{{{engine|}}} | {{{engine|}}} | ||
</td></tr>|1{{{engine|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{ | </td></tr>|1{{{engine|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">Slipspace drive</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{slipspace | {{{slipspace|}}} | ||
</td></tr>|1{{{slipspace | </td></tr>|1{{{slipspace|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">{{{hull-title|Hull}}}</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{hull|}}} | {{{hull|}}} | ||
</td></tr>|1{{{hull|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{ | </td></tr>|1{{{hull|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">{{{armament-title|Armaments}}}</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{ | |||
{{{armament|}}} | {{{armament|}}} | ||
</td></tr>|1{{{armament|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{ | </td></tr>|1{{{armament|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">Complement</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{complement|}}} | {{{complement|}}} | ||
</td></tr>|1{{{complement|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{ | </td></tr>|1{{{complement|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">{{{misc-title|Miscellaneous}}}</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{misc|}}} | {{{misc|}}} | ||
</td></tr>|1{{{misc|}}}=}}{{t|1=|1{{{ | </td></tr>|1{{{misc|}}}=}} {{t|1=|1{{{hidec|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{sectionBG|#5D8AA8}}};">'''Usage'''</th></tr>}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">Era</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{era|}}} | {{{era|}}} | ||
</td></tr>|1{{{era|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{ | </td></tr>|1{{{era|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{fieldBG|F0F8FF}}};"><td style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;">Affiliation</td><td class="infoboxcell" style="border-top: 1px solid #1AB895; border-bottom: 1px solid #1AB895;"> | ||
{{{affiliation|}}} | {{{affiliation|}}} | ||
</td></tr>|1{{{affiliation|}}}=}}</table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;"> [[Template:Ship Class Infobox|[Source]]]</td></tr></table><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><includeonly>[[Category:Ship Classes]]</includeonly> | </td></tr>|1{{{affiliation|}}}=}} </table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="background:#222222; text-align:right; width:49%;"></td><td style="background:#222222; text-align:left; width:51%;"> [[Template:Ship Class Infobox|<span style="color:#fff;">[Source]</span>]]</td></tr></table><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><includeonly>[[Category:Ship Classes|{{PAGENAME}}]]</includeonly><noinclude> | ||
<noinclude> | |||
== Usage == | == Usage == | ||
This is an infobox for technical and usage information on specific classes of ships. The fields are relevant to starships, fighters, shuttles, space stations, and most other spacefaring constructs. | |||
For individual ships, do not use this template. Use [[:Template:Individual Ship Infobox]] instead. | |||
<pre> | <pre> | ||
{{Ship Class Infobox | {{Ship Class Infobox | ||
Line 42: | Line 37: | ||
|manufacturer= | |manufacturer= | ||
|class= | |class= | ||
|role= | |||
|engine= | |engine= | ||
|slipspace drive= | |slipspace drive= | ||
Line 50: | Line 46: | ||
|armament= | |armament= | ||
|complement= | |complement= | ||
|era= | |era= | ||
|affiliation= | |affiliation= | ||
}}</pre> | }}</pre> | ||
==Custom parameters== | |||
The following allows you to alter the title of the sub-sections | |||
<pre> | |||
|manufacturer-title= | |||
|class-title= | |||
|hull-title= | |||
|armament-title= | |||
|misc-title= | |||
|misc= | |||
|imageBG= | |||
|nameBG= | |||
|sectionBG= | |||
|fieldBG= | |||
|titleBG= | |||
</pre> | |||
==Display parameters== | |||
The following allows you to hide the section header | |||
*hidea (hides Production section header) | |||
*hideb (hides Tech Specs section header) | |||
*hidec (hides Chrono section header) | |||
<pre> | |||
|hidea= | |||
|hideb= | |||
|hidec= | |||
</pre> | |||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 11:15, November 27, 2010
[Source] |
Usage
This is an infobox for technical and usage information on specific classes of ships. The fields are relevant to starships, fighters, shuttles, space stations, and most other spacefaring constructs.
For individual ships, do not use this template. Use Template:Individual Ship Infobox instead.
{{Ship Class Infobox |name= |image= |manufacturer= |class= |role= |engine= |slipspace drive= |hull= |length= |width= |height= |armament= |complement= |era= |affiliation= }}
Custom parameters
The following allows you to alter the title of the sub-sections
|manufacturer-title= |class-title= |hull-title= |armament-title= |misc-title= |misc= |imageBG= |nameBG= |sectionBG= |fieldBG= |titleBG=
Display parameters
The following allows you to hide the section header
- hidea (hides Production section header)
- hideb (hides Tech Specs section header)
- hidec (hides Chrono section header)
|hidea= |hideb= |hidec=