GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing www.mediawiki.org — Help:Linking to files - MediaWiki
For linking from files to other pages, see: Help:Images#Altering the default link target.
First learnBefore you can link to files, you first need to know the basics of: Not the same as embeddingThis help page is about linking to files. Don't confuse that with embedding an image file in a page. Although they're both ways of using files, they're not the same. Embedding an image file for example, might be having a person's picture appear alongside the text on a page about that person. For information on how to embed an image, see Help:Images . Why link?In some situations, you don't want the file to be embedded in another page. You want a link on the page to take you to the file description page of a particular file. Or you may want the link to take you to the file itself. Here are some examples where you likely want to link rather than embed:
Link to a file description pageYou can create a link to a file's file description page by using a colon (
Note that if you forget to use the initial colon, you will instead be embedding an image. Link to actual fileYou can use the pseudo-namespace "Media" to link to the actual file on MediaWiki pages. The link will not take you to the file description page, but instead will deliver the file itself.
(If the above pattern actually produces a text link to the file description page, instead of the expected link to the actual file, it may be that your wiki's namespaces are configured out of compliance with this feature.) Direct links from external sitesAnother possibility is to use the Special:Redirect/file page (or its alias Special:Filepath). Unlike the above example, you can link to it from external websites as well as from MediaWiki pages. [[Special:Redirect/file/Wikipedia.png]] The parameters https://www.mediawiki.org/w/index.php?title=Special:Redirect/file/Wikipedia.png&width=100&height=100 | |||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |