Editing Help:Images

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
  
 
This page explains the image syntax when editing the wiki. Before using images in your page, your wiki must have file uploads enabled and you have to [[Special:Upload|upload a file]].
 
This page explains the image syntax when editing the wiki. Before using images in your page, your wiki must have file uploads enabled and you have to [[Special:Upload|upload a file]].
 
Note that wherever the <tt>File:</tt> prefix is used, the legacy <tt>Image:</tt> prefix is still supported as a synonym.
 
  
 
__TOC__
 
__TOC__
Line 14: Line 12:
 
|Embed image<br /> (with alt text)
 
|Embed image<br /> (with alt text)
 
|
 
|
<code><nowiki>[[File:Example.jpg|Sunflowers]]</nowiki></code>
+
<code><nowiki>[[Image:Example.jpg|Sunflowers]]</nowiki></code>
 
|
 
|
[[File:Example.jpg|Sunflowers]]
+
[[Image:Example.jpg|Sunflowers]]
 
|-
 
|-
 
|Link to description page
 
|Link to description page
 
|
 
|
<code><nowiki>[[:File:Example.jpg]]</nowiki></code><br />
+
<code><nowiki>[[:Image:Example.jpg]]</nowiki></code><br />
<code><nowiki>[[:File:Example.jpg|Sunflowers]]</nowiki></code>
+
<code><nowiki>[[:Image:Example.jpg|Sunflowers]]</nowiki></code>
 
|
 
|
[[:File:Example.jpg]]<br />
+
[[:Image:Example.jpg]]<br />
[[:File:Example.jpg|Sunflowers]]
+
[[:Image:Example.jpg|Sunflowers]]
 
|-
 
|-
 
|Link directly to file
 
|Link directly to file
Line 36: Line 34:
 
|Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)
 
|Thumbnail<br /> (centered, 100 pixels<br /> wide, with caption)
 
|
 
|
<code><nowiki>[[File:Example.jpg|center|thumb|100px|Sunflowers]]</nowiki></code>
+
<code><nowiki>[[Image:Example.jpg|center|thumb|100px|Sunflowers]]</nowiki></code>
 
|
 
|
[[File:Example.jpg|center|thumb|100px|Sunflowers]]
+
[[Image:Example.jpg|center|thumb|100px|Sunflowers]]
 
|-
 
|-
 
|Border<br /> (100 pixels) <br /> Results in a very small gray border
 
|Border<br /> (100 pixels) <br /> Results in a very small gray border
<!-- Note: because the fine gray border can not be seen when used on File:Exaple.jpg (sunflowers image), an image with a white background is used -->
+
<!-- Note: because the fine gray border can not be seen when used on Image:Exaple.jpg (sunflowers image), an image with a white background is used -->
 
|
 
|
<code><nowiki>[[File:Example-white-bg.jpg|border|100px]]</nowiki></code>
+
<code><nowiki>[[Image:Example-white-bg.jpg|border|100px]]</nowiki></code>
 
|
 
|
[[File:Example-white-bg.jpg|border|100px]]
+
[[Image:Example-white-bg.jpg|border|100px]]
 
|-
 
|-
 
|Frameless<br />Like thumbnail, respect user preferences for image width but without border and no right float.
 
|Frameless<br />Like thumbnail, respect user preferences for image width but without border and no right float.
 
|
 
|
<code><nowiki>[[File:Example.jpg|frameless]]</nowiki></code>
+
<code><nowiki>[[Image:Example.jpg|frameless]]</nowiki></code>
 
|
 
|
[[File:Example.jpg|frameless]]
+
[[Image:Example.jpg|frameless]]
 
|}
 
|}
  
 
== Syntax ==
 
== Syntax ==
 
The full syntax for displaying an image is:
 
The full syntax for displaying an image is:
  <code><nowiki>[[File:{name}|{options}]]</nowiki></code>
+
  <code><nowiki>[[Image:{name}|{options}]]</nowiki></code>
 
Where options can be zero or more of the following, separated by pipes:
 
Where options can be zero or more of the following, separated by pipes:
 
*<code>thumb</code>, <code>thumbnail</code>, <code>frame</code>, or <code>frameless</code>: Controls how the image is formatted
 
*<code>thumb</code>, <code>thumbnail</code>, <code>frame</code>, or <code>frameless</code>: Controls how the image is formatted
Line 88: Line 86:
 
|-
 
|-
 
|colspan=2|
 
|colspan=2|
<code><nowiki>[[File:Wiki.png|</nowiki>50px]]</code>
+
<code><nowiki>[[Image:Wiki.png|</nowiki>50px]]</code>
 
('''no alignment specified''', or default alignment)
 
('''no alignment specified''', or default alignment)
 
text text text text text text text text text text text text text text text
 
text text text text text text text text text text text text text text text
[[File:Wiki.png|50px]]
+
[[Image:Wiki.png|50px]]
 
text text text text text text text text text text text text text text text
 
text text text text text text text text text text text text text text text
 
|-
 
|-
 
|
 
|
<code><nowiki>[[File:Wiki.png|</nowiki>50px|'''none''']]</code>
+
<code><nowiki>[[Image:Wiki.png|</nowiki>50px|'''none''']]</code>
 
(specify alignment as '''none''')
 
(specify alignment as '''none''')
 
none none none none none none none none none none
 
none none none none none none none none none none
[[File:Wiki.png|50px|none]]
+
[[Image:Wiki.png|50px|none]]
 
none none none none none none none none none none
 
none none none none none none none none none none
 
|
 
|
<code><nowiki>[[File:Wiki.png|</nowiki>50px|'''center''']]</code>
+
<code><nowiki>[[Image:Wiki.png|</nowiki>50px|'''center''']]</code>
 
center center center center center center center
 
center center center center center center center
[[File:Wiki.png|50px|center]]
+
[[Image:Wiki.png|50px|center]]
 
center center center center center center center
 
center center center center center center center
 
|-
 
|-
 
|
 
|
<code><nowiki>[[File:Wiki.png|</nowiki>50px|'''left''']]</code>
+
<code><nowiki>[[Image:Wiki.png|</nowiki>50px|'''left''']]</code>
 
left left left left left left left left left left
 
left left left left left left left left left left
[[File:Wiki.png|50px|left]]
+
[[Image:Wiki.png|50px|left]]
 
left left left left left left left left left left left left left left left left left left left left
 
left left left left left left left left left left left left left left left left left left left left
 
|
 
|
<code><nowiki>[[File:Wiki.png|</nowiki>50px|'''right''']]</code>
+
<code><nowiki>[[Image:Wiki.png|</nowiki>50px|'''right''']]</code>
 
right right right right right right right right
 
right right right right right right right right
[[File:Wiki.png|50px|right]]
+
[[Image:Wiki.png|50px|right]]
 
right right right right right right right right right right right right right right right right right right
 
right right right right right right right right right right right right right right right right right right
 
|-
 
|-
Line 132: Line 130:
 
<pre>
 
<pre>
 
<gallery>
 
<gallery>
File:{filename}|{caption}
+
Image:{filename}|{caption}
File:{filename}|{caption}
+
Image:{filename}|{caption}
 
{...}
 
{...}
 
</gallery>
 
</gallery>
Line 143: Line 141:
 
<pre>
 
<pre>
 
<gallery>
 
<gallery>
File:Example.jpg|Item 1
+
Image:Example.jpg|Item 1
File:Example.jpg|a link to [[Help:Contents]]
+
Image:Example.jpg|a link to [[Help:Contents]]
File:Example.jpg
+
Image:Example.jpg
File:Example.jpg
+
Image:Example.jpg
File:Example.jpg|''italic caption''
+
Image:Example.jpg|''italic caption''
File:Example.jpg|on page "{{PAGENAME}}"
+
Image:Example.jpg|on page "{{PAGENAME}}"
 
</gallery>
 
</gallery>
 
</pre>
 
</pre>
 
is formatted as:
 
is formatted as:
 
<gallery>
 
<gallery>
File:Example.jpg|Item 1
+
Image:Example.jpg|Item 1
File:Example.jpg|a link to [[Help:Contents]]
+
Image:Example.jpg|a link to [[Help:Contents]]
File:Example.jpg
+
Image:Example.jpg
File:Example.jpg
+
Image:Example.jpg
File:Example.jpg|''italic caption''
+
Image:Example.jpg|''italic caption''
File:Example.jpg|on page "{{PAGENAME}}"
+
Image:Example.jpg|on page "{{PAGENAME}}"
 
</gallery>
 
</gallery>
  

Please note that all contributions to WPLUG may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WPLUG:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)