Back to SWP13 home

How to insert a picture into an article

The syntax used for displaying an image is:

[[File:{name}|{type}|{location}|{size}|{alt=}|{caption}]]

Only [[File:{name}]] parameter is required.
Do not put spaces between parameters. The other parameters are optional and can be placed in any order. Some infoboxes do not require the brackets. Keep parameters in lower case. The other parameters are:
Type
'thumb' / 'thumbnail' or 'frame'. This causes image to be displayed with specific formatting. "thumb" is normally preferred.
Location
'right', 'left', 'center' or 'none'. Determines placement of the image on the page. "Left" or "right" is the norm, but large panoramas or timelines can be displayed in the center.
Size
{width}px or {width}x{height}px (e.g. 50x40px, would limit width to 50 pixels and height to 40 pixels). Normally only one variable is used. Use common sense when determining the sizes; you can use the "Show preview" button if you need to. If thumb or thumbnail is chosen, size should normally be left out, so that the size defaults to the size set in a user's preferences.
alt=
(keep it lower case). This is the "alternate image" parameter used to describe the image for screenreaders or for people with low-vision. It should be more descriptive than the caption alone. Do not use this for another copy of the caption or of the article title, as the reader will already be aware of these.
Caption
Any element which cannot be identified as one of the above is automatically treated as caption text. It is traditional to put this last. The caption should identify what the image is, and ideally be a complete sentence that adds to the article by pointing out something a casual reader would not have noticed otherwise, or add information the pertains to the image. Full sentence or multi fragment captions require full stop punctuation.

If you have created a picture that is not already in Wikipedia's image collection on the Commons that you want to include in an article, you will need to upload it first. Bonus tip: Similar formatting is used to insert basic audio or basic video clips into articles.

To add this auto-updating template to your user page, use {{totd}}
Heart Nebula
The Heart Nebula is an emission nebula, 7500 light years from Earth, located in the Perseus Arm of the Milky Way in the constellation Cassiopeia. It was discovered by William Herschel on 3 November 1787. Spanning almost 2 degrees in the sky, its shape is driven by stellar winds from the hot stars in its core. The nebula displays glowing ionized hydrogen gas and darker dust lanes, and is also made up of ionised oxygen and sulfur gasses, which cause rich blue and orange colours to be seen in narrowband images. This photograph of the Heart Nebula, with the Fish Head Nebula also visible in the top right corner, is a narrowband image captured on a 70mm scope with a capture period of around 44 hours.Photograph credit: Ram Samudrala
Today's Events

June 13, 2024


Birthday
Mrsteak613
Adminship Anniversary
none
First Edit Day
Kmccoy, Narutolovehinata5, Rcsprinter123, Thosbsamsgom


Other events: