Difference between revisions of "Template:Infobox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+center the image;)
m (*make image smaller than the infobox;)
Line 34: Line 34:
 
{| style="font-size: 90%; padding: {{{tpadding|0}}}em; width: 100%" valign="top"
 
{| style="font-size: 90%; padding: {{{tpadding|0}}}em; width: 100%" valign="top"
 
|-
 
|-
{{#ifeq: {{{file|}}}|none||{{!}} {{#if: {{{file style|}}}|style="text-align:center; {{{file style}}}"}} colspan="3" {{!}} [[File:{{{file|Image-needed.png}}}|{{{width|200}}}px|{{{hovertext|{{{name|{{BASEPAGENAME}}}}}}}}]]}}
+
{{#ifeq: {{{file|}}}|none||{{!}} {{#if: {{{file style|}}}|style="text-align:center; {{{file style}}}"}} colspan="3" {{!}} [[File:{{{file|Image-needed.png}}}|{{#expr: {{{width|200}}} - 10}}px|{{{hovertext|{{{name|{{BASEPAGENAME}}}}}}}}]]}}
 
{{{lines}}}
 
{{{lines}}}
 
{{#if: {{{notes|}}}|{{!}}-
 
{{#if: {{{notes|}}}|{{!}}-

Revision as of 17:40, 1 August 2013

Infobox (name)
Homemade Image Subtitle
One Column
Two Columns
And Three
Columns
Multiple Types (Type 1) Value 1
(Type 2) Value 2
Homemade Footer

Annotations & Footnotes (notes)

This is a general infobox template, based on the old versions of {{Infobox/Part}} (Partbox) and {{Infobox/Body}} (Planetbox). See Template talk:Infobox/Part for more information about the new infoboxes.

Template:Parameter Table