Help:Images: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 6:
The following file formats are supported by default:
* .jpg or .jpeg : bitmap image compressed in the standard JPEG format (this lossy format is most suitable for photographs).
* .png : bitmap image in the ''[[w:Portable Network Graphics|Portable Network Graphics]]'' format (specified by the ''W3 Consortium'').
* .gif : bitmap image in the legacy ''Graphics Interchange Format''.
 
Other formats used on Wikimedia, and commonly enabled elsewhere (these may require extra set-up beyond what is enabled by default):
* .svg : scalable image in the ''Scalable Vector Graphics'' format (specified by the ''W3 Consortium''). See {{mediawiki|Manual:Image_Administration#SVG}}.
* .tiff : Tagged image format. Often used for high-resolution archival photographs. Often used with {{mediawiki|Extension:the PagedTiffHandler}} extension..
* .ogg, .oga, .ogv : Ogg multimedia (audio or video) Not an image format, but treated similarly. Often used with {{mediawiki|Extension:the OggHandler}} extension
* .pdf : multipaged documents in the ''Portable Document Format'' (initially specified by ''Adobe''). Often used in conjunction with {{mediawiki|Extension:PdfHandler}} extension.
* .djvu : multipaged bitmap documents in the ''DejaVu'' format (most often, scans of books). See {{mediawiki|Manual:How to use DjVu with MediaWiki}}
*: Only a single page of a .pdf or .djvu file is shown at one time.
 
Line 280:
==== mode parameter ====
{{MW 1.22|and after}}
Starting in 1.22 we have experimental mode parameter, taking options <ttcode>traditional, nolines, packed, packed-overlay,</ttcode> and<ttcode> packed-hover</ttcode>. Traditional is the original gallery type used by MediaWiki. Nolines is like traditional, but with less borders. packed causes images to have the same height, but different widths, with little space between the images. "packed-overlay" allows the caption to be overlaid on top of the image. Last of all "packed-hover" is like "packed-overlay", but with the caption only showing up on hover.
 
For example:
Line 302:
</pre>
 
Gives (mode: <ttcode>packed-hover</ttcode>):
<gallery mode="packed-hover">
Image:Astronotus_ocellatus.jpg|''[[commons:Astronotus ocellatus|Astronotus ocellatus]]'' (Oscar)
Line 476:
Additional MediaWiki markup or HTML/CSS formatting (for inline elements) is permitted in this displayed text (with the exception of embedded links that would break the surrounding link):
<pre>[http://www.example.com/some/image.png Example '''<del>rich</del>''' ''<ins>link text</ins>'' here.]</pre>
which renders as: [http://www.example.com/some/image.png Example '''<del>rich</del>''' ''<ins>link text</ins>'' here.]
 
If it is enabled on your wiki (see {{mediawiki|Manual:$wgAllowExternalImages}}), you can also embed external images. To do that, simply insert the image's url:
Line 519:
 
[[Category:Help|Images]]
[[Category:Image Administrivia]]