Infobox/Vehicle – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix description)
m (Some wiki formatting)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| style="width:286px; border: 1px solid #AAAAAA; line-height:140%; border-spacing:0; background-color:white; font-size: 95%; float:right;"
<includeonly>{| class="wikitable float-right" style="font-size: 0.85em; width: 286px"
|-
|-
|colspan="2" style="text-align: center; background-color: #6E8B3D; color: #FFFFFF; padding:3px 5px 4px; font-size: 120%;"| '''{{{Name|{{PAGENAME}}}}}'''
! colspan="2" style="background-color: #6E8B3D; color: #FFF; padding: 0.5em; font-size: 120%;" | '''{{{Name|{{PAGENAME}}}}}'''
|-
|-
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} colspan="2" style="text-align: center; background-color: #FFFFFF; margin-top: 3px;" {{!}} [[Image:{{{image}}}|{{{size|286px}}}|frameless|center]]}}
{{!}} colspan="2" style="text-align: center; background-color: #FFF; padding: 0" {{!}} [[File:{{{image}}}|{{{size|286px}}}|frameless|center]]}}
|-
|-
{{#if: {{{creator|}}}|
{{#if: {{{creator|}}}|
{{!}} colspan="2" style="line-height:120%; text-align:center; font-size:90%; padding: 5px; background-color: #E6E6E6;" {{!}} {{{creator}}} }}
! colspan="2" style="line-height:1.2em; padding: 0.5em; text-align:center" {{!}} {{{creator}}} }}
|-
|-
{{#if: {{{crew|}}}|
{{#if: {{{crew|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Crew
! Crew
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{crew}}} }}
{{!}} {{{crew}}} }}
|-
|-
{{#if: {{{armor|}}}|
{{#if: {{{armor|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Armor
! Armor
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{armor}}} }}
{{!}} {{{armor}}} }}
|-
|-
{{#if: {{{speed|}}}|
{{#if: {{{speed|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Speed
! Speed
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{speed}}} }}
{{!}} {{{speed}}} }}
|-
|-
{{#if: {{{weapons|}}}|
{{#if: {{{weapons|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Weapons
! Weapons
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{weapons}}} }}
{{!}} {{{weapons}}} }}
|-
|-
{{#if: {{{vehicleclasses|}}}|
{{#if: {{{vehicleclasses|}}}|
{{!}} style="background-color: #E6E6E6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} Vehicle classes
! Vehicle classes
{{!}} style="background-color: #F6F6F6; border-top:1px solid #AAAAAA; padding:3px 5px 4px;" {{!}} {{{vehicleclasses}}} }}
{{!}} {{{vehicleclasses}}} }}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
== Usage ==
== Usage ==
{| style="background: transparent; border: none"
{| style="width: 100%"
|<pre>
|- style="background-color: #EEE"
{{Infobox_afv
! Code
|image =  
! Result
|creator =  
|-
|crew =  
| <pre>{{Infobox/Vehicle
|armor =  
|creator = BI Studios
|speed =  
|image = Ofp m113.jpg
|weapons =  
|crew = 3 [[Crew|crew]] soldiers
|vehicleclasses =  
|armor = 150
|speed = 60
|weapons = Browning ({{ofp}})<br>M2 ({{arma1}})
|vehicleclasses = armored ({{ofp}})<br>tracked ({{arma1}})
}}</pre>
| {{Infobox/Vehicle
|creator = BI Studios
|image = Ofp m113.jpg
|crew = 3 [[Crew|crew]] soldiers
|armor = 150
|speed = 60
|weapons = Browning ({{ofp}})<br>M2 ({{arma1}})
|vehicleclasses = armored ({{ofp}})<br>tracked ({{arma1}})
}}
}}
</pre>
|}
|}



Latest revision as of 10:26, 25 March 2024

Usage

Code Result
{{Infobox/Vehicle
|creator = BI Studios
|image = Ofp m113.jpg
|crew = 3 [[Crew|crew]] soldiers
|armor = 150
|speed = 60
|weapons = Browning ({{ofp}})<br>M2 ({{arma1}})
|vehicleclasses = armored ({{ofp}})<br>tracked ({{arma1}})
}}
Infobox/Vehicle
Ofp m113.jpg
BI Studios
Crew 3 crew soldiers
Armor 150
Speed 60
Weapons Browning (Operation Flashpoint)
M2 (Armed Assault)
Vehicle classes armored (Operation Flashpoint)
tracked (Armed Assault)
Picture thumbnail width is 230px. Image must be in form Imagename.jpg, without any tags.