Commons:Embedding media

From Wikimedia Commons

English | Русский | Valencià | (+/- (http://commons.wikimedia.org/w/wiki.phtml?title=Template:Lang-em&action=edit))

Table of contents
[edit]

Media formats

[edit]

Images

Use PNG file format for internal embedded images.

See also:

[edit]

Sounds

Use Ogg files for sounds or videos.

See also: Commons:Sound

[edit]

Embedding media into Wikimedia pages

[edit]

Embedding internal media

"Internal" refers to both the same Wikimedia Project and Commons. An image name is assumed to refer to the one in the same project if it exists there, otherwise to one on Commons.

Only proper images can be automatically presented, sound is not automatically played.

To include an image in a page, use a link in the form [[image:file.jpg]] or [[image:file.png|alt text]] where file is the file name.

Example: Using [[Image:Wikimedia-logo.png]], the image Wikimedia-logo.png is included:

Image:Wikimedia-logo.png

To include a sound use [[media:file.ogg]]

[edit]

Embedding external media

External images can not always be embedded, this depends on the settings of the project: it has been disabled on many of the larger Wikipedias, including the English and German, to prevent vandalism and bandwidth theft from other sites, but it is allowed on many other Wikimedia projects, including Meta and the Dutch Wikipedia.

If enabled on this project there is an image here, otherwise just a link to an image: http://en.wikipedia.org/upload/b/bc/Wiki.png
(the text used for this image is http://en.wikipedia.org/upload/b/bc/Wiki.png)

[edit]

See also