Difference between revisions of "Template:Infobox"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*make the images not so tall;)
m (*use image needed svg;)
Line 4: Line 4:
 
|tpadding=0
 
|tpadding=0
 
|name=Infobox (name)
 
|name=Infobox (name)
|file=Image-needed.png
+
|file=Image needed.svg
 
|hovertext=Hover Text (hovertext)
 
|hovertext=Hover Text (hovertext)
 
|lines=
 
|lines=
Line 22: Line 22:
 
{{Parameter Row|tpadding|Padding of the table in <tt>em</tt>|<tt>0</tt>}}
 
{{Parameter Row|tpadding|Padding of the table in <tt>em</tt>|<tt>0</tt>}}
 
{{Parameter Row|name|Box title.|Base page name}}
 
{{Parameter Row|name|Box title.|Base page name}}
{{Parameter Row|file|Box image. When set to <tt>none</tt> doesn't display any image.|[[:File:Image-needed.png]]}}
+
{{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|hovertext|Image hover text.|<tt>name</tt> or base page name}}
 
{{Parameter Row|hovertext|Image hover text.|<tt>name</tt> or base page name}}
Line 34: Line 34:
 
| 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.png}}|{{#expr: {{{width|200}}} - 10}}x{{#expr: {{{width|200}}} - 10}}px|center|{{{hovertext|{{#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}}}}}}}]]}}
 
{{{lines}}}
 
{{{lines}}}
 
{{#if: {{{notes|}}}|{{!}}-
 
{{#if: {{{notes|}}}|{{!}}-

Revision as of 14:44, 27 December 2013

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