Difference between revisions of "Template:Infobox"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (* attempting to fix double padding.)
(+ table padding.)
Line 3: Line 3:
 
|width=250
 
|width=250
 
|padding=.5
 
|padding=.5
 +
|tpadding=0
 
|name=Infobox (name)
 
|name=Infobox (name)
 
|file=Image-needed.png
 
|file=Image-needed.png
Line 19: Line 20:
 
{{ParameterRow|width|Box width in pixels.|200px}}
 
{{ParameterRow|width|Box width in pixels.|200px}}
 
{{ParameterRow|padding|Padding in <tt>em</tt>.|0em}}
 
{{ParameterRow|padding|Padding in <tt>em</tt>.|0em}}
 +
{{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.|Image-needed.png}}
Line 30: Line 32:
 
<div style="background: #f6f6f6; border: 1px solid #ccc; float: right; width: {{{width|200}}}px; margin-left: 1em; padding: {{{padding|0}}}em">
 
<div style="background: #f6f6f6; border: 1px solid #ccc; float: right; width: {{{width|200}}}px; margin-left: 1em; padding: {{{padding|0}}}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=0" 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}}}}}}}}]]
 
| colspan="3" | [[File:{{{file|Image-needed.png}}}|{{{width|200}}}px|{{{hovertext|{{{name|{{BASEPAGENAME}}}}}}}}]]

Revision as of 09:41, 15 June 2013

User:Dgelessus/Infobox This is a general infobox template, based on the {{Partbox}} and combined with {{Planetbox}}. See Template talk:Partbox for more information.

Template:Parameter Table