Topic on Forum:Tech Wishlist And Bug Reports

Question on importing images from Wikipedia/Wikimedia Commons

8
Tennessean (talkcontribs)

How do I import images (preferably, of course, those under CC-BY-SA, Fair Use, and similar licenses) from Wikipedia and Wikimedia Commons? I've been having problems trying to import some images from those places, namely I don't know the first thing about importing images. I could honestly use some advice/help on this. Thank you!

GethN7 (talkcontribs)

It's quite simple. We have InstantCommons enabled, so all you have to do is find the filename of any file on Wikimedia Commons and add it to a page like so

[[File:Male.svg|50px]]

Which will result in:

Tennessean (talkcontribs)

I'm having trouble trying to place a picture in a userbox that I'm creating, so how do I do that? I've tried your suggestion, and when I try to see a preview, I only see the text of whatever pixel size (e.g. "45px") that I'm trying to set the image to, with the link showing up as a redlink. Am I actually doing it right and the userbox preview not recognizing the image that I'm trying to use until I actually click on "Save page", or is there more to this? I would appreciate a reply on this!

GethN7 (talkcontribs)

Let me make this easy on u:

Below is the classic userbox template

{{userbox 
| border-c = gray
| id       = EX (you can put a picture or a few letters here)
| id-c     = gray (the background of the picture or letters, change to your preference, or blank it to share the same background as "info-c))
| id-fc    = white (font color if you add text, change as preferred)
| id-s     = (text size, change as preferred, use a number)
| info     = sample text (add text here. You can also add wiki word links or even external ones)
| info-c   = white (same as id-c, but for the larger half of the userbox)
| info-fc  = black  (font color if you add text, change as preferred)
| info-s   = 8 (text size, change as preferred, use a number)
| info-op  = text-align:center; (don't change this)
}} 

What you get looks like:

EX sample text

To add an image, do this

{{userbox 
| border-c = gray
| id       = [[File:Male.svg|50px]] 
| id-c     = gray 
| id-fc    = white
| id-s     =
| info     = sample text
| info-c   = white
| info-fc  = black
| info-s   = 8
| info-op  = text-align:center;
}} 

And you get this:

sample text
Tennessean (talkcontribs)

Thing is, I'm trying to create a userbox for the Pale Moon web browser, but it's giving me this:

This troper uses Pale Moon

And I want the image to look like this, but at 45x45 pixels:

A little help could go a long way, especially for a complete MediaWiki newbie like me!

GethN7 (talkcontribs)

You'll have to upload the graphic file locally, since it's on Wikipedia, not Wikimedia Commons.

You're doing everything right, but since that file is on Wikipedia only (it's not under a free license, so it's considered fair use only and thus not allowed on Commons), you need to upload a copy of the file here and add the fair use license to it.

I'll save you some trouble and upload the file for you.

GethN7 (talkcontribs)

Did you a little favor. Copy and paste the text to your userpage to have the userbox you wanted. :)

{{Pale Moon Troper}}