Help:Images

From RadsWiki

Jump to: navigation, search

Contents

Upload a file

  1. In the sidebar, under toolbox, click "Upload file"
  2. Next to the Source filename, click Browse to locate the file on your computer.
  3. Change the Destination filename to something descriptive, if necessary.
  4. Fill in the Summary, if necessary.
  5. Click the Upload file button.

After you've uploaded some files, use them in your articles.

Description You type You get
Embed image
(with alt text)

[[Image:COPD.jpg|COPD]]

COPD

Link to description page

[[:Image:COPD.jpg]]
[[:Image:COPD.jpg|COPD]]

Image:COPD.jpg
COPD

Link directly to file

[[Media:COPD.jpg]]
[[Media:COPD.jpg|COPD]]

Media:COPD.jpg
COPD

Thumbnail
(centered, 100 pixels
wide, with caption)

[[Image:COPD.jpg|center|thumb|100px|COPD]]

COPD
COPD

Uploaded files

To use an image or other file which has been uploaded to the wiki, use:

  • [[Image:COPD.jpg]]

If you add a pipe (|) and some text after the filename, the text will be used as alternative text for text-only browsers:

  • [[Image:COPD.jpg|alternative text]]

If you don't want to display the image, you can link to the file's description page, by adding a colon:

  • [[:Image:COPD.jpg]]

To bypass the description page and link directly to a file , use the "Media" pseudo-namespace:

  • [[Media:COPD.jpg]]

You can also make piped links if you want some other text to be used:

  • [[:Image:COPD.jpg|link text]]
  • [[Media:COPD.jpg|link text]]

Advanced options

The full syntax for displaying an image is:

[[Image:{name}|{options}]]

Where options can be zero or more of the following, separated by pipes:

  • thumb, thumbnail, or frame: Controls how the image is formatted
  • left, right, center, none: Controls the alignment of the image on the page
  • {width}px: Resizes the image to the given width in pixels
  • {caption text}

The options can be given in any order. If a given option does not match any of the other possibilities, it is assumed to be the caption text. Caption text can contain wiki links or other formatting.

Gallery of images

It's easy to make a gallery of thumbnails with the <gallery> tag. The syntax is:

<gallery>
Image:{filename}|{caption}
Image:{filename}|{caption}
{...}
</gallery>

Captions are optional, and may contain wiki links or other formatting.

for example:

<gallery>
Image:COPD.jpg|Item 1
Image:COPD.jpg|a link to [[Help:Contents]]
Image:COPD.jpg
Image:COPD.jpg
Image:COPD.jpg|''italic caption''
</gallery>

is formatted as:

Other files

You can link to an external file using the same syntax used for linking to an external web page. This feature has to be enabled by the admin; in the new releases of MediaWiki its disabled due to security reasons.

  • [http://url.for/some/image.png]

Or with different text:

  • [http://url.for/some/image.png link text here]

If it is enabled on your wiki, you can also embed external images. To do that, simply insert the url:

  • http://url.for/some/image.png
Personal tools

Want to contribute to radswiki.net but don't have the time? Don't worry... we accept monetary contributions!!!