Difference between revisions of "Template:Infobox"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*allow file and name set to nothing and still showing defaults;)
m (+center the image;)
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:{{#if: {{{file|}}}|{{{file}}}|Image-needed.png}}|{{#expr: {{{width|200}}} - 10}}px|{{{hovertext|{{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}}}}]]}}
+
{{#ifeq: {{{file|}}}|none||{{!}} {{#if: {{{file style|}}}|style="text-align:center; {{{file style}}}"}} colspan="3" {{!}} [[File:{{#if: {{{file|}}}|{{{file}}}|Image-needed.png}}|{{#expr: {{{width|200}}} - 10}}px|center|{{{hovertext|{{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}}}}]]}}
 
{{{lines}}}
 
{{{lines}}}
 
{{#if: {{{notes|}}}|{{!}}-
 
{{#if: {{{notes|}}}|{{!}}-

Revision as of 17:12, 19 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