Difference between revisions of "Template:Infobox"
From Kerbal Space Program Wiki
m (! param.) |
m (! inefficient code. * made some stuff optional.) |
||
Line 17: | Line 17: | ||
{{Parameter Table|name=text|style=hover|parameters= | {{Parameter Table|name=text|style=hover|parameters= | ||
− | {{ParameterRow|width|Box width in pixels.}} | + | {{ParameterRow|width|Box width in pixels.|200px}} |
− | {{ParameterRow|padding|Padding in <tt>em</tt>.}} | + | {{ParameterRow|padding|Padding in <tt>em</tt>.|0em}} |
{{ParameterRow|name|Box title.|Base page name}} | {{ParameterRow|name|Box title.|Base page name}} | ||
− | {{ParameterRow|file|Box image.}} | + | {{ParameterRow|file|Box image.|Image-needed.png}} |
− | {{ParameterRow|hovertext|Image hover text.}} | + | {{ParameterRow|hovertext|Image hover text.|<tt>name</tt> or base page name}} |
− | {{ParameterRow|lines|Lines, use {{:[[User:Dgelessus/Infobox/Line]]}}.}} | + | {{ParameterRow|lines|Lines, use <tt>{{:[[User:Dgelessus/Infobox/Line]]}}</tt>.}} |
{{ParameterRow|notes|Footnotes, references style.|Invisible}} | {{ParameterRow|notes|Footnotes, references style.|Invisible}} | ||
}} | }} | ||
Line 28: | Line 28: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | <div style="background: #f6f6f6; border: 1px solid #ccc; float: right; width: {{{width}}}px; margin-left: 1em; padding: {{{padding}}}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="padding: 0.5em; font-size: 90%; width: {{{width}}}px" valign="top" | + | {| style="padding: 0.5em; font-size: 90%; width: {{{width|200}}}px" valign="top" |
|- | |- | ||
− | | colspan="3" | [[File | + | | colspan="3" | [[File:{{{file|Image-needed.png}}}|{{{width|200}}}px|{{{hovertext|{{{name|{{BASEPAGENAME}}}}}}}}]] |
{{{lines}}} | {{{lines}}} | ||
{{#if: {{{notes|}}}|{{!}}- | {{#if: {{{notes|}}}|{{!}}- |
Revision as of 20:58, 14 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.