Infobox/Vehicle – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| 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>
 
<noinclude>
 
== Usage ==
== Usage ==
{| style="background: transparent; border: none;"
{| style="width: 100%"
|<pre>
|- style="background-color: #EEE"
{{Infobox_afv
! Code
|title =  
! Result
|image =  
|-
|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>
|}
|}


<dl>
{{Feature|informative|Picture thumbnail width is '''230px'''. Image must be in form Imagename.jpg, without any tags.}}
<dt>Note:</dt>
<dd>Picture thumbnail width is 230px. Image must be in form Imagename.jpg, without any tags.</dd>
<dt>
</dl>
 
{{Important|Please do not try usage of infobox in this page, do it in you sandbox or in a game unit article.}}


[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]</noinclude>
</noinclude>

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.