Difference between revisions of "Template:Moped Infobox"

From Moped Wiki
Jump to: navigation, search
(use of {{#if:}})
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>[[Category:Templates|Custom Moped Infobox]]</noinclude>
 
<noinclude>[[Category:Templates|Custom Moped Infobox]]</noinclude>

Revision as of 00:25, 29 May 2018

Moped Infobox