|
Placing files using wikicode
If you’re trying to add an image or media file to a wiki page without using the VisualEditor, you’ll need to use wikicode. The basic wikicode format for putting images in looks like this:
two opening pipes: each option (called
square a parameter) is separated
brackets by one of these
by default, photos are two closing
aligned right; left and square
center are the alternatives brackets
[[File:John Naka’s Goshin, October 10, 2008.jpg | thumb | 260px | right | The bonsai masterpiece “Goshin” ]]
the file name: from Commons begins with “File:” and ends with the file extension (such as “.jpg”)
thumb: adding this word means to use the standard thumbnail format
size: to make the a caption: the text after
picture a specific pixel the last pipe is the caption
width, you can add that
here, or leave it out for
the standard size
You can copy the basic code for the file from the last page of the Upload Wizard or from the Use this file link on the file page. Insert the code into any wiki page by placing it within the text, wherever you want it to appear.
“Washington, D.C./Northeast” / Wikivoyage contributors / CC BY-SA 3.0
Let’s see... I’ll add my photo right here. Copy the code. Paste it in the article. Add the caption. And...
save page!
Once you’ve added the wikicode, click Save page. Your image will now accompany the text.
on display at the National Bonsai & Penjing Museum
John Naka’s Goshin, October 10, 2008 / Sage Ross / CC BY-SA 3.0
Near Northeast map / Peter Fitzgerald / CC BY-SA 3.0
Using files on other sites
The works on Commons are available for anyone to use on other websites. The file page for a work will indicate its copyright status. For some works, there are no copyright restrictions at all (although some non-copyright restrictions, such as publicity rights for recognizable images of people, may still apply). For works with free licenses, you must follow the terms of the license – typically by providing attribution to the author and preserving the license. In either case, it’s good practice to provide a link to original file on Commons as well.
The best way to use a Commons file on another website is with a credit line like this:
Pair of Merops apiaster feeding, Pierre Dalous, CC BY-SA 3.0
Title of work as given by its creator
With link to the file page so that others can find and use the original version
Creator’s License that the creator
name has assigned to this work
With link to their With link to the specific
profile page or Creative Commons license
website, if available
If you want to embed an image file directly from Commons, you can use the code provided by the Use this file link on the file page.
How to upload from a mobile device
If you have a smartphone or other mobile device with a camera, you can upload your photos right from your device, using either the Wikimedia Commons app for Android or iOS, or the mobile version of a Wikimedia site.
Дата добавления: 2015-09-10; просмотров: 92 | Поможем написать вашу работу | Нарушение авторских прав |