Template:Infobox image/docEdit This Page

From FamilySearch Wiki

Contents

Usage

This template inserts an image with borders that look like that of Template:Infobox. Use this template when you need to stack images vertically with an infobox template, such as {{Infobox}}, {{Infobox software}}, {{Infobox Windows component}} or {{Infobox website}}.

Syntax

{{Infobox image
|title = <!-- image title -->
|name = <!-- image name -->
|size = <!-- image width, height or both-->
|has border = <!-- yes or no -->
|caption = <!-- image caption -->
}}

Parameters

Parameter Description
title Optional: Adds a title to the infobox.
name Mandatory: Image file name (including its extension). Do not need to include "File:" prefix or "Image:" prefix.
size Highly-recommended: Specifies the size of the image, the same way standard Wikipedia image syntax does. It may specify width, height or both. For more information, see Wikipedia:Extended image syntax or Wikipedia:Picture tutorial.
has border Optional: Indicates whether a light border should be drawn around the image. (Not to be confused the black border which is always present around the infobox.) Can be set to "yes" or "no". Default is "no". Do not use this parameter when the image has a transparent background.
caption Optional: A text to be displayed below the image

Example

Simple

Mozilla Headquarters
200px
Former office next to the Googleplex shared by both the Mozilla Foundation and the Mozilla Corporation until July 2009

This example shows a simple {{infobox image}} with a picture of 200 pixels width, title and caption is created.

{{Infobox image
|title = ''Mozilla Headquarters''
|name = Mozillaheadquarters.jpg
|size = 200px
|caption = Former office next to the [[Googleplex]] shared by both the Mozilla Foundation and the Mozilla Corporation until July 2009
}}

Extended

This example is taken from Mozilla Foundation article and shows how an {{Infobox image}} lines up with an {{Infobox Non-profit}}. As long as the image widths are the same (250px in this example), {{Infobox image}} lines up with most derivatives of {{Infobox}}. Template:Pre wrap

Template:Infobox Non-profit

250px
Former office next to the Googleplex shared by both the Mozilla Foundation and the Mozilla Corporation until July 2009

See also

Similar

Misc

  • This page was last modified on 23 January 2014, at 04:31.
  • This page has been accessed 97 times.