Note: You can only add an image to a page after you have uploaded the image to GCpedia.
Below is the code for placing an image (Monitors.jpg) uploaded to the wiki on a page, and the result.
It is also recommended to add a caption to an image, using the pipe character. This alt text will appear when a user hovers their mouse over the image. This is an important feature for accessibility.
You can also add the image to a page as a thumbnail (smaller version) by following the code below. "thumb" tells the wiki the image is to be added as a thumbnail, and "100px" tells the wiki to make it 100 pixels wide.
To align an image to the left or centre, simply add "left" or "center"(note U.S. spelling) as shown in the codes below.
The basic syntax for creating a gallery looks like this:
The File: line can be repeated for as many images as you have to display. To add a gallery to a new or existing wiki page:
- Copy the text above in the box
- Navigate to your new page
- Paste the scaffold to re-create this layout on your own page
- Copy and paste the File: line for each image you wish to add
Larger pictures are automatically scaled in size to match the wiki standard dimensions of the gallery, and the number of images on each row of the gallery adjusts according to the dimensions of the display the gallery is being viewed on.