User:Stephenj642/Visual
From Wikipedia, the free encyclopedia
This page explains how to display images and videos in Wikipedia pages.
The best markup for adding an image to a page in most situations is
[[File:Example.jpg|thumb|alt=Alternative text|Caption text]]
The best markup for adding a video to a page in most situations is
[[File:Example.ogg|frame|alt=Alternative text|Caption text]]
File markup begins with the filename, preceded by the File:
prefix with both enclosed in double square brackets – for example [[File:Example.png]]
. Codes may then be added. Each code must be separated with a pipe (|
). Some codes specify a display mode, which is like a preset – it will determine the way the image is displayed and which additional properties can be specified to further customise how the image is displayed. Codes may be in any order – with the exception of the caption, which should be last. Only the filename is required. This must be placed first.
Many existing files use the Image:
prefix instead of File:
. The rest of the markup is exactly the same. Additionally, Image:
may be used with any type of file, not just images.