Difference between revisions of "Template:Infobox vehicle"

From Captain of Industry Wiki
Jump to: navigation, search
(don't auto-cat pages outside of namespace #0)
m
 
(15 intermediate revisions by 6 users not shown)
Line 2: Line 2:
--><div class="infobox-wrapper"><!--
--><div class="infobox-wrapper"><!--
--><div class="outer-box"><!--
--><div class="outer-box"><!--
   --><div class="inner-title"><!--
   --><div class="inner-header"><!--
        -->{{#if: {{{Name|}}} | {{{Name}}} | Unknown Vehicle }}<!--
    --><div class="title"><!--
      -->{{#if: {{{Name|}}}<!--
        -->| {{{Name}}}<!--
          ** This variable is used in footer template **
          -->{{#vardefine:game_object_type|vehicle}}<!--
        -->| Unknown Vehicle }}<!--
    --></div><!--
    --><div class="tier"><!--
      -->{{#if: {{{Tier|}}} | T{{{Tier}}} }}<!--
    --></div><!--
   --></div><!--
   --></div><!--
   --><div class="inner-main"><!--
   --><div class="inner-main"><!--
    -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder vehicle}}.png}}]]<br/><!--
     -->{{#if: {{{Description|}}} | <!--
     -->{{#if: {{{Description|}}} | <!--
       --><div class="description">''“{{{Description}}}”''</div><!--
       --><div class="description">{{{Description}}}</div><!--
     -->}}<!--
     -->}}<!--
    -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder vehicle}}.png}}]]<br/><!--
   --></div><!--
   --></div><!--
   --><div class="inner-table"><!--
   --><div class="inner-table"><!--
Line 19: Line 28:
             --><td class="table-td-right">{{{CreatedIn}}}</td><!--
             --><td class="table-td-right">{{{CreatedIn}}}</td><!--
           --></tr>}}<!--
           --></tr>}}<!--
        -->{{#if:{{{Recipe|}}}|<!--
          --><tr class="table-tr"><!--
            --><td class="table-td-left">Construction</td><!--
            --><td class="table-td-right">{{{Recipe}}}</td><!--
          --></tr>}}<!--
         -->{{#if:{{{CargoSize|}}}|<!--
         -->{{#if:{{{CargoSize|}}}|<!--
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
Line 27: Line 41:
           --><tr class="table-tr"><!--
           --><tr class="table-tr"><!--
             --><td class="table-td-left">Fuel Tank</td><!--
             --><td class="table-td-left">Fuel Tank</td><!--
             --><td class="table-td-right">{{{FuelTank}}} [[File:Diesel.png|14px]]</td><!--
             --><td class="table-td-right">{{{FuelTank}}} {{infoicon|{{#if:{{{Fuel|}}}|{{{Fuel}}}|Diesel}}|icononly=yes}}</td><!--
          --></tr>}}<!--
        -->{{#if:{{{MaxSpeed|}}}|<!--
          --><tr class="table-tr"><!--
            --><td class="table-td-left">Max Speed</td><!--
            --><td class="table-td-right">{{{MaxSpeed}}}</td><!--
          --></tr>}}<!-- 
        -->{{#if:{{{FuelConsumption|}}}|<!--
          --><tr class="table-tr"><!--
            --><td class="table-td-left">Fuel Consumption</td><!--
            --><td class="table-td-right">{{{FuelConsumption}}} {{infoicon|{{#if:{{{Fuel|}}}|{{{Fuel}}}|Diesel}}|icononly=yes}}{{Time}}</td><!--
           --></tr>}}<!--         
           --></tr>}}<!--         
         -->{{#if:{{{Maintenance|}}}|<!--
         -->{{#if:{{{Maintenance|}}}|<!--
           --><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}}} / 60&nbsp;[[File:Clock.png|link=|16x16px]]</td><!--
             --><td class="table-td-right">{{{Maintenance}}} {{#ifeq:{{lc:{{{Maintenance}}}}} | none | | {{infoicon|Maintenance I|icononly=yes}} {{Time}} }}</td><!--
           --></tr>}}<!--         
           --></tr>}}<!--         
        -->{{#if:{{{MaintenanceII|}}}|<!--
          --><tr class="table-tr"><!--
            --><td class="table-td-left">Maintenance II</td><!--
            --><td class="table-td-right">{{{MaintenanceII}}} {{#ifeq:{{lc:{{{MaintenanceII}}}}} | none | | {{infoicon|Maintenance II|icononly=yes}} {{Time}} }}</td><!--
          --></tr>}}<!--       
        -->{{#if:{{{Miner|}}}|<!--
          --><tr class="table-tr"><!--
            --><td class="table-td-left">Compatible Miner</td><!--
            --><td class="table-td-right">{{{Miner}}}</td><!--
          --></tr>}}<!--         
        -->{{#if:{{{Transport|}}}|<!--
          --><tr class="table-tr"><!--
            --><td class="table-td-left">Compatible<br>Transport</td><!--
            --><td class="table-td-right">{{{Transport}}}</td><!--
          --></tr>}}<!--         
        -->{{#if:{{{Variants|}}}|<!--
          --><tr class="table-tr"><!--
            --><td class="table-td-left">Variants</td><!--
            --><td class="table-td-right">{{{Variants}}}</td><!--
          --></tr>}}<!--         
       --></table><!--
       --></table><!--
     --></div><!--
     --></div><!--

Latest revision as of 08:27, 22 January 2024

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
Max Speed10
Fuel Consumption0.4 / 60 Clock.png
Maintenance1.6 / 60 Clock.png
Maintenance II99 / 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.)