Difference between revisions of "Template:Infobox"
From Kerbal Space Program Wiki
m |
m (*switch padding values;) |
||
Line 19: | Line 19: | ||
{{Parameter Table|name=text|style=hover|parameters= | {{Parameter Table|name=text|style=hover|parameters= | ||
{{Parameter Row|width|Box width in pixels.|200}} | {{Parameter Row|width|Box width in pixels.|200}} | ||
− | {{Parameter Row|padding|Padding in <tt>em</tt>.|0}} | + | {{Parameter Row|padding|Padding in <tt>em</tt>.|0.5}} |
− | {{Parameter Row|tpadding|Padding of the table in <tt>em</tt>| | + | {{Parameter Row|tpadding|Padding of the table in <tt>em</tt>|0}} |
{{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}} | ||
Line 29: | Line 29: | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> | ||
− | <includeonly><div style="background: #f6f6f6; border: 1px solid #ccc; float: {{if rtl|left|right}}; width: {{{width|200}}}px; margin-{{if rtl|right|left}}: 1em; padding: {{{padding|0}}}em"> | + | <includeonly><div style="background: #f6f6f6; border: 1px solid #ccc; float: {{if rtl|left|right}}; width: {{{width|200}}}px; margin-{{if rtl|right|left}}: 1em; padding: {{{padding|0.5}}}em"> |
<div style="background: #ccc; font-size: large; padding: .5em; text-align: center">{{{name|{{BASEPAGENAME}}}}}</div> | <div style="background: #ccc; font-size: large; padding: .5em; text-align: center">{{{name|{{BASEPAGENAME}}}}}</div> | ||
− | {| style="font-size: 90%; padding: {{{tpadding| | + | {| style="font-size: 90%; padding: {{{tpadding|0}}}em; width: 100%" valign="top" |
|- | |- | ||
{{#ifeq: {{{file|}}}|none||{{!}} 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}}}}}}}}]]}} |
Revision as of 14:14, 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.