Template:ShipInfobox: Difference between revisions
No edit summary |
Converting to portable infobox format |
||
| Line 1: | Line 1: | ||
< | <infobox theme="portInfobox"> | ||
{{ | <title><default>{{PAGENAME}}</default></title> | ||
<image source="image"><default>Placeholder.png</default></image> | |||
<group> | |||
<header>Overview</header> | |||
<data source="manufacturer"><label>Manufacturer</label><format>[[{{{manufacturer}}}]]</format></data> | |||
<data source="yearsproduced"><label>Years Produced</label></data> | |||
<data source="type"><label>Type</label></data> | |||
<data source="cost"> | |||
<label>Cost</label> | |||
<format>{{{cost}}} CR</format> | |||
</data> | |||
<data source="cost"> | |||
<label>Insurance</label> | |||
<format>{{formatnum: {{#expr: trunc({{formatnum: {{{cost|}}}|R}}*0.05)}} }} CR</format> | |||
</data> | |||
<data source="factionreq"><label>Faction</label><format>[[{{{factionreq}}}]]</format></data> | |||
<data source="factionrank"> | |||
<label>Faction Rank</label> | |||
<format>{{#if: {{{factionreq|}}} | {{{factionrank}}} }}</format> | |||
</data> | |||
<data source="expansionreq"><label>Expansion</label></data> | |||
</group> | |||
<group> | |||
<header>Specifications</header> | |||
<data source="landingpad"><label>Landing Pad Size</label></data> | |||
<data source="dimensions"><label>Dimensions</label></data> | |||
<data source="seats"><label>Pilot Seats</label></data> | |||
<data source="multicrew"><label>Multicrew</label></data> | |||
<data source="fighterhangar"><label>Fighter Hangar</label></data> | |||
<data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data> | |||
<data source="masslock"><label>Mass Lock Factor</label></data> | |||
<data source="armour"><label>Armour</label></data> | |||
<data source="armourhardness"><label>Armour Hardness</label></data> | |||
<data source="shields"><label>Shields</label><format>{{{shields}}} MJ</format></data> | |||
<data source="heatcapacity"><label>Heat Capacity</label></data> | |||
<data source="fuelcapacity"><label>Fuel Capacity</label><format>{{{fuelcapacity}}} t</format></data> | |||
<data source="manoeuvrability"><label>Manoeuvrability</label></data> | |||
<data> | |||
<label>Top Speed</label> | |||
<default>{{#if: {{{topspeed|}}} | {{{topspeed}}} m/s <abbr title="Default value of an unmodified ship">(''default'')</abbr> <br/> }}{{#if: {{{maxtopspeed|}}} | {{{maxtopspeed}}} m/s <abbr title="Maximum possible value before Engineering">(''upgraded'')</abbr> <br/> }}</default> | |||
</data> | |||
<data> | |||
<label>Boost Speed</label> | |||
<default>{{#if: {{{boostspeed|}}} | {{{boostspeed}}} m/s <abbr title="Default value of an unmodified ship">(''default'')</abbr> <br/> }}{{#if: {{{maxboostspeed|}}} | {{{maxboostspeed}}} m/s <abbr title="Maximum possible value before Engineering">(''upgraded'')</abbr> <br/> }}</default> | |||
</data> | |||
<data> | |||
<label>Unladen Jump Range</label> | |||
<default>{{#if: {{{jumprange|}}} | {{{jumprange}}} ly <abbr title="Default value of an unmodified ship">(''default'')</abbr> <br/> }}{{#if: {{{maxjumprange|}}} | {{{maxjumprange}}} ly <abbr title="Maximum possible value before Engineering and Guardian FSD Booster">(''upgraded'')</abbr> <br/> }}</default> | |||
</data> | |||
<data> | |||
<label>Cargo Capacity</label> | |||
<default>{{#if: {{{cargocapacity|}}} | {{{cargocapacity}}} t <abbr title="Default value of an unmodified ship">(''default'')</abbr> <br/> }}{{#if: {{{maxcargocapacity|}}} | {{{maxcargocapacity}}} t <abbr title="Maximum possible value">(''max'')</abbr> <br/> }}</default> | |||
</data> | |||
</group> | |||
<group> | |||
<header>Outfitting</header> | |||
<data> | |||
<label>Hardpoints</label> | |||
<default>{{#if: {{{utility|}}} | {{{utility}}}× Utility {{plural: {{{utility}}} | Mount | Mounts}} <br/> }}{{#if: {{{small|}}} | {{{small}}}× Small {{plural: {{{small}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{medium|}}} | {{{medium}}}× Medium {{plural: {{{medium}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{large|}}} | {{{large}}}× Large {{plural: {{{large}}} | Hardpoint | Hardpoints}} <br/> }}{{#if: {{{huge|}}} | {{{huge}}}× Huge {{plural: {{{huge}}} | Hardpoint | Hardpoints}} <br/> }}</default> | |||
</data> | |||
<data><label>Internal Compartments</label> | |||
<default>{{#if: {{{size1|}}} | {{{size1}}}× Class 1 {{plural: {{{size1}}} | Compartment | Compartments}} <br/> }}{{#if: {{{size2|}}} | {{{size2}}}× Class 2 {{plural: {{{size2}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size3|}}} | {{{size3}}}× Class 3 {{plural: {{{size3}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size4|}}} | {{{size4}}}× Class 4 {{plural: {{{size4}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size5|}}} | {{{size5}}}× Class 5 {{plural: {{{size5}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size6|}}} | {{{size6}}}× Class 6 {{plural: {{{size6}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size7|}}} | {{{size7}}}× Class 7 {{plural: {{{size7}}} | Compartment | Compartments }} <br/> }}{{#if: {{{size8|}}} | {{{size8}}}× Class 8 {{plural: {{{size8}}} | Compartment | Compartments }} <br/> }}</default> | |||
</data> | |||
<data source="reservedic"><label>Reserved Compartments</label> | |||
</data> | |||
</group> | |||
</infobox><includeonly>{{#if: {{NAMESPACE}} || [[Category:Ships]]}}</includeonly><noinclude> | |||
Example usage:<pre> | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}}</ | |||
<noinclude> | |||
<pre | |||
{{ShipInfobox | {{ShipInfobox | ||
| image | | image = | ||
| manufacturer | | manufacturer = | ||
| yearsproduced | | yearsproduced = | ||
| type | | type = | ||
| cost | | cost = | ||
| factionreq = | |||
| factionreq | | factionrank = | ||
| factionrank | | expansionreq = | ||
| expansionreq | | landingpad = | ||
| landingpad | | dimensions = | ||
| dimensions | | seats = | ||
| seats | | multicrew = | ||
| multicrew | | fighterhangar = | ||
| fighterhangar | | hullmass = | ||
| hullmass | | masslock = | ||
| masslock | | armour = | ||
| armour | | armourhardness = | ||
| armourhardness | | shields = | ||
| shields | | heatcapacity = | ||
| manoeuvrability | | fuelcapacity = | ||
| topspeed | | manoeuvrability = | ||
| boostspeed | | topspeed = | ||
| jumprange | | maxtopspeed = | ||
| cargocapacity | | boostspeed = | ||
| | | maxboostspeed = | ||
| utility | | jumprange = | ||
| small | | maxjumprange = | ||
| medium | | cargocapacity = | ||
| large | | maxcargocapacity = | ||
| huge | | utility = | ||
| size1 | | small = | ||
| size2 | | medium = | ||
| size3 | | large = | ||
| size4 | | huge = | ||
| size5 | | size1 = | ||
| size6 | | size2 = | ||
| size7 | | size3 = | ||
| size8 | | size4 = | ||
| reservedic | | size5 = | ||
| size6 = | |||
| size7 = | |||
| size8 = | |||
| reservedic = | |||
}} | }} | ||
</pre> | </pre>[[Category:Infobox templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||