Template:Infobox vehicle: Difference between revisions

From PZwiki
mNo edit summary
m (increased width)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox
|bodystyle  = width:350px; -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|}}}}};
| above      = <div style="background: #{{Infobox nc|{{{name_colour|}}}}}; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#{{Infobox nc|{{{name_text_colour|}}}|text}};"><span class="fn">{{{name|{{PAGENAME}}}}}</span></div>
| above      = <div style="background: #{{Infobox nc|{{{name_colour|}}}}}; padding: 5px; font-weight: bold; text-align: center; font-size: 120%; color:#{{Infobox nc|{{{name_text_colour|}}}|text}};"><span class="fn">{{{name|{{PAGENAME}}}}}</span></div>
| image     = {{#if: {{{image|}}}|[[File:{{{image}}}|{{{image_size|294px}}}|link={{filepath:{{{image}}}}}]]}}
| image     = {{#if: {{{image|}}}|[[File:{{{image}}}|{{{image_size|image_width|294px}}}|link={{filepath:{{{image}}}}}]]}}
 
| caption    = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}
| caption    = {{#if: {{{image_caption|}}}|''{{{image_caption|}}}''}}


|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}};
| headerstyle = background-color: #{{Infobox nc|{{{name_colour|}}}}}; color: #{{Infobox nc|{{{name_text_colour|}}}|text}};
| labelstyle = background-color:#eee; width:50%;
| labelstyle = background-color:#eee; width:50%;
| datastyle = width:50%;
| datastyle = width:50%;


| header1    = {{#if:{{{manufacturer|}}}{{{vehicle_type|{{{type|}}}}}}{{{weight|}}}{{{engine_power|{{{power|}}}}}}{{{engine_loudness|{{{loudness|}}}}}}|General}}
| header1    = {{#if:{{{manufacturer|}}}{{{vehicle_type|{{{type|}}}}}}{{{weight|}}}{{{engine_power|{{{power|}}}}}}{{{engine_loudness|{{{loudness|}}}}}}|General}}

Revision as of 15:53, 7 March 2019

[view] [edit] [history] [purge] Template documentation
Infobox used for vehicles.

Usage

name
image_width
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
Base ID Item IDs
{{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)