Template:Infobox vehicle: Difference between revisions

No edit summary
mNo edit summary
 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{|class="infobox bordered vcard" style="width: 23em; text-align: left; font-size: 89%;"
<includeonly>{{infobox
!colspan="2" style="background: #FFFFFF; color: #000000;"|<center>'''{{{name}}}'''</center>
|name        =  
{{#if:{{{front_image|}}}|
|bodystyle    = background-color: #F0F0FA;
{{pipe}}-<!-- Representing "|-" -->{{pipe}}colspan="2" style="background: #FFFFFF; color: #000000;"{{pipe}}
|title        = Vehicle
[[Image:{{{front_image}}}|{{{image_size}}}px|center]]<center>{{{caption}}}
|titlestyle  = font-size: 90%;
{{#if:{{{rear_image|}}}|<br>(<small>[[:Image:{{{rear_image|}}}|Rear quarter view{{#if:{{{rear_image_add_caption|}}}|&#59;&#32;{{{rear_image_add_caption|}}}|}}]]</small>)&#46;|&#46;}}</center>|
text-transform: uppercase;
{{pipe}}-
background-color: #EEE;
|
border: 1px solid #AAA;
}}
border-bottom: none;
{{#if:{{{aka|}}}|
|above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{pipe}}-<!-- Representing "|-" -->
|abovestyle = font-size: 150%;
!width="10%" style="text-align:center;"{{pipe}}'''Also known as'''
 
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{aka|}}}|
|image        = {{#if:{{{front_image|}}}|[[File:{{{front_image}}}|{{#if:{{{image_size|}}}|{{{image_size|}}}px|170px}}|center|{{{caption}}}&#46;]]}}{{#if:{{{rear_image|}}}|(<small>[[:File:{{{rear_image|}}}{{!}}Rear quarter view{{#if:{{{rear_image_add_caption|}}}|&#59;&#32;{{{rear_image_add_caption|}}}}}]]</small>)|}}{{#if:{{{caption|}}}|{{#if:{{{rear_image|}}}|<br />|}}{{{caption|}}}&#46;|}}[[:File:{{{front_image}}}| ]]
{{pipe}}-
 
|
|imagestyle  = {{{imagestyle|}}}
}}
|captionstyle = {{{captionstyle|}}}
{{#if:{{{vehicle_type|}}}|
 
{{pipe}}-
|headerstyle  = background:#444; color: #fff;
!width="10%" style="text-align:center;"{{pipe}}'''Vehicle type'''
|labelstyle  = background:#ddd;
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{vehicle_type|}}}|
|datastyle    =
{{pipe}}-
 
|
|header1 =
}}
 
{{#if:{{{body_style|}}}|
|label1  = Appearance(s)
{{pipe}}-
|data1  = {{gameselect|{{{game_1|}}}|{{{game_2|}}}|{{{game_3|}}}|{{{game_4|}}}|{{{game_5|}}}|{{{game_6|}}}|{{{game_7|}}}|{{{game_8|}}}|{{{game_9|}}}|{{{game_10|}}}|{{{game_11|}}}|{{{game_12|}}}|{{{game_13|}}}|{{{game_14|}}}|{{{game_15|}}}|{{{game_16|}}}|{{{game_17|}}}|{{{game_18|}}}|{{{game_19|}}}|{{{game_20|}}}}}{{#IF: {{{games|}}} |[[Category:Fix Games]] [[Appearance::{{game|{{{games|}}}}}]] }}{{#IF: {{{appearances|}}} |[[Category:Fix Games]] [[Appearance::{{game|{{{appearances|}}}}}]] }}{{#IF: {{{game_1|}}} | | [[Category:Fix Games]]}}
!width="10%" style="text-align:center;"{{pipe}}'''Body style'''
 
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{body_style|}}}|
|label2  = Also known as
{{pipe}}-
|data2  = {{{aka|}}}
|
 
}}
|label3  = Vehicle type
{{#if:{{{capacity|}}}|
|data3  = {{{vehicle_type|}}}
{{pipe}}-
 
!width="10%" style="text-align:center;"{{pipe}}'''Capacity'''
|label4  = Body style
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{capacity|}}}|
|data4  = {{{body_style|}}}
{{pipe}}-
 
|
|label5  = Capacity
}}
|data5  = {{{capacity|}}}
{{#if:{{{appearances|}}}|
 
{{pipe}}-
|label6  = Manufacturer
!width="10%" style="text-align:center;"{{pipe}}'''Appearance(s)'''
|data6  = {{{manufacturer|}}}
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{appearances|}}}|
 
{{pipe}}-
|label7  = How/Where to get it
|
|data7  = {{{getting_it|}}}
}}
 
{{#if:{{{manufacturer|}}}|
|label8  = Related vehicle(s)
{{pipe}}-
|data8  = {{{related|}}}
!width="10%" style="text-align:center;"{{pipe}}'''Manufacturer'''
 
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{manufacturer|}}}|
}}[[Type::Vehicle| ]]</includeonly><noinclude>
{{pipe}}-
 
|
{{doc}}
}}
 
{{#if:{{{getting_it|}}}|
[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>
{{pipe}}-
!width="10%" style="text-align:center;"{{pipe}}'''How/Where to get it'''
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{getting_it|}}}|
{{pipe}}-
|
}}
{{#if:{{{related|}}}|
{{pipe}}-
!width="10%" style="text-align:center;"{{pipe}}'''Related vehicle(s)'''
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{related|}}}|
{{pipe}}-
|
}}
|}</includeonly><noinclude>{{doc}}[[Category:Infobox Templates]]</noinclude>

Latest revision as of 22:37, 22 December 2013


This documentation is imported from Template:Infobox vehicle/doc

The following code will display the vehicle infobox. The list of available inputs are provided below:

{{Infobox vehicle
| name                     = Name of vehicle.
| front_image              = Filename of lead image, or image illustrating the front quarter view of a vehicle (i.e. "Imagename.jpg").
| image_size               = Image size in pixels. Insert number only. The default width is 300 pixels.
| caption                  = Caption for lead image
| rear_image               = Filename of alternate image, usually a rear quarter image
| vehicle_type             = Vehicle class
| body_style               = Vehicle class in detail, including number of doors and body design
| capacity                 = Number of occupants the vehicle can carry, including driver and passenger
| manufacturer             = Manufacturer of the vehicle. Usually applicable for vehicles in GTA IV
| getting_it               = How or where can you get it. Only for vehicles that never spawns in the game but spawns during a mission. Or when you have other stuffs
| appearances              = List games which the vehicle is featured in
}}