Template:Infobox vehicle: Difference between revisions
(added colours parameter) |
(infobox design changes. added link to vehicle types) |
||
Line 3: | Line 3: | ||
| image = {{#if: {{{image|}}}|[[File:{{{image}}}|{{{image_size|294px}}}|link={{filepath:{{{image}}}}}]]}} | | image = {{#if: {{{image|}}}|[[File:{{{image}}}|{{{image_size|294px}}}|link={{filepath:{{{image}}}}}]]}} | ||
| caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}} | | caption = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}} | ||
| header1 = {{#if:{{{manufacturer|}}}{{{vehicle_type|{{{type|}}}}}}{{{weight|}}}{{{engine_power|{{{power|}}}}}}{{{engine_loudness|{{{loudness|}}}}}}| | |bodystyle = -moz-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; -webkit-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; | ||
| headerstyle = background-color: #{{Infobox nc|{{{name_colour|}}}}}; color: #{{Infobox nc|{{{name_text_colour|}}}|text}}; | |||
| labelstyle = background-color:#eee; width:50%; | |||
| datastyle = width:50%; | |||
| header1 = {{#if:{{{manufacturer|}}}{{{vehicle_type|{{{type|}}}}}}{{{weight|}}}{{{engine_power|{{{power|}}}}}}{{{engine_loudness|{{{loudness|}}}}}}|General}} | |||
| label2 = Manufacturer | | label2 = Manufacturer | ||
Line 11: | Line 15: | ||
| label3 = Vehicle type | | label3 = Vehicle type | ||
| data3 = {{{vehicle_type|{{{type|}}}}}} | | data3 = {{#if:{{{vehicle_type|{{{type|}}}}}}|[[Vehicles Guide#Types|{{{vehicle_type|{{{type|}}}}}}]]}} | ||
| label4 = Weight | | label4 = Weight |
Revision as of 13:27, 12 August 2018
Infobox used for vehicles.
Usage
name | |
---|---|
caption | |
General | |
Manufacturer | manufacturer |
Vehicle type | vehicle_type |
Weight | weight |
Engine power | engine_power hp |
Engine loudness | engine_loudness |
Body | |
Seats | seats |
Doors | doors |
Trunk storage | trunk_storage |
Variants | |
Service | service |
Style | style |
Available colours | colors |
{{Infobox vehicle | name = | name_colour = | name_text_colour = | image = | image_caption = <!--GENERAL--> | manufacturer = | vehicle_type = | weight = | engine_power = | engine_loudness = <!--BODY--> | seats = | doors = | trunk_storage = | glove_box = <!--VARIANTS--> | service = | style = | color = <!--Technical details--> | model = |item_id = }}
Documentation transcluded from Template:Infobox vehicle/doc.
Editors can experiment in this template's sandbox (create)
Editors can experiment in this template's sandbox (create)