Difference between revisions of "Images - Mediawiki"
(New page: ==Image Basics== Displaying images in wiki pages is a 2 step process: #Upload the image file by clicking the '''Upload file''' link in the Toolbox navigation. ''(note: you must use '''.jpg...)
Revision as of 14:04, 20 July 2007
Displaying images in wiki pages is a 2 step process:
- Upload the image file by clicking the Upload file link in the Toolbox navigation. (note: you must use .jpg, .gif and .png type image files). For more on uploading files see Uploading Files
- In the page you want the image to be displayed in, place a link to the image file using the following syntax (note: replace filename.jpg with the name of your file) [[Image:filename.jpg]] or [[Image:filename.jpg|alt text]] to include alternate text with your image.
Extended image syntax
There are many additional ways you can control how images are displayed.
Example: This image uses the following syntax. Note the size refers to the width only in pixels.
[[Image:Tesla portrait.gif|thumb|right|150px|portrait of Nicola Tesla]]
The basic syntax is:
<gallery> Image:Wiki.png Image:Wiki.png|Captioned Image:Wiki.png Image:Wiki.png|[[Links]] can be put in captions. Image:Wiki.png </gallery>
Links can be put in captions.
Notice that there are no brackets except for links within captions. Captions are optional. Images are separated by new lines.
There are even more ways to work with images in Mediawiki. For a complete guide see: Mediawiki Extended Image Syntax