Difference between revisions of "Template:Infobox"
From Kerbal Space Program Wiki
m (*replace 'Parameter Row' and 'ParameterRow' by 'Parameter row';) |
m (+extra image;) |
||
Line 24: | Line 24: | ||
{{Parameter row|file|Box image. When set to <tt>none</tt> doesn't display any image.|[[:File:Image needed.svg]]}} | {{Parameter row|file|Box image. When set to <tt>none</tt> doesn't display any image.|[[:File:Image needed.svg]]}} | ||
{{Parameter row|file style|CSS style for the infobox image.|Not set}} | {{Parameter row|file style|CSS style for the infobox image.|Not set}} | ||
+ | {{Parameter row|file extra1|An extra image displayed below the first image|Not set}} | ||
+ | {{Parameter row|thumb extra1|An image description displayed below the first extra image|Not set}} | ||
+ | {{Parameter row|file extra2|An extra image displayed below the first image|Not set}} | ||
+ | {{Parameter row|thumb extra2|An image description displayed below the second extra image|Not set}} | ||
{{Parameter row|hovertext|Image hover text.|<tt>name</tt> or base page name}} | {{Parameter row|hovertext|Image hover text.|<tt>name</tt> or base page name}} | ||
{{Parameter row|lines|Lines, use {{tl|Infobox/Line}}.}} | {{Parameter row|lines|Lines, use {{tl|Infobox/Line}}.}} | ||
Line 36: | Line 40: | ||
| colspan="3" style="background: #ccc; font-size: large; padding: .3em; text-align: center; font-weight: bold;"| {{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}} | | colspan="3" style="background: #ccc; font-size: large; padding: .3em; text-align: center; font-weight: bold;"| {{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}} | ||
|- | |- | ||
− | {{#ifeq: {{{file|}}}|none||{{!}} {{#if: {{{file style|}}}|style="{{{file style}}}"}} colspan="3" {{!}} [[File:{{#if: {{{file|}}}|{{{file}}}|Image needed.svg}}|{{#expr: {{{width|200}}} - 10}}x{{#expr: {{{width|200}}} - 10}}px|center|{{{hovertext|{{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}}}}]]}} | + | {{#ifeq: {{{file|}}}|none||{{!}} {{#if: {{{file style|}}}|style="{{{file style}}}"}} colspan="3" {{!}} [[File:{{#if: {{{file|}}}|{{{file}}}|Image needed.svg}}|{{#expr: {{{width|200}}} - 10}}x{{#expr: {{{width|200}}} - 10}}px|center|{{{hovertext|{{#if: {{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}}}}]]}}{{if||{{{file extra1|}}}| |
+ | {{{!}} | ||
+ | {{!}} [[File:{{{file extra1}}}|{{#expr: {{{width|200}}} / 2 - 10}}x{{#expr: {{{width|200}}} / 2 - 10}}px|center|{{#if: {{{thumb extra1|}}}|{{{thumb extra1}}}}}]] | ||
+ | {{!}} {{#if: {{{file extra2|}}}|[[File:{{{file extra2}}}|{{#expr: {{{width|200}}} / 2 - 10}}x{{#expr: {{{width|200}}} / 2 - 10}}px|center|{{#if: {{{thumb extra2|}}}|{{{thumb extra2}}}|}}]]}} | ||
+ | {{!}}- | ||
+ | {{!}} {{#if: {{{thumb extra1|}}}|{{{thumb extra1}}}}} | ||
+ | {{!}} {{#if: {{{thumb extra2|}}}|{{{thumb extra2}}}}} | ||
+ | {{!}}}}} | ||
{{{lines}}} | {{{lines}}} | ||
{{#if: {{{notes|}}}|{{!}}- | {{#if: {{{notes|}}}|{{!}}- |
Revision as of 12:34, 17 December 2014
Infobox (name) | ||
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.
The Category:Infobox templates contains all templates which directly use this template.