Template:Infobox vehicle: Difference between revisions

No edit summary
No edit summary
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 "|-" -->
|title        = Character
{{pipe}} colspan="2" style="background: #FFFFFF; color: #000000;"{{pipe}}
|titlestyle  = font-size: 90%;
[[Image:{{{front_image}}}|{{{image_size}}}px|center]]<center>
text-transform: uppercase;
{{#if:{{{rear_image|}}}|{{{caption}}}<br>(<small>[[:Image:{{{rear_image|}}}|Rear quarter view{{#if:{{{rear_image_add_caption|}}}|&#59;&#32;{{{rear_image_add_caption|}}}|}}]]</small>)&#46;|{{{caption}}}&#46;}}</center>|
background-color: #EEE;
{{pipe}}-
border: 1px solid #AAA;
border-bottom: none;
|above = {{PAGENAME}}
|abovestyle = font-size: 150%;
 
|image        = {{#if:{{{front_image|}}}|[[File:{{{front_image}}}|{{#if:{{{image_size|}}}|{{{image_size|}}}px|170px}}|center|{{{caption}}}]]}}{{#if:{{{rear_image|}}}|(<small>[[:File:{{{rear_image|}}}{{!}}Rear quarter view{{#if:{{{rear_image_add_caption|}}}|&#59;&#32;{{{rear_image_add_caption|}}}}}]]</small>)&#46;}}
|imagestyle  = {{{imagestyle|}}}
|caption      = {{{caption|}}}
|captionstyle = {{{captionstyle|}}}
 
|headerstyle  = background:#444; color: #fff;
|labelstyle  = background:#ddd;
|datastyle    =
 
|header1 =
 
|label1  = Appearances
|data1  = {{#ifexist: {{GameLong|{{{game_1|}}}}}|{{appearance|{{{game_1|}}}}}{{#ifexist: {{GameLong|{{{game_2|}}}}}|<br />{{appearance|{{{game_2|}}}}}}}{{#ifexist: {{GameLong|{{{game_3|}}}}}|<br />{{appearance|{{{game_3|}}}}}}}{{#ifexist: {{GameLong|{{{game_4|}}}}}|<br />{{appearance|{{{game_4|}}}}}}}{{#ifexist: {{GameLong|{{{game_5|}}}}}|<br />{{appearance|{{{game_5|}}}}}}}{{#ifexist: {{GameLong|{{{game_6|}}}}}|<br />{{appearance|{{{game_6|}}}}}}}{{#ifexist: {{GameLong|{{{game_7|}}}}}|<br />{{appearance|{{{game_7|}}}}}}}{{#ifexist: {{GameLong|{{{game_8|}}}}}|<br />{{appearance|{{{game_8|}}}}}}}{{#ifexist: {{GameLong|{{{game_9|}}}}}|<br />{{appearance|{{{game_9|}}}}}}}{{#ifexist: {{GameLong|{{{game_10|}}}}}|<br />{{appearance|{{{game_10|}}}}}}}
|
|
{{#ifexist: {{appearances|}} | [[Appearance::{{game|{{{appearances|}}}}}]] [[Category:Fix Games]]| {{{appearances|}}} [[Category:Fix Games]]}}
}}
}}
{{#if:{{{aka|}}}|
 
{{pipe}}-<!-- Representing "|-" -->
|label2  = Also known as
!width="10%" style="text-align:center;"{{pipe}}'''Also known as'''
|data2  = {{{aka|}}}
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{aka|}}}|
 
{{pipe}}-
|label3  = Vehicle type
|
|data3  = {{{vehicle_type|}}}
}}
 
{{#if:{{{vehicle_type|}}}|
|label4  = Body style
{{pipe}}-
|data4  = {{{body_style|}}}
!width="10%" style="text-align:center;"{{pipe}}'''Vehicle type'''
 
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{vehicle_type|}}}|
|label5  = Capacity
{{pipe}}-
|data5  = {{{capacity|}}}
|
 
}}
|label6  = Manufacturer
{{#if:{{{body_style|}}}|
|data6  = {{{manufacturer|}}}
{{pipe}}-
 
!width="10%" style="text-align:center;"{{pipe}}'''Body style'''
|label7  = How/Where to get it
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{body_style|}}}|
|data7  = {{{getting_it|}}}
{{pipe}}-
 
|
|label8  = Related vehicle(s)
}}
|data8  = {{{related|}}}
{{#if:{{{capacity|}}}|
 
{{pipe}}-
}}</includeonly><noinclude>
!width="10%" style="text-align:center;"{{pipe}}'''Capacity'''
 
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{capacity|}}}|
{{doc}}
{{pipe}}-
 
|
[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>
}}
{{#if:{{{appearances|}}}|
{{pipe}}-
!width="10%" style="text-align:center;"{{pipe}}'''Appearance(s)'''
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{appearances|}}}|
{{pipe}}-
|
}}
{{#if:{{{manufacturer|}}}|
{{pipe}}-
!width="10%" style="text-align:center;"{{pipe}}'''Manufacturer'''
{{pipe}}width="20%" style="text-align:left;"{{pipe}}{{{manufacturer|}}}|
{{pipe}}-
|
}}
{{#if:{{{getting_it|}}}|
{{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>

Revision as of 18:32, 12 June 2012


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
}}