2,037
edits
Changes
New page: __TOC__ {| {{Prettytable}} |- |bgcolor="#8DA7D6"|'''Description''' |bgcolor="#8DA7D6"|'''You type''' |bgcolor="#8DA7D6"|'''You get''' |- |Embed image<br /> (with alt text) | <code><nowiki...
__TOC__
{| {{Prettytable}}
|-
|bgcolor="#8DA7D6"|'''Description'''
|bgcolor="#8DA7D6"|'''You type'''
|bgcolor="#8DA7D6"|'''You get'''
|-
|Embed image<br /> (with alt text)
|
<code><nowiki>[[Image:Gramps-logo.png|Logo]]</nowiki></code>
|
[[Image:Gramps-logo.png|Logo]]
|-
|Link to description page
|
<code><nowiki>[[:Image:Gramps-logo.png]]</nowiki></code><br />
<code><nowiki>[[:Image:Gramps-logo.png|Sunflowers]]</nowiki></code>
|
[[:Image:Gramps-logo.png]]<br />
[[:Image:Gramps-logo.png|Logo]]
|-
|Link directly to file
|
<code><nowiki>[[Media:Gramps-logo.png]]</nowiki></code><br />
<code><nowiki>[[Media:Gramps-logo.png|Sunflowers]]</nowiki></code>
|
[[Media:Gramps-logo.png]]<br />
[[Media:Gramps-logo.png|Sunflowers]]
|-
|Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)
|
<code><nowiki>[[Image:Gramps-logo.png|center|thumb|100px|Logo]]</nowiki></code>
|
[[Image:Gramps-logo.png|center|thumb|100px|Logo]]
|}
==Uploaded files==
To use an image or other file which has been uploaded to the wiki, use:
*<code><nowiki>[[Image:Gramps-logo.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:Gramps-logo.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:Gramps-logo.png]]</nowiki></code>
To bypass the description page and link directly to a file , use the "Media" pseudo-namespace:
*<code><nowiki>[[Media:Gramps-logo.png]]</nowiki></code>
You can also make piped links if you want some other text to be used:
*<code><nowiki>[[:Image:Gramps-logo.png|link text]]</nowiki></code>
*<code><nowiki>[[Media:Gramps-logo.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:Gramps-logo.png|Item 1
Image:Gramps-logo.png|a link to [[Help:Contents]]
Image:Gramps-logo.png
Image:Gramps-logo.png
Image:Gramps-logo.png|''italic caption''
</gallery>
</pre>
is formatted as:
<gallery>
Image:Gramps-logo.png|Item 1
Image:Gramps-logo.png|a link to [[Help:Contents]]
Image:Gramps-logo.png
Image:Gramps-logo.png
Image:Gramps-logo.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==
[http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files MediaWiki help]
[[Category:Help|Images]]
{| {{Prettytable}}
|-
|bgcolor="#8DA7D6"|'''Description'''
|bgcolor="#8DA7D6"|'''You type'''
|bgcolor="#8DA7D6"|'''You get'''
|-
|Embed image<br /> (with alt text)
|
<code><nowiki>[[Image:Gramps-logo.png|Logo]]</nowiki></code>
|
[[Image:Gramps-logo.png|Logo]]
|-
|Link to description page
|
<code><nowiki>[[:Image:Gramps-logo.png]]</nowiki></code><br />
<code><nowiki>[[:Image:Gramps-logo.png|Sunflowers]]</nowiki></code>
|
[[:Image:Gramps-logo.png]]<br />
[[:Image:Gramps-logo.png|Logo]]
|-
|Link directly to file
|
<code><nowiki>[[Media:Gramps-logo.png]]</nowiki></code><br />
<code><nowiki>[[Media:Gramps-logo.png|Sunflowers]]</nowiki></code>
|
[[Media:Gramps-logo.png]]<br />
[[Media:Gramps-logo.png|Sunflowers]]
|-
|Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)
|
<code><nowiki>[[Image:Gramps-logo.png|center|thumb|100px|Logo]]</nowiki></code>
|
[[Image:Gramps-logo.png|center|thumb|100px|Logo]]
|}
==Uploaded files==
To use an image or other file which has been uploaded to the wiki, use:
*<code><nowiki>[[Image:Gramps-logo.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:Gramps-logo.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:Gramps-logo.png]]</nowiki></code>
To bypass the description page and link directly to a file , use the "Media" pseudo-namespace:
*<code><nowiki>[[Media:Gramps-logo.png]]</nowiki></code>
You can also make piped links if you want some other text to be used:
*<code><nowiki>[[:Image:Gramps-logo.png|link text]]</nowiki></code>
*<code><nowiki>[[Media:Gramps-logo.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:Gramps-logo.png|Item 1
Image:Gramps-logo.png|a link to [[Help:Contents]]
Image:Gramps-logo.png
Image:Gramps-logo.png
Image:Gramps-logo.png|''italic caption''
</gallery>
</pre>
is formatted as:
<gallery>
Image:Gramps-logo.png|Item 1
Image:Gramps-logo.png|a link to [[Help:Contents]]
Image:Gramps-logo.png
Image:Gramps-logo.png
Image:Gramps-logo.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==
[http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files MediaWiki help]
[[Category:Help|Images]]