Template:VehicleInfobox: Difference between revisions

Content deleted Content added
Added basic infobox
 
m Univero moved page Template:SRVInfobox to Template:VehicleInfobox: Better name = SRV = vehicle
 
(10 intermediate revisions by 2 users not shown)
Line 1:
<infobox theme="portInfobox">
<onlyinclude>
<title><default>{{PAGENAME}}</default></title>
{{#infoboxbuilder:
<image source="image"><default>Placeholder.png</default></image>
| 0:Theme = eInfobox | 0:CustomModule = Module:SRVInfobox
<group>
| 1:Type = Title | 1:Label = NULL | 1:Value = {{PAGENAME}}
<header>Overview</header>
| 2:Type = MainImage | 2:Label = NULL| 2:Value = [[File:{{{image|Placeholder.png}}}|306px]]
<data source="manufacturer"><label>Manufacturer</label><format>[[{{{manufacturer}}}]]</format></data>
| 3:Type = Line | 3:Label = Manufacturer
<data source="yearsproduced"><label>Years Produced</label></data>
| 3:Value = {{{manufacturer|}}}
<data source="type"><label>Type</label></data>
| 4:Type = Line | 4:Label = Dimensions
<data source="cost"><label>Cost</label><format>{{{cost}}} CR</format></data>
| 4:Value = {{{dimensions|}}}
<data source="expansion"><label>Expansion</label><format>''[[{{{expansion}}}]]''</format></data>
| 5:Type = Line | 5:Label = Type
</group>
| 5:Value = {{{type|}}}
<group>
| 6:Type = Line | 6:Label = Cost
<header>Specifications</header>
| 6:ValueMethod = FormatCost | 6:Unit = CR | 6:Value = {{{cost|---}}}
<data source="hangar"><label>Hangar Type</label></data>
| 7:Type = Line | 7:Label = Top Speed
<data source="size"><label>SRV Size</label></data>
| 7:ValueMethod = Quantify | 7:Unit = m/s | 7:Value = {{{topspeed|---}}}
<data source="dimensions"><label>Dimensions</label></data>
| 8:Type = Line | 8:Label = Hull Mass
<data source="seats"><label>Multicrew Seats</label></data>
| 8:ValueMethod = Quantify | 8:Unit = t | 8:Value = {{{hullmass|---}}}
<data source="multicrew"><label>Multicrew</label></data>
| 9:Type = Line | 9:Label = Cargo Capacity
<data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data>
| 9:ValueMethod = Quantify | 9:Unit = t | 9:Value = {{{cargocapacity|---}}}
<data source="armour"><label>Armour</label></data>
| 10:Type = Line | 10:Label = Fuel Capacity
<data source="shields"><label>Shields</label><format>{{{shields}}} MJ</format></data>
| 10:ValueMethod = Quantify | 10:Unit = t | 10:Value = {{{fuelcapacity|---}}}
<data source="topspeed"><label>Top Speed</label><format>{{{topspeed}}} m/s</format></data>
}}</onlyinclude>
<data source="cargocapacity"><label>Cargo Capacity</label><format>{{{cargocapacity}}} t</format></data>
<noinclude>
<data source="fuelcapacity"><label>Fuel Capacity</label><format>{{{fuelcapacity}}} t</format></data>
For the default version:
</group>
<pre style="width: 300px">
</infobox><includeonly>{{#if: {{NAMESPACE}} || [[Category:Surface Recon Vehicles]]}}</includeonly><noinclude>
{{ShipInfobox
Example usage:<pre>
| image = ▼
{{SRVInfobox
| manufacturer = ▼
| dimensions image =
| type manufacturer =
|yearsproduced =
| cost = ▼
| topspeed type =
| hullmass cost =
| cargocapacity expansion =
|size fuelcapacity = =
▲| manufacturerhangar =
|dimensions =
▲| image seats =
|multicrew =
|hullmass =
▲| cost armour =
|shields =
|topspeed =
|cargocapacity =
|fuelcapacity =
}}
</pre>
[[Category:Infobox templates|{{PAGENAME}}]]
</noinclude>