Template:VehicleInfobox: Difference between revisions

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