Difference between revisions of "Template:Moped Infobox"

From Moped Wiki
Jump to: navigation, search
m (fixed category alphabetization...doh)
(+doc)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{| class="infobox" align = "right" style="background:#F5F5F5; width: 20em; font-size: 90%; border: solid 1px #FFD700"
 
{| class="infobox" align = "right" style="background:#F5F5F5; width: 20em; font-size: 90%; border: solid 1px #FFD700"
 
|-
 
|-
! colspan="2" style="font-size: larger; text-align: center;" | {{{name}}}
+
! colspan="2" style="font-size: larger; text-align: center; width: 20em;" | {{{name|{{PAGENAME}}}}}
 
|-
 
|-
|colspan="2" style="font-size: larger; text-align: center;" | {{{image}}}
+
|colspan="2" style="font-size: larger; text-align: center;" | {{{image|}}}
 
|-
 
|-
| '''Engine''' || {{{engine}}}
+
| {{#if:{{{engine|}}}|'''Engine'''}} || {{{engine|}}}
 
|-
 
|-
|'''Cylinder''' || {{{cylinder}}}
+
| {{#if:{{{cylinder|}}}|'''Cylinder'''}} || {{{cylinder|}}}
 
|-
 
|-
| '''Carb''' || {{{carb}}}
+
| {{#if:{{{carb|}}}|'''Carb'''}} || {{{carb|}}}
 
|-
 
|-
| '''Exhaust''' || {{{exhaust}}}
+
| {{#if:{{{exhaust|}}}|'''Exhaust'''}} || {{{exhaust|}}}
 
|-
 
|-
| '''Gearing''' || {{{gearing}}}
+
| {{#if:{{{gearing|}}}|'''Gearing'''}} || {{{gearing|}}}
 
|-
 
|-
|'''Speed''' || {{{speed}}}
+
| {{#if:{{{speed|}}}|'''Speed'''}} || {{{speed|}}}
 
|-
 
|-
| '''Owner''' || {{{owner}}}
+
| {{#if:{{{owner|}}}|'''Owner'''}} || {{{owner|}}}
|}
+
|}<noinclude>
 
+
{{Moped Infobox/doc}}
<noinclude>[[Category:Templates|Custom Moped Infobox]]</noinclude>
+
[[Category:Templates|Custom Moped Infobox]]</noinclude>

Latest revision as of 00:28, 29 May 2018

Moped Infobox
Documentation icon Documentation

This template adds an infobox to Moped pages.

Usage

{{Moped Infobox
|name = 
|image = [[File:|150px]]
|engine = 
|cylinder = 
|carb = 
|exhaust = 
|gearing = 
|speed = 
|owner = 
}}

The 'owner' field is meant for custom mopeds.