Open main menu

Changes

m
1 revision
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

== 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 {{tl|Infobox}}, {{tl|Infobox software}}, {{tl|Infobox Windows component}} or {{tl|Infobox website}}.

==Syntax==
<pre style="overflow: auto;">{{Infobox image
|title = <!-- image title -->
|name = <!-- image name -->
|size = <!-- image width, height or both-->
|has border = <!-- yes or no -->
|caption = <!-- image caption -->
}}</pre>

== Parameters ==
{| class="wikitable"
! Parameter
! Description
|-
| <tt>title</tt> || Optional: Adds a title to the infobox.
|-
| <tt>name</tt> || Mandatory: Image file name (including its extension). Do not need to include "File:" prefix or "Image:" prefix.
|-
| <tt>size</tt> || 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]].
|-
| <tt>has border</tt> || 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.
|-
| <tt>suppressplaceholder</tt> ||Optional: If this parameter is set (to anything), the placeholder image will not be used.
|-
| <tt>caption</tt> ||Optional: A text to be displayed below the image
|}

== Example ==
===Simple===
{{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
}}
This example shows a simple {{tld|infobox image}} with a picture of 200 pixels width, title and caption is created.
<pre style="overflow: auto;">{{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
}}</pre>

{{Clear}}

===Extended===
<table width="100%">
<tr>
<td style="vertical-align:top">
This example is taken from [[Mozilla Foundation]] article and shows how an {{tld|Infobox image}} lines up with an {{tlx|Infobox Non-profit}}. As long as the image widths are the same (250px in this example), {{tld|Infobox image}} lines up with most derivatives of {{tlx|Infobox}}.
{{Pre wrap|<nowiki>
{{Infobox Non-profit
| Non-profit_name = Mozilla Foundation
| Non-profit_logo = [[File:MozillaCaliforniaHeadquarters.JPG|250px]]<br/>Entrance to downtown Mountain View office building currently home to both the Mozilla Foundation and the Mozilla Corporation
| Non-profit_type = 501(c)(3)
| founded_date = July 15, 2003
| founder = Mozilla Organization
| location = Mountain View, CA, USA
| origins = Mozilla Organization
| focus = Internet
| revenue = $104,3 million (2009)
| num_employees = 4
| subsid =
*Mozilla Corporation
*Mozilla Messaging, Inc.
| homepage = www.mozilla.org
}}
{{infobox image
|title =
|name = Mozillaheadquarters.jpg
|size = 250px
|caption = Former office next to the [[Googleplex]] shared by both the Mozilla Foundation and the Mozilla Corporation until July 2009
}}
</nowiki>
}}
</td>
<td>
{{Infobox Non-profit
| Non-profit_name = Mozilla Foundation
| Non-profit_logo = [[File:MozillaCaliforniaHeadquarters.JPG|250px]]<br/>Entrance to downtown Mountain View office building currently home to both the Mozilla Foundation and the Mozilla Corporation
| Non-profit_type = 501(c)(3)
| founded_date = July 15, 2003
| founder = Mozilla Organization
| location = Mountain View, CA, USA
| origins = Mozilla Organization
| focus = Internet
| revenue = $104,3 million (2009)
| num_employees = 4
| subsid =
*Mozilla Corporation
*Mozilla Messaging, Inc.
| homepage = www.mozilla.org
}}
{{infobox image
|name = Mozillaheadquarters.jpg
|size = 250px
|caption = Former office next to the [[Googleplex]] shared by both the Mozilla Foundation and the Mozilla Corporation until July 2009
}}
</td>
</tr>
</table>

== See also ==
* {{tlx|Image}}
* {{tlx|File title}}
* {{tlx|Linked}}
* {{tlx|px}}
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Infobox templates|Image]]
</includeonly>
Bureaucrats, developer, smwadministrator, Administrators
10,246

edits