Difference between revisions of "Template:Infobox"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (*is now moved;)
(+option to hide image;)
Line 22: Line 22:
 
{{ParameterRow|tpadding|Padding of the table in <tt>em</tt>|.5em}}
 
{{ParameterRow|tpadding|Padding of the table in <tt>em</tt>|.5em}}
 
{{ParameterRow|name|Box title.|Base page name}}
 
{{ParameterRow|name|Box title.|Base page name}}
{{ParameterRow|file|Box image.|Image-needed.png}}
+
{{ParameterRow|file|Box image. When set to <tt>none</tt> doesn't display any image.|Image-needed.png}}
 
{{ParameterRow|hovertext|Image hover text.|<tt>name</tt> or base page name}}
 
{{ParameterRow|hovertext|Image hover text.|<tt>name</tt> or base page name}}
 
{{ParameterRow|lines|Lines, use {{tl|Infobox/Line}}.}}
 
{{ParameterRow|lines|Lines, use {{tl|Infobox/Line}}.}}
Line 33: Line 33:
 
{| style="font-size: 90%; padding={{{tpadding|.5}}}em" valign="top"
 
{| style="font-size: 90%; padding={{{tpadding|.5}}}em" valign="top"
 
|-
 
|-
| colspan="3" | [[File:{{{file|Image-needed.png}}}|{{{width|200}}}px|{{{hovertext|{{{name|{{BASEPAGENAME}}}}}}}}]]
+
{{#ifeq: {{{file|}}}|none|{{!}} colspan="3" {{!}} [[File:{{{file|Image-needed.png}}}|{{{width|200}}}px|{{{hovertext|{{{name|{{BASEPAGENAME}}}}}}}}]]}}
 
{{{lines}}}
 
{{{lines}}}
 
{{#if: {{{notes|}}}|{{!}}-
 
{{#if: {{{notes|}}}|{{!}}-

Revision as of 21:26, 23 June 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 {{Partbox}} and {{Planetbox}}. See Template talk:Partbox for more information about the new infoboxes.

Template:Parameter Table