MediaWiki User Guide/Images

From Wikibooks, open books for an open world
< MediaWiki User Guide
Jump to: navigation, search

Mediawiki supports the use of images in various formats. In order to be used in a wiki, image first needs to be uploaded, to which we come later.

Placing images[edit]

The following is an overview of placing images into pages, such images that have already been uploaded.

Placing of images
Task Markup Default Frame Note
Image [[Image:image_name.png]] No The image is shown in its full size as found in the file.
Image with thumb [[Image:image_name.png|thumb|A caption text of the image.]] Yes Thumbs are always scaled down so as not to exceed an upper limit on the size.
Image without thumb, with restricted size [[Image:image_name.png|150px]] No

Location:

  • 'right'
  • 'left'
  • 'center'
  • 'none'

Galleries[edit]

Images can be put into a gallery as follows. Notice the absent "[[" and "]]" around the names of the image files.

<gallery>
Image:name_1.png
Image:name_2.jpeg
</gallery>

Images in galleris can be given captions, as follows.

<gallery>
Image:name_1.png | Caption 1.
Image:name_2.jpeg | Caption 2.
</gallery>

Uploading images[edit]

Clipboard

To do:
Create this section.