Difference between revisions of "Template:Infobox vehicle"

From Captain of Industry Wiki
Jump to: navigation, search
(Added fuel consumption)
(add Maintenance I icon)
Line 47: Line 47:
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
             --><td class="table-td-left">Maintenance</td><!--
             --><td class="table-td-left">Maintenance</td><!--
             --><td class="table-td-right">{{{Maintenance}}} {{#ifeq:{{lc:{{{Maintenance}}}}} | none | | {{Time}} }}</td><!--
             --><td class="table-td-right">{{{Maintenance}}} {{#ifeq:{{lc:{{{Maintenance}}}}} | none | | {{infoicon|Maintenance I|icononly=yes}} {{Time}} }}</td><!--
           --></tr>}}<!--         
           --></tr>}}<!--         
         -->{{#if:{{{Miner|}}}|<!--
         -->{{#if:{{{Miner|}}}|<!--

Revision as of 05:14, 28 February 2023

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Pickup Truck
Pickup.png
Optional item description goes here. It can be as long or short as you like.
Created inVehicles Depot
Construction
Iron.png
20
+
Copper.png
10
+
Rubber.png
10
+
Diesel.png
5
Cargo Size20
Fuel Tank5
Fuel Consumption0.4 / 60 Clock.png
Maintenance1.6 / 60 Clock.png
Compatible MinerSmall Excavator
Excavator
Tree Harvester
Large Tree Harvester
VariantsTruck
Haul Truck (Dump)
Haul Truck (Tank)
Example usage:
{{Infobox vehicle
| Name            = Pickup Truck
| Image           = (if not the same as Name.png)
| Description     = Optional item description goes here. It can be as long or short as you like.
| CreatedIn       = [[Vehicles Depot]]
| Recipe          = 
  {{Machine Recipe
    | Input1Name  = Iron
    | Input1Qty   = 20
    | Input2Name  = Copper
    | Input2Qty   = 10
    | Input3Name  = Rubber
    | Input3Qty   = 10
    | Input4Name  = Diesel
    | Input4Qty   = 5
  }}
| CargoSize       = 20
| FuelTank        = 5
| MaxSpeed        = 10
| FuelConsumption = 0.4
| Maintenance     = 1.6
| MaintenanceII   = 99
| Miner           = [[Small Excavator]]<br>[[Excavator]]<br>[[Tree Harvester]]<br>[[Large Tree Harvester]]
| Transport       = 
| Variants        = [[Truck]]<br>[[Haul Truck (Dump)]]<br>[[Haul Truck (Tank)]]
}}
The above text is transcluded from Template:Infobox vehicle/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Please add categories and interwikis to Template:Infobox vehicle/doc. (View all subpages of this page.)