Read the State Legislative Tracker. New edition available now!

Help:Images

From Ballotpedia
Revision as of 21:52, 3 February 2014 by Abqualls (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Editing Help
1328101905 Help.png
Index
Editing guide
Cheatsheet
Policies
Copyright
Textual standards
Visual standards
Glossary of terms
Edit review process

Before uploading images at Special:Upload, make sure you read and follow the image use policy. Please note that most images you might find on the Internet are copyrighted and not appropriate for uploading to Ballotpedia. If you did not create the image, or are unable or unwilling to verify its copyright status, do not upload the image. Also, in the cases of images where their owners have stipulated they be used for non-commercial purposes only, such images may not be uploaded to Ballotpedia unless you have the express permission of the owners of the images.

How to upload a new image

How to upload

You can upload an image by using the Upload file link in the toolbox, which is a link to Special:Upload. On most browsers, when you click on Special:Upload, you will see a "Browse..." button, which will bring up the standard file open dialog used on your particular computer. Once you go ahead and choose one of the images on your computer, it fills the name of that file into the text field next to the button. That name will be whatever name or title you chose for that image when you originally downloaded it onto your computer. You can and probably should change that name for purposes of uploading the image to Ballotpedia--choosing a more careful descriptive phrase that is most likely to distinguish your image from similar images others might have uploaded to Ballotpedia.

You must also check the box affirming that you are not violating any copyrights by uploading the file. Press the "Upload" button to finish the upload. This may take some time if you have a slow Internet connection.

Previously uploaded images

Please note that as with wiki pages, others may edit or delete your uploads if they think it serves Ballotpedia, and you may be blocked from uploading if you abuse the system.

How to add an image to an article

To make an uploaded image appear in an article, you need to edit the article and add the appropriate bit of code on the place in the article where you want the image to appear.

Without a caption

To insert an image with no caption, simply type:

[[Image:Image name]]

where you want the file to appear.

With a caption

To insert an image that you plan to include a caption for, type:

[[Image:Image name|thumb|Caption]]

where you want the file to appear.

With size instructions

If you want to make your image appear smaller or larger, include size instructions in the code, like this:

  • [[Image:Image name|200px]]
  • [[Image:Image name|350px]]

Technical aspects

The preferred formats are JPEG for photographic images, SVG for drawings and line-art illustration, PNG for non-vector graphic iconic images, Ogg Vorbis for sound and Ogg Theora for video.

Please name your files descriptively to avoid confusion.

To include the image in an article, use a link in the form:

[[Image:File.jpg]] or [[Image:File.png|alt text]]

To include an image as a thumbnail, use [[Image:Tool box.jpg|thumb|Tool box]].

Mini how-to

The Upload file screen has three fields.

The Source filename field with the browse button allows you to choose a file on your local system. The Destination filename is the name used to link to the image from articles. If JavaScript is enabled, it will be set automatically to the same name as the one you have specified in the Source filename field, but may be changed to any valid name you wish. For the convenience of non-JavaScript users, if the destination field is left blank, source filename will be used.

The Summary field appears below the image on an image page, and allows Wiki markup. Here you should include a brief description of what the image is, its source, and what license you are uploading it under.

As for the description of the content, if it’s an artwork, please provide brief historical background.

Submitting this information will upload the image and save the summary. There is no preview, as there is for editing pages. Nevertheless, after the image is uploaded, you can still click the edit button and make changes to the summary and license, should you make a mistake you did not catch beforehand. If there is already a file uploaded with the Destination filename that you chose, you are given the option to save anyway and overwrite the old file (although it remains in the image history), or returning to the upload form and specifying a new filename.

Most images should use [[Image:{name}|thumb|Example image caption]] (and should not specify a size). The other details are optional and can be placed in any order.

Type 
'thumb' / 'thumbnail' or 'frame'. Causes image to be displayed with specific formatting (see below).
Location 
'right', 'left', 'center' or 'none'. Determines placement of the image on the page. Defaults to 'right'.
Size 
{width}px or {width}x{height}px, scales the image to be no greater than the given width and height, keeping its aspect ratio.
Upright 
for use only on images that are taller than they are wide. This scales the image differently, considering both width and height instead of only width.
Border 
adds a border around the image
Caption 
Any element which cannot be identified as one of the above is assumed to be caption text.

Detailed syntax

Type

  • "thumbnail" or "thumb": Image is scaled down to a standard, user specified width, by default 180 pixels, and a box is added around the image. If a caption is written, it is shown below the image. Image defaults to placement on the 'right' unless overridden with the 'Location' attribute (see above).
  • "frame": Original image size is preserved, and a box is added around the image. If a caption is written, it is shown below the image.
  • (nothing specified): Original image size is preserved, no border is added around the image. If a caption is written, it is not shown.
  • "border": Same as if nothing is specified, but a border is added around the image.

Location

  • "right": Image including its box is placed on the right side of the page. The article text that follows the image flows around the image.
  • "left": Image including its box is placed on the left side of the page. The article text that follows the image flows around the image.
  • "center": Image including its box is placed in the center of the page. The article text that follows the image is placed below the image.
  • "none": Image including its box is placed on the left side of the page. The article text that follows the image is placed below the image.

Size

  • "100px": Scales the image down to make it 100 pixels wide. Replace any number for 100. If you specify "thumbnail" and a value here, this value will take precedence. If the image is already smaller than your specified value, the image stays at its size.
  • "100x200px": Scales the image to be no wider than 100 pixels and no higher than 200 pixels. Image will keep its original aspect ratio.
  • (nothing specified): Uses the size specified in preferences for logged in users, uses a size determined by resolution for anonymous users.

Caption

Any element which cannot be identified as one of the above is assumed to be caption text.

This article was taken and modified from Wikipedia.