Changes

Jump to navigation Jump to search
3,887 bytes added ,  00:21, 4 December 2006
{{PD Help Page}}
__TOC__
{| {{Prettytable}}
|-
|{{Hl3}}|'''Description'''
|{{Hl3}}|'''You type'''
|{{Hl3}}|'''You get'''
|-
|Embed image<br /> (with alt text)
|
<code><nowiki>[[Image:Example.png|Sunflowers]]</nowiki></code>
|
[[Image:Example.png|Sunflowers]]
|-
|Link to description page
|
<code><nowiki>[[:Image:Example.png]]</nowiki></code><br />
<code><nowiki>[[:Image:Example.png|Sunflowers]]</nowiki></code>
|
[[:Image:Example.png]]<br />
[[:Image:Example.png|Sunflowers]]
|-
|Link directly to file
|
<code><nowiki>[[Media:Example.png]]</nowiki></code><br />
<code><nowiki>[[Media:Example.png|Sunflowers]]</nowiki></code>
|
[[Media:Example.png]]<br />
[[Media:Example.png|Sunflowers]]
|-
|Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)
|
<code><nowiki>[[Image:Example.png|center|thumb|100px|Sunflowers]]</nowiki></code>
|
[[Image:Example.png|center|thumb|100px|Sunflowers]]
|}

==Uploaded files==
To use an image or other file which has been [[Help:Managing files|uploaded to the wiki]], use:
*<code><nowiki>[[Image:Example.png]]</nowiki></code>
If you add a pipe (|) and some text after the filename, the text will be used as alternative text for text-only browsers:
*<code><nowiki>[[Image:Example.png|alternative text]]</nowiki></code>

If you don't want to display the image, you can link to the file's description page, by adding a colon:
*<code><nowiki>[[:Image:Example.png]]</nowiki></code>
To bypass the description page and link directly to a file , use the "Media" pseudo-namespace:
*<code><nowiki>[[Media:Example.png]]</nowiki></code>
You can also make piped links if you want some other text to be used:
*<code><nowiki>[[:Image:Example.png|link text]]</nowiki></code>
*<code><nowiki>[[Media:Example.png|link text]]</nowiki></code>

===Advanced options===
The full syntax for displaying an image is:
<code><nowiki>[[Image:{name}|{options}]]</nowiki></code>
Where options can be zero or more of the following, separated by pipes:
*<code>thumb</code>, <code>thumbnail</code>, or <code>frame</code>: Controls how the image is formatted
*<code>left</code>, <code>right</code>, <code>center</code>, <code>none</code>: Controls the alignment of the image on the page
*<code>{width}px</code>: Resizes the image to the given width in pixels
*<code>{caption text}</code>
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 <code><nowiki><gallery></nowiki></code> tag. The syntax is:
<pre>
<gallery>
Image:{filename}|{caption}
Image:{filename}|{caption}
{...}
</gallery>
</pre>
Captions are optional, and may contain wiki links or other formatting.

for example:
<pre>
<gallery>
Image:Example.png|Item 1
Image:Example.png|a link to [[Help:Contents]]
Image:Example.png
Image:Example.png
Image:Example.png|''italic caption''
</gallery>
</pre>
is formatted as:
<gallery>
Image:Example.png|Item 1
Image:Example.png|a link to [[Help:Contents]]
Image:Example.png
Image:Example.png
Image:Example.png|''italic caption''
</gallery>

==Other files==
You can link to an external file using the same syntax used for [[Help:Links#External links|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.
*<code><nowiki>[http://url.for/some/image.png]</nowiki></code>
Or with different text:
*<code><nowiki>[http://url.for/some/image.png link text here]</nowiki></code>

If it is enabled on your wiki, you can also embed external images. To do that, simply insert the url:
*<code><nowiki>http://url.for/some/image.png</nowiki></code>

==External Links==
{{metawikipedia|Help:Images and other uploaded files}}

{{Languages|Help:Images}}

[[Category:Help|Images]]
Anonymous user

Navigation menu