MediaWiki User Guide/Images
< MediaWiki User GuideMediawiki 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.
PlacingImages images
The following is an overview of placing images into pages, such images that have already been uploaded.
Task | Markup | Default Frame | Note |
---|---|---|---|
Images 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
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
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.