Template:Infobox/double image/doc

From Eureka Wiki
Jump to navigation Jump to search

Usage[edit source]

This template is used to built an infobox from bricks. The {{Infobox/double image}} template is used to add one or two front images inside an infobox.

Syntax[edit source]

Copy/past the following inside your infobox template:

{{Infobox/startbox}}
{{Infobox/double image|image name 1|caption 1|size in px 1|alternate text 1|colspan value 1|link 1|image name 2|caption 2|size in px 2|alternate text 2|colspan value 2|link 2}}
{{Infobox/endbox}}

Parameters[edit source]

The parameters #1 to #6 refer to the first image, the parameters #7 to #12 refer to the second image

Parameter Mandatory Default value Explanation
{{{1|}}}
{{{7|}}}
No N/A Used to add the image filename inside the infobox. Example: {{infobox/double image|myimage.svg}}
{{{2|}}}
{{{8|}}}
No N/A Used to add a caption below the image. Example: {{infobox/double image|myimage.svg|Boat perspective in 1904.}}. If default parameter is null, no caption appears.
{{{3|}}}
{{{9|}}}
No 280 (1 image)
130 (2 images)
Used to modify the image size in pixels. Don't add px, just the number. Example: {{infobox/double image|myimage.svg|Boat perspective in 1904.|100}}. This template forbids an image size above 280 px if there is only one image or 130 px if there are two of them.
{{{4|}}}
{{{10|}}}
No Image about the {{PAGENAME}} article Used to modify the image alt inside the infobox. Example: {{infobox/double image|myimage.svg|Boat perspective in 1904.|100|Image representing this}}.
{{{5|}}}
{{{11|}}}
No 2 Used to modify colspan value inside the infobox. Example: {{infobox/double image|myimage.svg|Boat perspective in 1904.|100|Image representing this|3}}.
{{{6|}}}
{{{12|}}}
No N/A Used to add a link on the image. Example: {{infobox/double image|myimage.svg|Boat perspective in 1904.|100|Image representing this|3|http://www.google.com}}.

Examples[edit source]

Basic example[edit source]

Example with one image[edit source]

Title
Global Dynamics logo.
Global Dynamics logo.
{{Infobox/startbox}}
{{Infobox/title|Title}}
{{Infobox/double image|Global Dynamics logo.jpg|''Global Dynamics'' logo.||Global Dynamics logo.}}
{{Infobox/endbox}}


Example with two images[edit source]

Title
Global Dynamics logo.
Global Dynamics logo.
Global Dynamics logo.
Global Dynamics logo.
{{Infobox/startbox}}
{{Infobox/title|Title}}
{{Infobox/double image|Global Dynamics logo.jpg|''Global Dynamics'' logo.||Global Dynamics logo.|||Global Dynamics logo.jpg|''Global Dynamics'' logo.||Global Dynamics logo.}}
{{Infobox/endbox}}


Example inside a template[edit source]

{{Infobox/startbox}}
{{Infobox/title
 | Title
}}
{{Infobox/double image
 | {{{image 1|}}}|{{{caption 1|}}}|130|Image of this|||{{{image 2|}}}|{{{caption 2|}}}|130|Image of that
}}
{{Infobox/endbox}}

See also[edit source]