Template:Infobox vehicle: Difference between revisions

(The old syntax leaves a blank line if no {{{rear_image}}} value is included. Merged |caption to |image.)
mNo edit summary
 
(21 intermediate revisions by 2 users not shown)
Line 11: Line 11:
|abovestyle = font-size: 150%;
|abovestyle = font-size: 150%;


|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>)<br>{{{caption|}}}&#46;|{{{caption|}}}&#46;}}
|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}}}| ]]
 
|imagestyle  = {{{imagestyle|}}}
|imagestyle  = {{{imagestyle|}}}
|captionstyle = {{{captionstyle|}}}
|captionstyle = {{{captionstyle|}}}
Line 22: Line 23:


|label1  = Appearance(s)
|label1  = Appearance(s)
|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: {{GameLong|{{{game_11|}}}}}|<br />{{appearance|{{{game_11|}}}}}}}{{#ifexist: {{GameLong|{{{game_12|}}}}}|<br />{{appearance|{{{game_12|}}}}}}}{{#ifexist: {{GameLong|{{{game_13|}}}}}|<br />{{appearance|{{{game_13|}}}}}}}{{#ifexist: {{GameLong|{{{game_14|}}}}}|<br />{{appearance|{{{game_14|}}}}}}}{{#ifexist: {{GameLong|{{{game_15|}}}}}|<br />{{appearance|{{{game_15|}}}}}}}
|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]]}}
|
{{#ifexist: {{appearances|}} | [[Appearance::{{game|{{{appearances|}}}}}]] [[Category:Fix Games]]| {{{appearances|}}} [[Category:Fix Games]]}}
}}


|label2  = Also known as
|label2  = Also known as
Line 48: Line 46:
|data8  = {{{related|}}}
|data8  = {{{related|}}}


}}</includeonly><noinclude>
}}[[Type::Vehicle| ]]</includeonly><noinclude>


{{doc}}
{{doc}}


[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox Templates|{{PAGENAME}}]]</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
}}