Difference between revisions of "Template:Infobox"
From Kerbal Space Program Wiki
m |
(Move doc) |
||
Line 1: | Line 1: | ||
− | + | <includeonly><div class="infobox" style="float: {{if rtl|left|right}}; width: {{{width|200}}}px; margin-{{if rtl|right|left}}: 1em; padding: {{{padding|0.2}}}em; direction: {{if rtl|rtl|ltr}};"> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| style="font-size: 90%; padding: {{{tpadding|0}}}em; width: 100%" valign="top" | {| style="font-size: 90%; padding: {{{tpadding|0}}}em; width: 100%" valign="top" | ||
|- | |- | ||
Line 61: | Line 19: | ||
{{{notes}}} }} | {{{notes}}} }} | ||
|} | |} | ||
− | </div></includeonly> | + | </div></includeonly><noinclude> |
+ | {{Documentation}} | ||
+ | </noinclude> |
Revision as of 15:53, 1 March 2020
Infobox (name) Template (subtitle) | ||
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.
Parameters
Name | Optional | Description | Default |
---|---|---|---|
width | Yes | Box width in pixels. | 200 |
padding | Yes | Padding in em. | 0.2 |
tpadding | Yes | Padding of the table in em | 0 |
name | Yes | Box title. | Base page name |
subtitle | Yes | Box subtitle | Hidden |
icon | Yes | File next to title and subtitle | Not set/Hidden |
icon width | Yes | File next to title and subtitle width in pixels | If subtitle present: 48 pixels. Else: 37 pixels. |
file | Yes | Box image. When set to none doesn't display any image. | File:Image needed.svg |
file style | Yes | CSS style for the infobox image. | Not set |
thumb | Yes | An image description displayed below the image | Not set |
file extra1 | Yes | An extra image displayed below the first image | Not set |
thumb extra1 | Yes | An image description displayed below the first extra image | Not set |
file extra2 | Yes | An extra image displayed below the first image | Not set |
thumb extra2 | Yes | An image description displayed below the second extra image | Not set |
hovertext | Yes | Image hover text. | name or base page name |
lines | No | Lines, use {{Infobox/Line}}. | |
notes | Yes | Footnotes, references style. | Invisible |
The Category:Infobox templates contains all templates which directly use this template.
The above documentation is transcluded from Template:Infobox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |