Difference between revisions of "Template:Infobox"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+extra image;)
m (+image description;)
Line 24: Line 24:
 
{{Parameter row|file|Box image. When set to <tt>none</tt> doesn't display any image.|[[:File:Image needed.svg]]}}
 
{{Parameter row|file|Box image. When set to <tt>none</tt> doesn't display any image.|[[:File:Image needed.svg]]}}
 
{{Parameter row|file style|CSS style for the infobox image.|Not set}}
 
{{Parameter row|file style|CSS style for the infobox image.|Not set}}
 +
{{Parameter row|thumb|An image description displayed below the image|Not set}}
 
{{Parameter row|file extra1|An extra image displayed below the first image|Not set}}
 
{{Parameter row|file extra1|An extra image displayed below the first image|Not set}}
 
{{Parameter row|thumb extra1|An image description displayed below the first extra image|Not set}}
 
{{Parameter row|thumb extra1|An image description displayed below the first extra image|Not set}}
Line 40: Line 41:
 
| colspan="3" style="background: #ccc; font-size: large; padding: .3em; text-align: center; font-weight: bold;"| {{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}
 
| colspan="3" style="background: #ccc; font-size: large; padding: .3em; text-align: center; font-weight: bold;"| {{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}
 
|-
 
|-
{{#ifeq: {{{file|}}}|none||{{!}} {{#if: {{{file style|}}}|style="{{{file style}}}"}} colspan="3" {{!}} [[File:{{#if: {{{file|}}}|{{{file}}}|Image needed.svg}}|{{#expr: {{{width|200}}} - 10}}x{{#expr: {{{width|200}}} - 10}}px|center|{{{hovertext|{{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}}}}]]}}{{if||{{{file extra1|}}}|
+
{{#ifeq: {{{file|}}}|none||{{!}} {{#if: {{{file style|}}}|style="{{{file style}}}"}} colspan="3" {{!}} [[File:{{#if: {{{file|}}}|{{{file}}}|Image needed.svg}}|{{#expr: {{{width|200}}} - 10}}x{{#expr: {{{width|200}}} - 10}}px|center|{{{hovertext|{{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}}}}]]}}{{if||{{{thumb|}}}|
 +
{{Infobox/Line|style=text-align:center;|{{{thumb}}} }} }}{{if||{{{file extra1|}}}|
 
{{{!}}
 
{{{!}}
 
{{!}} [[File:{{{file extra1}}}|{{#expr: {{{width|200}}} / 2 - 10}}x{{#expr: {{{width|200}}} / 2 - 10}}px|center|{{#if: {{{thumb extra1|}}}|{{{thumb extra1}}}}}]]
 
{{!}} [[File:{{{file extra1}}}|{{#expr: {{{width|200}}} / 2 - 10}}x{{#expr: {{{width|200}}} / 2 - 10}}px|center|{{#if: {{{thumb extra1|}}}|{{{thumb extra1}}}}}]]
Line 46: Line 48:
 
{{!}}-
 
{{!}}-
 
{{!}} {{#if: {{{thumb extra1|}}}|{{{thumb extra1}}}}}
 
{{!}} {{#if: {{{thumb extra1|}}}|{{{thumb extra1}}}}}
{{!}} {{#if: {{{thumb extra2|}}}|{{{thumb extra2}}}}}
+
{{!}} {{#if: {{{file extra2|}}}|{{#if: {{{thumb extra2|}}}|{{{thumb extra2}}}}}}}
 
{{!}}}}}
 
{{!}}}}}
 
{{{lines}}}
 
{{{lines}}}

Revision as of 12:38, 17 December 2014

Infobox (name)
Hover Text (hovertext)
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

The Category:Infobox templates contains all templates which directly use this template.