Hi,
This is slightly off subject, but I'm learning MediaWiki and looking at adding images to pages.
All the documentation on the MediaWiki site seems to use the File: command, but I notice CPCWiki is using Image:
Can anyone explain the difference and where this is documented?
Many thanks
As I understood 'Image:' will display the picture whereas 'File:' will provide a link to a file.
Many thanks for the reply, but I don't think that is the case.
Reading the documentation
http://www.inmotionhosting.com/support/edu/mediawiki/adding-content-mediawiki/insert-images-wiki
Well, there you got the answer. :)
Sorry, I don't understand.
I think it originally worked as TFM describes, but File now also displays the image if it is the correct format.
Bryce.
Well, oh, I'm glad if I make it to edit text. Else I take other pages as example. :laugh:
I'm curious to know which page has an image on it and is using File to Display it.
The pages I've looked at use image for Displaying the images, though perhaps a Test Page just to see if that Site is in error, otherwise maybe the Image option gives the user a better list of Options for Managing the Image like Size, Presentation perhaps?
Image: is the old MediaWiki namespace for images. File: is the new namespace for images and other uploads, used on Wikipedia and Wikimedia Commons too.
So basically you should use File: for brevity now. Image: is probably just an internal redirect to the File namespace in MediaWiki.
Use "File:" to include an image and ":File:" to link to an image/media description page.
For direct downloads (e.g. for linking to DSK images), use "Media:" instead.
Quote from: Morn on 14:08, 21 March 15
Image: is the old MediaWiki namespace for images. File: is the new namespace for images and other uploads, used on Wikipedia and Wikimedia Commons too.
So basically you should use File: for brevity now. Image: is probably just an internal redirect to the File namespace in MediaWiki.
Use "File:" to include an image and ":File:" to link to an image/media description page.
For direct downloads (e.g. for linking to DSK images), use "Media:" instead.
Well that's confusing. ???
Quote from: AMSDOS on 22:24, 21 March 15
Well that's confusing. ???
Basically all uploads go into the File namespace. So it makes sense to use "File:" to link to images. "Images:" isn't wrong, it just refers to a namespace that no longer exists in current versions of MediaWiki.
See Help:Namespaces - MediaWiki (https://www.mediawiki.org/wiki/Help:Namespaces) for an explanation of MediaWiki namespaces.
Morn really said it all; I don't think it's that confusing... "File:" has evolved over time, simply enough.
Quote from: Gryzor on 17:29, 22 March 15
Morn really said it all; I don't think it's that confusing... "File:" has evolved over time, simply enough.
I just meant it could become confusing if terms of what dealing with. Like Image clearly states you want to display an image & File is such a Broad term it could mean anything really, I'd almost forgotten what you use for Video's, I think it's media. But I guess if those other terms were scrapped and you just used File for everything that would become easier, but would involve an awful lot of rewriting of the Wiki. :D
Quote from: AMSDOS on 22:04, 22 March 15
I just meant it could become confusing if terms of what dealing with. Like Image clearly states you want to display an image & File is such a Broad term it could mean anything really, I'd almost forgotten what you use for Video's, I think it's media.
For YouTube videos you can also use the YT template. e.g. {{YT|hYHPRbcfCWs}}
Quote from: AMSDOS on 22:04, 22 March 15
But I guess if those other terms were scrapped and you just used File for everything that would become easier, but would involve an awful lot of rewriting of the Wiki. :D
As long as Wikipedia has articles that still use "Image:", MediaWiki will have to support it. So far nobody at WP seems to have bothered to bot-edit Image: out of existence. Therefore the CPCWiki legacy syntax can stay too. :)
Quote from: Morn on 23:04, 22 March 15
As long as Wikipedia has articles that still use "Image:", MediaWiki will have to support it. So far nobody at WP seems to have bothered to bot-edit Image: out of existence. Therefore the CPCWiki legacy syntax can stay too. :)
Fingers Crossed.
We'll cross the bridge when we come to it :D