Difference between revisions of "Images"
(New page: The following will only work if you first '''upload an image file''' to Spydiewiki.com or if it '''already exists''' {|{{Articletable}} |- {{Tableheading}}'''Description''' {{Tableheadin...) |
|||
Line 1: | Line 1: | ||
The following will only work if you first '''upload an image file''' to Spydiewiki.com or if it '''already exists''' | The following will only work if you first '''upload an image file''' to Spydiewiki.com or if it '''already exists''' | ||
== Basics of displaying images == | |||
{|{{Articletable}} | {|{{Articletable}} | ||
|- | |- | ||
Line 62: | Line 62: | ||
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. | 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. | ||
== | == External files == | ||
You can link to an external file using the same syntax used for linking to an external web page. | You can link to an external file using the same syntax used for linking to an external web page. | ||
*<tt><nowiki>[http://url.for/some/image.png]</nowiki></tt> | *<tt><nowiki>[http://url.for/some/image.png]</nowiki></tt> | ||
Or with different text: | Or with different text: | ||
*<tt><nowiki>[http://url.for/some/image.png link text here]</nowiki></tt> | *<tt><nowiki>[http://url.for/some/image.png link text here]</nowiki></tt> | ||
== Image galleries == | == Image galleries == |
Revision as of 01:01, 3 March 2008
The following will only work if you first upload an image file to Spydiewiki.com or if it already exists
Basics of displaying images
Description | You type | You get |
Embed image (with alt text) |
[[Image:Testpicture_small.jpg|Mountains]] |
|
Link to description page |
[[:Image:Testpicture_small.jpg]] |
|
Link directly to file |
[[Media:Testpicture_small.jpg]] |
|
Thumbnail (centered, 100 pixels wide, with caption) |
[[Image:Testpicture_small.jpg|center|thumb|100px|Mountains]] |
|
Border (100 pixels) Results in a very small gray border |
[[Image:Testpicture_small.jpg|border|100px]] |
|
Frameless Like thumbnail, respect user preferences for image width but without border and no right float. |
[[Image:Testpicture_small.jpg|frameless]] |
Syntax
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}
- Special cases:
- page=1: displays the specified page when showing a djvu file.
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.
External 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]
Image galleries
It's easy to make a gallery of thumbnails with the <gallery> tag. The syntax is:
<gallery> Image:Filename.jpg|Caption 1 Image:Filename.jpg|Caption 2 etc. </gallery>
Captions are optional but strongly recommended, and may contain other formatting like links.
Example:
<gallery> Image:Testpicture_small.jpg|Item 1 Image:Testpicture_small.jpg|Item 2 Image:Testpicture_small.jpg|a link to the [[Main Page]] Image:Testpicture_small.jpg|''italic caption'' </gallery>
Results in:
a link to the Main Page
Related articles
- [[]]