Difference between revisions of "Template:Infobox"
From Kerbal Space Program Wiki
(+ parameter box.) |
(* made footer optional. * improved param table.) |
||
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.}} |
− | {{ParameterRow|padding|Padding in <tt>em</tt>}} | + | {{ParameterRow|padding|Padding in <tt>em</tt>.}} |
− | {{ParameterRow|name|Box title}} | + | {{ParameterRow|name|Box title.|Base page name}} |
− | {{ParameterRow|file|Box image}} | + | {{ParameterRow|file|Box image.}} |
− | {{ParameterRow|hovertext|Image hover text}} | + | {{ParameterRow|hovertext|Image hover text.}} |
− | {{ParameterRow|subtitle|Image subtitle}} | + | {{ParameterRow|subtitle|Image subtitle.}} |
− | {{ParameterRow|stats|Stats lines, use {{tl|Partbox/Line}}}} | + | {{ParameterRow|stats|Stats lines, use {{tl|Partbox/Line}}.}} |
− | {{ParameterRow|footer|Footer text}} | + | {{ParameterRow|footer|Footer text.|Invisible}} |
− | {{ParameterRow|notes|Footnotes, references style}} | + | {{ParameterRow|notes|Footnotes, references style.|Invisible}} |
}} | }} | ||
Line 38: | Line 38: | ||
| colspan="3" style="text-align: center;" | {{{subtitle}}} | | colspan="3" style="text-align: center;" | {{{subtitle}}} | ||
{{{stats}}} | {{{stats}}} | ||
− | |- | + | {{#if: {{{footer|}}}|{{!}}- |
− | + | {{!}} colspan="3" style="text-align: center; font-size: small" {{!}} {{{footer}}} }} | |
{{#if: {{{notes|}}}|{{!}}- | {{#if: {{{notes|}}}|{{!}}- | ||
− | {{!}} colspan="3" style="font-size:smaller | + | {{!}} colspan="3" style="font-size: smaller" {{!}} |
---- | ---- | ||
− | {{{notes}}} | + | {{{notes}}} }} |
− | }} | ||
|} | |} | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 13:51, 9 June 2013
User:Dgelessus/Infobox This is a mockup infobox template, based on the {{Partbox}}. See Template talk:Partbox for more information.