Help:Managing files: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
If file uploads are enabled, you can upload certain types of files to the wiki. This is particularly useful for uploading images, which you want to place on an article, but you can also upload other types of file. | If file uploads are enabled, you can upload certain types of files to the wiki. This is particularly useful for uploading images, which you want to place on an article, but you can also upload other types of file. | ||
==Upload a file== | == Upload a file == | ||
# Prepare the file for upload. Make sure the file is exactly as you want it. Think about how big the file is. | # Prepare the file for upload. Make sure the file is exactly as you want it. Think about how big the file is. | ||
# In the [[Help:Navigation#Sidebar|sidebar]], under '''toolbox''', click "Upload file" | # In the [[Help:Navigation#Sidebar|sidebar]], under '''toolbox''', click "Upload file" | ||
| Line 10: | Line 10: | ||
If it is a large file, you may need to wait several seconds for the upload to complete. | If it is a large file, you may need to wait several seconds for the upload to complete. | ||
=== Uploading Multiple Files === | |||
Batch uploads are not supported by default by MediaWiki, the software that runs our wiki. However, Jadrian has created a command-line tool we can use. To upload several files at once: | |||
# [[:Image:Wikiuploadbot.tgz|Click here to download the script and support code]] | |||
# Decompress it: <code>tar -xzvf Wikiuploadbot.tgz</code> | |||
# <tt>cd</tt> into the new directory and run <code>./login.py</code> | |||
# Type in the password for [[User:Vrlwikibot|the VrlWiki bot]] --- email Jadrian if you don't know it | |||
# Run <code>yes | ./batch_upload.py file1 file2 file3 ...</code> | |||
== Using Images and Image Description Pages == | == Using Images and Image Description Pages == | ||
Revision as of 20:53, 6 April 2009
If file uploads are enabled, you can upload certain types of files to the wiki. This is particularly useful for uploading images, which you want to place on an article, but you can also upload other types of file.
Upload a file
- Prepare the file for upload. Make sure the file is exactly as you want it. Think about how big the file is.
- In the sidebar, under toolbox, click "Upload file"
- Next to the Source filename, click Browse to locate the file on your computer.
- Change the Destination filename to something descriptive, if necessary.
- Fill in the Summary, if necessary.
- Click the Upload file button.
If it is a large file, you may need to wait several seconds for the upload to complete.
Uploading Multiple Files
Batch uploads are not supported by default by MediaWiki, the software that runs our wiki. However, Jadrian has created a command-line tool we can use. To upload several files at once:
- Click here to download the script and support code
- Decompress it:
tar -xzvf Wikiuploadbot.tgz - cd into the new directory and run
./login.py - Type in the password for the VrlWiki bot --- email Jadrian if you don't know it
- Run
yes | ./batch_upload.py file1 file2 file3 ...
Using Images and Image Description Pages
After you've uploaded a file, you can use it in an article, with some special wiki syntax to create the link. See Help:Images.
Your file gets its very own 'Image Description Page' within the wiki (even if it isn't an image). You should edit this page to provide more information about the file. For example, many wiki projects are quite sensitive to copyright issues, and so you should explain where you got the file from, and what its copyright status is, on the description page. Any other useful descriptive notes could also be added there.
Listing files in the wiki
There are a number of Special Pages to help you view and manage files which have been uploaded. Go to 'Special Pages' (in the toolbox on the left) and then see...
- Gallery of new images - If you just uploaded one, you will see it here.
- File list shows all of the files
- Unused images helps you track down files which might not be needed.
See Help:Special pages for details of the other information available here.