community

Adding images helps improve the quality of any given article, providing additional details and illustrating the subject - after all, a picture speaks a thousand words! It can also improve a wiki's search engine ranking.

The process of adding images to an article is very similar to adding videos. You can brush up on our video embed tool to complete your mastery of the tools of a wiki illustrator.

Requirements for adding images

Both anonymous and registered users can add images to an article in source text editing mode. In visual editors, only registered users can.

Images must exist on the wiki. If they are not available, then they need to be uploaded first. Trying to add a non-existent image will only create a red link to a file page.

Only registered, logged-in users can upload files. See this page for details on uploading files.

How to add an image in VisualEditor

When you're editing with the VisualEditor, the process of adding an image to a page is through the top bar of the editor. See this help page.

Remember: Only logged-in users can upload and edit images through the wiki's Visual Editor.

You can also edit images already present on the page by clicking on them and selecting the Edit button, which will open the same customization dialogue.

How to add an image in source editing mode

Source editing maintains the option of adding and customizing images through the top bar, like in the Visual Editor. But as its interface is fundamentally different from visual editors, you can skip the above process and directly add and edit with the underlying wikitext. The image follows a specific format, enclosed in square brackets like a regular link.

[[File:Wiki.png|220px|center|thumb|link=Help:Adding images|alt=alt text|class=html-class|Some caption]]

The wiki software does not require the arguments to be added in any specific order, although it's considered good practice to use a consistent pattern. For more details on adding images via wikitext, see the image formatting section here. For linking to image description pages, see this page.

How to view images at a higher resolution

Viewing a photo from the

Viewing a photo from the lightbox

When placed on the page, images are typically presented at a much smaller resolution. You can inspect them by going to the file page or by opening them in the lightbox.

The lightbox opens by default when clicking on the image, with the link to the file description page displayed at the top of the lightbox.

Accessibility considerations

In order for viewers with visual impairments to be able to access images on a page, alternative text (better known as alt text) is important to add to many images you upload. Alt text refers to a brief description you give an image - this does not show up visibly. This has a couple of benefits:

There are two types of images: informative and decorative. Informative images help the reader understand the page - they need alt text. Decorative images do not add important information to the page, so do not need alt text. If you're unsure which type an image is, try reading the page out loud. If you need to explain an image to understand the page, that image is probably informative and needs alt text. Otherwise, check out this decision tree to work out which images need alt text.

Effective alt text includes:

For example, for poster on the right, alt text could read:

The Hamilton poster has a gold background, featuring a silhouetted man acting as the top point on a black 5 pointed star. The white "Hamilton" logo sits across the middle of the star.

Hamilton

[[File:Hamilton poster.jpg|thumb|right|200px|link=w:c:hamiltonmusical:Hamilton|alt=The Hamilton poster has a gold background, featuring a silhouetted man acting as the top point on a black 5 pointed star. The white "Hamilton" logo sits across the middle of the star.|'''[[w:c:hamiltonmusical:Hamilton|Hamilton]]''']]

If you wanted to include no alt text and mark the image as decorative, you should blank the alt attribute as below. This will cause the screen reader to skip that image.

[[File:Hamilton poster.jpg|thumb|right|200px|link=w:c:hamiltonmusical:Hamilton|alt=|'''[[w:c:hamiltonmusical:Hamilton|Hamilton]]''']]

Read more about what web accessibility is and why it is important.

See also

Further help and feedback