Difference between revisions of "Template:Infobox"

From Kerbal Space Program Wiki
Jump to: navigation, search
(* made footer optional. * improved param table.)
(- subtitle and footer, now possible to make using lines.)
Line 6: Line 6:
 
|file=Image-needed.png
 
|file=Image-needed.png
 
|hovertext=Hover Text (hovertext)
 
|hovertext=Hover Text (hovertext)
|subtitle=Image Subtitle Goes ''Here'' (subtitle)
 
 
|stats=
 
|stats=
{{Partbox/Line|Stats lines (stats)|using {{tl|Partbox/Line}}}}
+
{{User:Dgelessus/Infobox/Line|<center>''Homemade Image Subtitle''</center>}}
{{Partbox/Line|More '''lines'''|using {{tl|Partbox/Line}}}}
+
{{User:Dgelessus/Infobox/Line|One Column}}
{{Partbox/Line|Answer|42}}
+
{{User:Dgelessus/Infobox/Line|Two|Columns}}
|footer=Footer text (footer)
+
{{User:Dgelessus/Infobox/Line|And|Three|Columns}}
 +
{{User:Dgelessus/Infobox/Line|<center><small>Homemade Footer</small></center>}}
 
|notes=Annotations & Footnotes (notes)
 
|notes=Annotations & Footnotes (notes)
 
}}
 
}}
This is a mockup infobox template, based on the {{tl|Partbox}}. See [[Template talk:Partbox]] for more information.
+
This is a general infobox template, based on the {{tl|Partbox}} and combined with {{tl|Planetbox}}. See [[Template talk:Partbox]] for more information.
  
 
{{Parameter Table|name=text|style=hover|parameters=
 
{{Parameter Table|name=text|style=hover|parameters=
Line 22: Line 22:
 
{{ParameterRow|file|Box image.}}
 
{{ParameterRow|file|Box image.}}
 
{{ParameterRow|hovertext|Image hover text.}}
 
{{ParameterRow|hovertext|Image hover text.}}
{{ParameterRow|subtitle|Image subtitle.}}
+
{{ParameterRow|lines|Lines, use {{:[[User:Dgelessus/Infobox/Line]]}}.}}
{{ParameterRow|stats|Stats lines, use {{tl|Partbox/Line}}.}}
 
{{ParameterRow|footer|Footer text.|Invisible}}
 
 
{{ParameterRow|notes|Footnotes, references style.|Invisible}}
 
{{ParameterRow|notes|Footnotes, references style.|Invisible}}
 
}}
 
}}
Line 35: Line 33:
 
|-
 
|-
 
| colspan="3" | [[File:{{#if: {{{file|}}}|{{{file}}}|Image-needed.png}}|{{{width}}}px|{{#if: {{{hovertext|}}}|{{{hovertext}}}|Image}}]]
 
| colspan="3" | [[File:{{#if: {{{file|}}}|{{{file}}}|Image-needed.png}}|{{{width}}}px|{{#if: {{{hovertext|}}}|{{{hovertext}}}|Image}}]]
|-
+
{{{lines}}}
| colspan="3" style="text-align: center;" | {{{subtitle}}}
 
{{{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" {{!}}

Revision as of 17:43, 9 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