FANDOM


(Additional parameters)
(Converting to portable infobox format)
Line 1: Line 1:
<onlyinclude>
+
<infobox theme="portInfobox">
{{#infoboxbuilder:
+
<title><default>{{PAGENAME}}</default></title>
| 0:Theme = eInfobox | 0:CustomModule = Module:SRVInfobox
+
<image source="image"><default>Placeholder.png</default></image>
| 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></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|}}}
+
<header>Specifications</header>
| 5:Type = Line | 5:Label = Type
+
<data source="dimensions"><label>Dimensions</label></data>
| 5:Value = {{{type|}}}
+
<data source="hullmass"><label>Hull Mass</label><format>{{{hullmass}}} t</format></data>
| 6:Type = Line | 6:Label = Cost
+
<data source="armour"><label>Armour</label></data>
| 6:ValueMethod = FormatCost | 6:Unit = CR | 6:Value = {{{cost|---}}}
+
<data source="shields"><label>Shields</label><format>{{{shields}}} MJ</format></data>
| 7:Type = Line | 7:Label = Top Speed
+
<data source="topspeed"><label>Top Speed</label><format>{{{topspeed}}} m/s</format></data>
| 7:ValueMethod = Quantify | 7:Unit = m/s | 7:Value = {{{topspeed|---}}}
+
<data source="cargocapacity"><label>Cargo Capacity</label><format>{{{cargocapacity}}} t</format></data>
| 8:ValueMethod = FormatCost | 8:Unit = MJ
+
<data source="fuelcapacity"><label>Fuel Capacity</label><format>{{{fuelcapacity}}} t</format></data>
| 8:Type = Line | 8:Label = Shields | 8:Value = {{{shields|---}}}
+
</infobox><includeonly>{{#if: {{NAMESPACE}} || [[Category:Surface Recon Vehicles]]}}</includeonly><noinclude>
| 9:Type = Line | 9:Label = Armour | 9:Value = {{{armour|---}}}
+
Example usage:<pre>
| 10:Type = Line | 10:Label = Hull Mass
 
| 10:ValueMethod = Quantify | 10:Unit = t | 10:Value = {{{hullmass|---}}}
 
| 11:Type = Line | 11:Label = Cargo Capacity
 
| 11:ValueMethod = Quantify | 11:Unit = t | 11:Value = {{{cargocapacity|---}}}
 
| 12:Type = Line | 12:Label = Fuel Capacity
 
| 12:ValueMethod = Quantify | 12:Unit = t | 12:Value = {{{fuelcapacity|---}}}
 
}}</onlyinclude>
 
<noinclude>
 
For the default version:
 
<pre style="width: 300px">
 
 
{{SRVInfobox
 
{{SRVInfobox
| image =
+
| image =
| manufacturer =
+
| manufacturer =
| dimensions =
+
| yearsproduced =
| type =
+
| type =
| cost =
+
| cost =
| topspeed =
+
| dimensions =
| shields =
+
| hullmass =
| armour =
+
| armour =
| hullmass =
+
| shields =
| cargocapacity =
+
| topspeed =
| fuelcapacity =
+
| cargocapacity =
  +
| fuelcapacity =
 
}}
 
}}
 
</pre>
 
</pre>
  +
[[Category:Infobox templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 01:39, August 2, 2020

Example usage:
{{SRVInfobox
| image         = 
| manufacturer  = 
| yearsproduced = 
| type          = 
| cost          = 
| dimensions    = 
| hullmass      = 
| armour        = 
| shields       = 
| topspeed      = 
| cargocapacity = 
| fuelcapacity  = 
}}
Community content is available under CC-BY-SA unless otherwise noted.