Difference between revisions of "Template:Infobox"
From Kerbal Space Program Wiki
m (+file style;) |
(+center the image;) |
||
Line 23: | Line 23: | ||
{{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.|Image-needed.png}} | {{Parameter Row|file|Box image. When set to <tt>none</tt> doesn't display any image.|Image-needed.png}} | ||
− | {{Parameter Row|file style|CSS style for the infobox image.|Not set}} | + | {{Parameter Row|file style|CSS style for the infobox image. The property <tt>text-align</tt> is always set to centered.|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}} | ||
{{Parameter Row|lines|Lines, use {{tl|Infobox/Line}}.}} | {{Parameter Row|lines|Lines, use {{tl|Infobox/Line}}.}} | ||
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="{{{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}}}|{{{width|200}}}px|{{{hovertext|{{{name|{{BASEPAGENAME}}}}}}}}]]}} |
{{{lines}}} | {{{lines}}} | ||
{{#if: {{{notes|}}}|{{!}}- | {{#if: {{{notes|}}}|{{!}}- |
Revision as of 15:22, 19 July 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.