Help:Images

From WikiKnowledge

Jump to: navigation, search
Description You type You get
Embed image
(with alt text)

[[Image:WikiKnowledgeLogo.png|WikiKnowledge]]

WikiKnowledge

Link to description page

[[:Image:WikiKnowledgeLogo.png]]
[[:Image:WikiKnowledgeLogo.png|WikiKnowledge logo]]

Image:WikiKnowledgeLogo.png
WikiKnowledge logo

Link directly to file

[[Media:WikiKnowledgeLogo.png]]
[[Media:WikiKnowledgeLogo.png|WikiKnowledge logo]]

Media:WikiKnowledgeLogo.png
WikiKnowledge logo

Thumbnail
(centered, 100 pixels
wide, with caption)

[[Image:WikiKnowledgeLogo.png|center|thumb|100px|The WikiKnowledge logo]]

The WikiKnowledge logo
The WikiKnowledge logo

Contents

[edit] Uploaded files

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

  • [[Image:WikiKnowledgeLogo.png]]

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

  • [[Image:WikiKnowledgeLogo.png|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:WikiKnowledgeLogo.png]]

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

  • [[Media:WikiKnowledgeLogo.png]]

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

  • [[:Image:WikiKnowledgeLogo.png|link text]]
  • [[Media:WikiKnowledgeLogo.png|link text]]

[edit] 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.

[edit] 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:WikiKnowledgeLogo.png|Item 1
Image:WikiKnowledgeLogo.png|a link to [[Help:Contents]]
Image:WikiKnowledgeLogo.png
Image:WikiKnowledgeLogo.png
Image:WikiKnowledgeLogo.png|''italic caption''
</gallery>

is formatted as:

[edit] Other files

You can link to an external file using the same syntax used for linking to an external web page:

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

Or with different text:

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

Your Ad Here