Jump to content

Template:Infobox motorcycle: Difference between revisions

From Archive
Create motorcycle infobox template
 
Fix motorcycle infobox template - proper image handling
 
Line 1: Line 1:
{| class="wikitable" style="float:right; width:300px; margin:0 0 1em 1em; border-collapse:collapse;"
<noinclude>
Motorcycle infobox template. Used for displaying motorcycle specifications.
 
Usage:
<pre>
{{Infobox motorcycle
|name = Motorcycle Name
|image = [[File:Example.jpg|300px]]
|caption = Caption text
|manufacturer = Manufacturer
|production = Years
|class = Motorcycle class
|engine = Engine specs
|power = Power output
|torque = Torque specs
|transmission = Transmission type
|seat_height = Seat height
|wet_weight = Motorcycle weight
|fuel_capacity = Fuel tank capacity
}}
</pre>
 
[[Category:Templates]][[Category:Infobox templates]]
</noinclude><includeonly>
{| class="wikitable" style="float:right; width:300px; margin:0 0 1em 1em; border-collapse:collapse; background:#1a1a1a;"
|-
|-
! colspan="2" style="background:#2d2d2d; color:#fff; padding:8px; text-align:center;" | {{{name|Motorcycle}}}
! colspan="2" style="background:#2d2d2d; color:#fff; padding:8px; text-align:center; font-size:1.2em;" | {{{name|Motorcycle}}}
|-
|-
| colspan="2" style="background:#1a1a1a; padding:0; text-align:center;" | [[{{{image|File:Placeholder.jpg}}}|300px|{{{caption|Motorcycle}}}]]
| colspan="2" style="background:#1a1a1a; padding:8px; text-align:center;" | {{{image|}}}
|-
|-
! style="background:#252525; padding:6px; width:40%; text-align:left; color:#888;" | Manufacturer
| colspan="2" style="background:#1a1a1a; padding:6px; text-align:center; color:#888; font-size:0.9em;" | {{{caption|}}}
| style="background:#1a1a1a; padding:6px;" | {{{manufacturer|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Production
! style="background:#252525; padding:6px; width:40%; text-align:left; color:#aaa;" | Manufacturer
| style="background:#1a1a1a; padding:6px;" | {{{production|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{manufacturer|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Class
! style="background:#252525; padding:6px; color:#aaa;" | Production
| style="background:#1a1a1a; padding:6px;" | {{{class|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{production|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Engine
! style="background:#252525; padding:6px; color:#aaa;" | Class
| style="background:#1a1a1a; padding:6px;" | {{{engine|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{class|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Power
! style="background:#252525; padding:6px; color:#aaa;" | Engine
| style="background:#1a1a1a; padding:6px;" | {{{power|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{engine|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Torque
! style="background:#252525; padding:6px; color:#aaa;" | Power
| style="background:#1a1a1a; padding:6px;" | {{{torque|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{power|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Transmission
! style="background:#252525; padding:6px; color:#aaa;" | Torque
| style="background:#1a1a1a; padding:6px;" | {{{transmission|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{torque|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Seat Height
! style="background:#252525; padding:6px; color:#aaa;" | Transmission
| style="background:#1a1a1a; padding:6px;" | {{{seat_height|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{transmission|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Weight
! style="background:#252525; padding:6px; color:#aaa;" | Seat Height
| style="background:#1a1a1a; padding:6px;" | {{{wet_weight|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{seat_height|}}}
|-
|-
! style="background:#252525; padding:6px; color:#888;" | Fuel Capacity
! style="background:#252525; padding:6px; color:#aaa;" | Weight (wet)
| style="background:#1a1a1a; padding:6px;" | {{{fuel_capacity|}}}
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{wet_weight|}}}
|-
! style="background:#252525; padding:6px; color:#aaa;" | Fuel Capacity
| style="background:#1a1a1a; padding:6px; color:#ccc;" | {{{fuel_capacity|}}}
|}
|}
</includeonly>

Latest revision as of 00:24, 8 December 2025

Motorcycle infobox template. Used for displaying motorcycle specifications.

Usage:

{{Infobox motorcycle
|name = Motorcycle Name
|image = [[File:Example.jpg|300px]]
|caption = Caption text
|manufacturer = Manufacturer
|production = Years
|class = Motorcycle class
|engine = Engine specs
|power = Power output
|torque = Torque specs
|transmission = Transmission type
|seat_height = Seat height
|wet_weight = Motorcycle weight
|fuel_capacity = Fuel tank capacity
}}