CPCWiki forum

General Category => CPCWiki Discussion => Topic started by: jonesypeter on 21:21, 20 March 15

Title: MediaWiki Images
Post by: jonesypeter on 21:21, 20 March 15
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
Title: Re: MediaWiki Images
Post by: TFM on 21:49, 20 March 15
As I understood 'Image:' will display the picture whereas 'File:' will provide a link to a file.

Title: Re: MediaWiki Images
Post by: jonesypeter on 21:53, 20 March 15
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
Title: Re: MediaWiki Images
Post by: TFM on 22:19, 20 March 15
Well, there you got the answer.  :)
Title: Re: MediaWiki Images
Post by: jonesypeter on 22:22, 20 March 15
Sorry, I don't understand.
Title: Re: MediaWiki Images
Post by: Bryce on 22:29, 20 March 15
I think it originally worked as TFM describes, but File now also displays the image if it is the correct format.

Bryce.
Title: Re: MediaWiki Images
Post by: TFM on 22:50, 20 March 15
Well, oh, I'm glad if I make it to edit text. Else I take other pages as example.  :laugh:
Title: Re: MediaWiki Images
Post by: AMSDOS on 10:49, 21 March 15
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?
Title: Re: MediaWiki Images
Post by: 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.

Title: Re: MediaWiki Images
Post by: AMSDOS on 22:24, 21 March 15
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.  ???
Title: Re: MediaWiki Images
Post by: Morn on 23:41, 21 March 15
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.
Title: Re: MediaWiki Images
Post by: 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.
Title: Re: MediaWiki Images
Post by: AMSDOS on 22:04, 22 March 15
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
Title: Re: MediaWiki Images
Post by: Morn on 23:04, 22 March 15
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. :)
Title: Re: MediaWiki Images
Post by: AMSDOS on 09:15, 23 March 15
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.
Title: Re: MediaWiki Images
Post by: Gryzor on 19:26, 23 March 15
We'll cross the bridge when we come to it :D
Powered by SMFPacks Menu Editor Mod