Difference between revisions of "Template:Infobox vehicle"
From Captain of Industry Wiki
ABravePanda (talk | contribs) |
Thadius856 (talk | contribs) (refactor for TemplateStyles extension) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><templatestyles src="Template:Infobox material/styles.css" /><!-- | ||
--><div | --><div class="infobox-wrapper"><!-- | ||
--><div | --><div class="outer-box"><!-- | ||
--><div | --><div class="inner-title"><!-- | ||
-->{{#if: {{{Name|}}} | {{{Name}}} | Unknown Vehicle }}<!-- | -->{{#if: {{{Name|}}} | {{{Name}}} | Unknown Vehicle }}<!-- | ||
--></div><!-- | --></div><!-- | ||
--><div | --><div class="inner-main"><!-- | ||
-->{{#if: {{{Description|}}} | <!-- | -->{{#if: {{{Description|}}} | <!-- | ||
--><div | --><div class="description">''“{{{Description}}}”''</div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder vehicle}}.png}}]]<br/><!-- | -->[[File:{{#if: {{{Image|}}} | {{{Image}}} | {{#if: {{{Name|}}} | {{{Name}}} | Placeholder vehicle}}.png}}]]<br/><!-- | ||
--></div><!-- | --></div><!-- | ||
--><div | --><div class="inner-table"><!-- | ||
--><div | --><div class="inner-inner-table"><!-- | ||
--><table | --><table class="table"><!-- | ||
-->{{#if:{{{CreatedIn|}}}|<!-- | -->{{#if:{{{CreatedIn|}}}|<!-- | ||
--><tr | --><tr class="table-tr"><!-- | ||
--><td | --><td class="table-td-left">Created in</td><!-- | ||
--><td | --><td class="table-td-right">{{{CreatedIn}}}</td><!-- | ||
--></tr>}}<!-- | --></tr>}}<!-- | ||
-->{{#if:{{{CargoSize|}}}|<!-- | -->{{#if:{{{CargoSize|}}}|<!-- | ||
--><tr | --><tr class="table-tr"><!-- | ||
--><td | --><td class="table-td-left">Cargo Size</td><!-- | ||
--><td | --><td class="table-td-right">{{{CargoSize}}}</td><!-- | ||
--></tr>}}<!-- | --></tr>}}<!-- | ||
-->{{#if:{{{FuelTank|}}}|<!-- | -->{{#if:{{{FuelTank|}}}|<!-- | ||
--><tr | --><tr class="table-tr"><!-- | ||
--><td | --><td class="table-td-left">Fuel Tank</td><!-- | ||
--><td | --><td class="table-td-right">{{{FuelTank}}} [[File:Diesel.png|14px]]</td><!-- | ||
--></tr>}}<!-- | --></tr>}}<!-- | ||
-->{{#if:{{{Maintenance|}}}|<!-- | -->{{#if:{{{Maintenance|}}}|<!-- | ||
--><tr | --><tr class="table-tr"><!-- | ||
--><td | --><td class="table-td-left">Maintenance</td><!-- | ||
--><td | --><td class="table-td-right">{{{Maintenance}}} / 60 🕓</td><!-- | ||
--></tr>}}<!-- | --></tr>}}<!-- | ||
--></table><!-- | --></table><!-- | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
--></div><!-- | --></div><!-- | ||
--></includeonly><noinclude>{{documentation}}</noinclude> | --></includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 12:19, 13 January 2022
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Pickup Truck
Created in | Vehicles Depot |
Cargo Size | 20 |
Fuel Tank | 5 |
Maintenance | 1.6 / 60 🕓 |
{{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.)
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.)