Difference between revisions of "Template:Infobox vehicle"

From Captain of Industry Wiki
Jump to: navigation, search
(Created page with "<includeonly><!-- --><div style="float:right; clear: right;"><!-- --><div style="display:inline-block; min-width: 250px; max-width: 350px; border: 3px solid rgba(252,162,58,1); border-radius: 15px; margin:10px; font-size:14px; background-color: rgba(46,46,46,1);"><!-- --><div style="width: 100%; vertical-align: middle; text-align: center; background-color: rgba(0,0,0,1); font-size: 20px; color: rgba(252,162,58,1); text-shadow: 0 0 10px rgba(255,162,58,.7); font-family:...")
 
Line 3: Line 3:
--><div style="display:inline-block; min-width: 250px; max-width: 350px; border: 3px solid rgba(252,162,58,1); border-radius: 15px; margin:10px; font-size:14px; background-color: rgba(46,46,46,1);"><!--
--><div style="display:inline-block; min-width: 250px; max-width: 350px; border: 3px solid rgba(252,162,58,1); border-radius: 15px; margin:10px; font-size:14px; background-color: rgba(46,46,46,1);"><!--
   --><div style="width: 100%; vertical-align: middle; text-align: center; background-color: rgba(0,0,0,1); font-size: 20px; color: rgba(252,162,58,1); text-shadow: 0 0 10px rgba(255,162,58,.7); font-family: Georgia, Liberation Serif, Times, serif; border-radius: 15px 15px 0 0; border-bottom: 3px solid rgba(252,162,58,1); padding: 10px 0;"><!--
   --><div style="width: 100%; vertical-align: middle; text-align: center; background-color: rgba(0,0,0,1); font-size: 20px; color: rgba(252,162,58,1); text-shadow: 0 0 10px rgba(255,162,58,.7); font-family: Georgia, Liberation Serif, Times, serif; border-radius: 15px 15px 0 0; border-bottom: 3px solid rgba(252,162,58,1); padding: 10px 0;"><!--
         -->{{#if: {{{Name|}}} | {{{Name}}} | Unknown Item }}<!--
         -->{{#if: {{{Name|}}} | {{{Name}}} | Unknown Vehicle }}<!--
   --></div><!--
   --></div><!--
   --><div style="text-align: center; padding: 10px 10px 0;"><!--
   --><div style="text-align: center; padding: 10px 10px 0;"><!--
Line 9: Line 9:
       --><div style="font-size:16px; color: rgba(255,255,255,1); padding: 0px 0px 10px 0px;">''“{{{Description}}}”''</div><!--
       --><div style="font-size:16px; color: rgba(255,255,255,1); padding: 0px 0px 10px 0px;">''“{{{Description}}}”''</div><!--
     -->}}<!--
     -->}}<!--
     -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder material}}.png}}]]<br/><!--
     -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder vehicle}}.png}}]]<br/><!--
   --></div><!--
   --></div><!--
   --><div style="padding: 10px;"><!--
   --><div style="padding: 10px;"><!--
     --><div style="vertical-align:top; width: 100%;"><!--   
     --><div style="vertical-align:top; width: 100%;"><!--   
       --><table style="border-collapse: collapse; border-spacing: 0 8px; flex-grow:1; line-height:16px; white-space:nowrap; width: 100%"><!--
       --><table style="border-collapse: collapse; border-spacing: 0 8px; flex-grow:1; line-height:16px; white-space:nowrap; width: 100%"><!--
        -->{{#if:{{{Type|}}}|<!--
          --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
            --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Type</td><!--
            --><td style="padding: 5px 0 5px 5px;">{{{Type}}}</td><!--
          --></tr>}}<!--
         -->{{#if:{{{CreatedIn|}}}|<!--
         -->{{#if:{{{CreatedIn|}}}|<!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
Line 24: Line 19:
             --><td style="padding: 5px 0 5px 5px;">{{{CreatedIn}}}</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{CreatedIn}}}</td><!--
           --></tr>}}<!--
           --></tr>}}<!--
         -->{{#if:{{{UsedIn|}}}|<!--
         -->{{#if:{{{StorageSize|}}}|<!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
             --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Used in</td><!--
             --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Used in</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{UsedIn}}}</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{UsedIn}}}</td><!--
           --></tr>}}<!--
           --></tr>}}<!--
         -->{{#if:{{{TransportedBy|}}}|<!--
         -->{{#if:{{{FuelTank|}}}|<!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
             --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Transported by</td><!--
             --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Transported by</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{TransportedBy}}}</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{TransportedBy}}}</td><!--
           --></tr>}}<!--         
           --></tr>}}<!--         
         -->{{#if:{{{StoredIn|}}}|<!--
         -->{{#if:{{{Maintenance|}}}|<!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
           --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
             --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Stored in</td><!--
             --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Stored in</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{StoredIn}}}</td><!--
             --><td style="padding: 5px 0 5px 5px;">{{{StoredIn}}}</td><!--
           --></tr>}}<!--         
           --></tr>}}<!--         
        -->{{#if:{{{StartingQty|}}}|<!--
          --><tr style="border-top: 1px solid white; vertical-align: top;"><!--
            --><td style="text-align: right; font-weight: bold; padding: 5px 5px 5px 0;">Starting amount</td><!--
            --><td style="padding: 5px 0 5px 5px;">{{{StartingQty}}}</td><!--
          --></tr>}}<!--
       --></table><!--
       --></table><!--
     --></div><!--
     --></div><!--

Revision as of 21:17, 12 January 2022

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Pickup Truck
“Optional item description goes here. It can be as long or short as you like.”
Pickup.png
Created inVehicles Depot
Transported by{{{TransportedBy}}}
Stored in{{{StoredIn}}}
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.)