MediaWiki User Guide/Images
Appearance
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 | edit source]The following is an overview of placing images into pages, such images that have already been uploaded.
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 | edit source]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 galleries can be given captions, as follows.
<gallery> Image:name_1.png | Caption 1. Image:name_2.jpeg | Caption 2. </gallery>
Uploading images
[edit | edit source]
Links
[edit | edit source]- W:Help:Pictures, wikipedia.org
- W:Wikipedia:Uploading images, wikipedia.org