15,091
edits
Changes
From Gramps
In MediaWiki, you should use File: for all file types, including images, as Image: is an outdated alias for backward compatibility.
|Embed image<br /> (with alt text)
|
<code><nowiki>[[ImageFile:Gramps-logo.png|Logo]]</nowiki></code>
|
[[ImageFile:Gramps-logo.png|Logo]]
|-
|Link to description page
|
<code><nowiki>[[:ImageFile:Gramps-logo.png]]</nowiki></code><br /><code><nowiki>[[:ImageFile:Gramps-logo.png|Sunflowers]]</nowiki></code>
|
[[:ImageFile:Gramps-logo.png]]<br />[[:ImageFile:Gramps-logo.png|Logo]]
|-
|Link directly to file
|Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)
|
<code><nowiki>[[ImageFile:Gramps-logo.png|center|thumb|100px|Logo]]</nowiki></code>
|
[[ImageFile: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>[[ImageFile: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>[[ImageFile: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>[[:ImageFile: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>[[:ImageFile: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>[[ImageFile:{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
<pre>
<gallery>
{...}
</gallery>
<pre>
<gallery>
</gallery>
</pre>
is formatted as:
<gallery>
</gallery>