imported>ZachPruckowski |
imported>Meg Taylor |
(299 intermediate revisions by 19 users not shown) |
Line 1: |
Line 1: |
| <!---#REDIRECT [[Help:Images and other uploaded files]]---!><!---Used to be a redirect--->
| | This document covers image usage on ''Citizendium''. It is a work in progress. |
| To add an image, the image file has to be uploaded. In the future, Citizendium may support uploading other types of media, such as sound or video, and the process of using a sound or video is similar to these directions.
| |
|
| |
|
| ==Getting to the the Upload Page==
| | See also [[CZ:Images/Revising Licenses|Revising Licenses]] for what to do if the license for an existing image has to be changed. |
| | {{TOC|right}} |
|
| |
|
| First save the image on your local computer in an acceptable format ('''NOTE:get full supported extensions list: it's in a config file somwhere'''), such as JPEG. Then go to the Toolbox, which is below the search box on the [[Help:Sidebar|sidebar]] on the left of page. Note that if you have a small monitor, you may need to scroll down to see it. Click the '''[[Special:Upload|Upload file]]''' button.
| | == Uploading Images == |
| | Uploading images to ''Citizendium'' is a fairly simple process if the [[CZ:Upload|Upload Wizard]] is used. The instructions below give an overview of the process. |
|
| |
|
| ==The Upload Page== | | === Step 1 — Prepare the image on your computer === |
| | Images should be uploaded at the highest resolution possible whilst keeping them below the 2MB size limit. Copies of the images will be automatically created on the server at the appropriate sizes for use in ''Citizendium'' articles.<br /> |
| | At present, the only types of image that can be uploaded to ''Citizendium'' are [[Portable Network Graphics|PNG]], [[GIF]], [[JPG]] and [[JPEG]]. PNG should be used for diagrams, whilst JPEG should be used for photos etc. GIF should only be used for animated images.<br /> |
| | SVG is a much better format for diagrams etc, but it is unfortunately not enabled on CZ at present. |
|
| |
|
| Once you have reached the [[Special:Upload|upload page]], you need to push the '''choose file''' button. This will allow you to find the image you want on your computer. Pick the image, and click '''Choose''' in the dialog box that comes up.
| | === Step 2 — Follow the instructions in the [[CZ:Upload|Upload Wizard]] === |
| | Go to the [[CZ:Upload|Upload Wizard]] by clicking on the "Upload File" link in the sidebar.<br /> |
| | Follow the instructions to choose the type of licensing for the image which you are about to upload. |
|
| |
|
| ==File name== | | === Step 3 — Fill in the upload form to upload the image === |
| The filename goes in the '''"destination filename" box''' | | The last step of the Upload Wizard will take you to a form which must be completed.<br /> |
| | The first two fields ask for the image to upload, which you must choose from your computer, and the name which the image should be given on Citizendium. Please choose a sensible, short, and descriptive name.<br /> |
| | The rest of the form is for image information - the name of the author, the source, etc. Please enter all the information which you know.<br /> |
| | Depending upon which options you chose in the Upload Wizard, you may have to make a choice of licences at the bottom of the form. In these cases guidance will be given at the top of the form, and a preview of each licence will be shown when it is selected. |
|
| |
|
| If you are uploading an image to replace another image, give it the same name as the image it is replacing. Otherwise, pick a name not in use. This may require some looking around to insure that you don't overwrite someone else's image. Also, if replacing an image, make sure no other pages are using the image you plan to replace.
| | === Step 4 — Credit line and Permission documentation === |
| | | Most images should have credit lines. On the image page, at the bottom of the list of image details, is a link which can be clicked to create a credit line for that image.<br /> |
| Choose a name for an image as carefully as you would choose an article name, and use proper spacing and capitalization: the name may not be visible in a page that embeds the image, but it is, for example, on the page for a category that contains the image.
| | Images which are used by permission from the copyright holder must have this permission documented. If you chose the correct option in the Upload Wizard, a link will be shown on the image page just below the image itself which you should click to create the permission page. |
| | |
| ==The description==
| |
| | |
| | |
| ==Linking==
| |
| | |
| To link to an uploaded file, e.g. So.gif, use <nowiki>[[Media:So.gif]]</nowiki> instead of <nowiki>[[Image:So.gif]]</nowiki>, giving [[Media:So.gif]]; to link to the image description page, use <nowiki>[[:Image:So.gif]]</nowiki>, giving [[:Image:So.gif]] (the first colon is not displayed).
| |
| | |
| [[Help:Piped link|Piped link]]s work as usual.
| |
| | |
| [[Help:Interwiki linking|Interwiki linking]] style gives a link to the image description page. For embedding (if possible, see below) and linking to the file itself, use external link style.
| |
| | |
| If [[Help:Interwiki linking#Interlanguage_link_.28software_feature.29|interlanguage links]] would be applicable, use a colon in front of the language code, e,g. <nowiki>[[:de:Bild:Europa-Pos.png]]</nowiki>, to avoid the link being put in the margin.
| |
| | |
| External link syntax is as usual. However, if you want a link to an image proper on a page of a project that allows embedded external images, use a bracketed link syntax and not just the URL, to prevent embedding.
| |
| | |
| For using an image as a link to another document, see [[Help:Navigational image]].
| |
| | |
| For users who allow '''non-image uploads''', e.g. office files, the keyword 'media' is misleading because office documents are not typically classed as media, in the context of audio/video etc. But it is the correct syntax to use when linking to a non-image file.
| |
| | |
| ===Embedding internal images===
| |
| | |
| "Internal" refers to both the same project and Commons. An image name is assumed to refer to the one in the same project if it exists there, otherwise to one on Commons.
| |
| | |
| Only images proper can be automatically presented, sound is not automatically played.
| |
| | |
| An embedded internal image automatically links to the [[help:image page|image page]], which shows the full image, or, depending on preferences, a reduced version with a link to the full version. The page also provides info about the image.
| |
| | |
| [[image:tst.png|thumb|50px|[[Media:tst.png|actual size]]]]
| |
| To add the uploaded image to an article as a thumbnail, one can use <nowiki>[[Image:</nowiki> ''image name including extension'' |thumb|''caption''<nowiki>]]</nowiki> or
| |
| <nowiki>[[Image:</nowiki> ''image name including extension'' |thumb|''width in pixels'' px|''caption''<nowiki>]]</nowiki>.
| |
| | |
| The default thumbnail width can be set in the preferences, so typically it is better ''not'' to specify "px", in order to respect the users' preferences (unless, for a special reason, a specific size is required regardless of preferences, or a size is specified outside the range of widths 120-300 that can be set in the preferences).
| |
| | |
| The caption can contain links. This format allows both size reduction and enlargement. Both the image itself and an icon link to the image page. The icon has the link title "Enlarge" in its hoverbox, even in cases where the image on the image page is smaller. Depending on preferences the image on the image page may be smaller than the thumbnail image, so a link may be convenient from the thumbnail straight to the image in actual size. E.g. <nowiki>[[image:tst.png|thumb|50px|[[Media:tst.png|actual size]]]]</nowiki>{{-}}
| |
| | |
| [[image:Middle_east.jpg|thumb|left|Middle East; for more detailed pdf-version see [http://www.cia.gov/cia/publications/factbook/reference_maps/pdf/middle_east.pdf]]]
| |
| | |
| For more possibilities, see [[en:Wikipedia:Extended image syntax]]. Also, the source of existing pages with images are useful as examples. {{clr}}
| |
| | |
| ===Image at the left===
| |
| | |
| '''<nowiki>[[image:tst.png|left|thumb|50px|[[help:contents|demo]]]]</nowiki>''' puts the image at the left; text that follows floats to the right of it; if a second image immediately comes after the first, the second abuts to the right side of the first; if there is text in between then the second image is at the lower right of the first, under this text:
| |
| | |
| [[image:tst.png|left|thumb|50px|[[help:contents|demo]]]][[image:tst.png|left|thumb|50px|[[help:contents|demo]]]] [[image:tst.png|left|thumb|50px|[[help:contents|demo]]]] ''Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.'' between the 3rd and 4th images. [[image:tst.png|left|thumb|50px|[[help:contents|demo]]]] ''Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.'' after the 4th image.
| |
| {{clr}}
| |
| With '''<nowiki>[[image:tst.png|none|thumb|50px|[[help:contents|demo]]]]</nowiki>''' the image is put at the left, and text that follows starts below it.
| |
| | |
| [[image:tst.png|none|thumb|50px|[[help:contents|demo]]]]''Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent lupta''
| |
| | |
| ===Image at the right===
| |
| | |
| '''<nowiki>[[image:tst.png|right|thumb|50px|[[help:contents|demo]]]]</nowiki>''' puts the image at the right; text that follows floats to the left of it. The situation is not symmetric with the case above: a second image is put at the extreme right again, under the first.
| |
| | |
| [[image:tst.png|right|thumb|50px|[[help:contents|demo]]]] ''zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.'' after the 1st image.[[image:tst.png|right|thumb|50px|[[help:contents|demo]]]] ''after the 2nd image.{{clr}}
| |
| | |
| ===Using full width again===
| |
| | |
| [[image:tst.png|left|thumb|50px|[[help:contents|demo]]]]Use '''<nowiki><br clear="all" /></nowiki>''', or on projects that have [[Template:Clr]] (Meta and en:): <nowiki>{{clr}}</nowiki>. Text floats around the image until it gets to <nowiki>{{clr}}</nowiki> (in Meta) like this.{{clr}}After <nowiki>{{clr}}</nowiki>, however, text can float no longer, and restarts from under the image, using the full width again like this,...... like this, like this, like this, like this, like this, like this, like this.
| |
| | |
| ===Inline images===
| |
| Inline images cannot have a caption, but they can have a [[w:Wikipedia:Alternative text for images|"title"-attribute]] (often misidentified as the "alt" attribute, which has a different purpose), which is shown in the hoverbox (in the cases above, for the image it is the same as the caption, and for the enlarge icon it is "Enlarge"). It is the last item of the image code, hence, if there is only the image name with prefix "image:" it gives that; if there is an empty item by ending with a pipe character ("|") it gives none; otherwise, it gives the image code item that happens to be last, unless a proper text is specified.
| |
| | |
| The size of the images can be reduced but they can not be enlarged.
| |
| | |
| Example (note the hoverbox too): "<nowiki>text [[image:Wikipedia minilogo.gif]] text [[image:Wikipedia minilogo.gif|</nowiki>'''5px'''<nowiki>|]] text [[image:Wikipedia minilogo.gif|</nowiki>'''100px'''<nowiki>|demo]] text</nowiki>" gives "text [[image:Wikipedia minilogo.gif]] text [[image:Wikipedia minilogo.gif|5px|]] text [[image:Wikipedia minilogo.gif|100px|demo]] text".
| |
| | |
| ===Demo===
| |
| | |
| Below one can see the result of the three types of internal link style and external link style on this project. To test this in another project, copy the wikitext there. If applicable, check also the interlanguage links at the margin of the page. Note that some links go to the image description page, others just to the image itself.
| |
| | |
| *<nowiki>[[Image:Tile Hill train 550.jpg]]</nowiki>
| |
| [[Image:Tile Hill train 550.jpg]]
| |
| | |
| *<nowiki>[[:Image:Tile Hill train 550.jpg]]</nowiki>
| |
| [[:Image:Tile Hill train 550.jpg]]
| |
| | |
| *<nowiki>[[Media:Tile Hill train 550.jpg]]</nowiki>
| |
| [[Media:Tile Hill train 550.jpg]]
| |
| | |
| *external, with label: <nowiki>[http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg train]</nowiki>
| |
| [http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg train]
| |
| | |
| *external, footnote style: <nowiki>[http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg]</nowiki>
| |
| [http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg]
| |
| | |
| *external, just the URL: <nowiki>http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg</nowiki> http://en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg
| |
| | |
| | |
| | |
| ==Gallery tag, category, table of images==
| |
| The gallery-tag is a quick way to show thumbnails in four columns. Each entry is of the form "Image:''image name'' or "Image:''image name''|''caption, possibly with links''". It also allows text taking the position of an image, but not with links: if a text entry contains a link, the whole entry is ignored; an image tag with square brackets is also ignored.
| |
| | |
| <pre><gallery>
| |
| A-L
| |
| Image:Drenthe-Position.png|[[w:Drenthe|Drenthe]], the least crowded province
| |
| Image:Flevoland-Position.png
| |
| Image:Friesland-Position.png
| |
| [[Friesland]] is beautiful
| |
| Image:Gelderland-Position.png
| |
| Image:Groningen-Position.png
| |
| Image:Limburg-Position.png
| |
| M-Z
| |
| Image:Noord_Brabant-Position.png
| |
| Image:Noord_Holland-Position.png
| |
| Image:Overijssel-Position.png
| |
| Image:Zuid_Holland-Position.png|[[w:South Holland|South Holland]], the most crowded province
| |
| Image:Utrecht-Position.png
| |
| Image:Zeeland-Position.png
| |
| </gallery></pre>
| |
| | |
| gives:
| |
| | |
| <gallery>
| |
| A-L
| |
| Image:Drenthe-Position.png|[[w:Drenthe|Drenthe]], the least crowded province
| |
| Image:Flevoland-Position.png
| |
| Image:Friesland-Position.png
| |
| [[Friesland]] is beautiful
| |
| Image:Gelderland-Position.png
| |
| Image:Groningen-Position.png
| |
| Image:Limburg-Position.png
| |
| M-Z
| |
| Image:Noord_Brabant-Position.png
| |
| Image:Noord_Holland-Position.png
| |
| Image:Overijssel-Position.png
| |
| Image:Zuid_Holland-Position.png|[[w:South Holland|South Holland]], the most crowded province
| |
| Image:Utrecht-Position.png
| |
| Image:Zeeland-Position.png
| |
| </gallery>
| |
| | |
| Note that, with the gallery tag, the images have a single fixed width.
| |
| | |
| Depending on the browser, a long caption may or may not widen a whole column of images:
| |
| *even if it does, if necessary to fit the four columns on the screen, captions wrap automatically
| |
| *alternatively, a long caption makes the whole row taller, because too long captions wrap to produce multiple lines in their container. See also [[w:Wikipedia:Gallery]].
| |
| | |
| A gallery of images in a [[Help:Category|category]] is automatically shown as the fourth section of the category page. The first 20 characters of the image name are shown, with dots if that is not the full name. Both the image and the name link to the image page. No alternative text or other links are possible. Also the file size is shown.
| |
| | |
| For a comparison, see [[commons:Category:William-Adolphe Bouguereau]].
| |
| | |
| Using table syntax, with images in separate cells, and the image syntax explained elsewhere on this page, gives more control over size, layout, captions, etc. than each of these two methods. However, only a category automatically gives file sizes.
| |
| | |
| Example of an image table:
| |
| <pre>
| |
| {|
| |
| |+'''Provinces of the Netherlands'''
| |
| |-
| |
| | valign="top"|
| |
| [[Image:Drenthe-Position.png|thumb|left|150px|[[w:Drenthe|]], the least crowded province]]
| |
| | valign="top"|
| |
| [[Image:Flevoland-Position.png|thumb|left|100px|]]
| |
| | valign="top"|
| |
| [[Image:Friesland-Position.png|thumb|left|100px|]]
| |
| |-
| |
| |
| |
| |-
| |
| | valign="top"|
| |
| [[Image:Gelderland-Position.png|thumb|left|100px|]]
| |
| | valign="top"|
| |
| [[Image:Zuid_Holland-Position.png|thumb|left|100px|[[w:South Holland|]], the most crowded province]]
| |
| | valign="top"|
| |
| [[Image:Utrecht-Position.png|thumb|left|50px|]]
| |
| |}
| |
| </pre>
| |
| | |
| gives:
| |
| | |
| {|
| |
| |+'''Provinces of the Netherlands'''
| |
| |-
| |
| | valign="top"|
| |
| [[Image:Drenthe-Position.png|thumb|left|150px|[[w:Drenthe|Drenthe]], the least crowded province]]
| |
| | valign="top"|
| |
| [[Image:Flevoland-Position.png|thumb|left|100px|]]
| |
| | valign="top"|
| |
| [[Image:Friesland-Position.png|thumb|left|100px|]]
| |
| |-
| |
| |
| |
| |-
| |
| | valign="top"|
| |
| [[Image:Gelderland-Position.png|thumb|left|100px|]]
| |
| | valign="top"|
| |
| [[Image:Zuid_Holland-Position.png|thumb|left|100px|[[w:South Holland|South Holland]], the most crowded province]]
| |
| | valign="top"|
| |
| [[Image:Utrecht-Position.png|thumb|left|50px|]]
| |
| |}
| |
| | |
| Note that, with this method, each image has a width specified by the size option, if any, and a height depending on whether there is caption or not, and how long the caption is. The width of a column is determined by the widest image in it, and the height of the row is determined by the tallest image in it.
| |
| | |
| | |
| | |
| ==Navigational maps==
| |
| | |
| Navigational maps like [http://www.sdu.nl/staatscourant/gemeentes/gemprovin.htm#ZH] have map areas linked to pages. The html with <area> tags can not be put in the wikitext. However, there are the following possibilities:
| |
| *[[Help:EasyTimeline syntax|EasyTimeline]] allows the creation of an image and a page embedding that image, with rectangular map areas defined by <area> tags in the html. The [[w:hyperlink|title of a link]] to a non-internal page is only the domain name, e.g. "en.wikipedia.org/..". The length and width of the rectangle can not be controlled, except that it depends on the length of the link label and its font size. In case of overlap of rectangles one has to look at the hoverbox or statusbar to avoid following the wrong link. In case of much overlap it may not be possible to use all links.
| |
| *One can divide an image in rectangles, like in these [[w:en:Template_talk:Game_of_Go_Position#No_comment_tags_needed|chess and go positions]], or superimpose an area with images (see above) and link each rectangle/image to the desired target by means of a redirect on the image page (provided that the target is internal).
| |
| | |
| '''See also:'''
| |
| *[[Help:Images_and_other_uploaded_files#Putting_text_in_an_image.2C_superimposing_images.2C_e.g._for_locator_maps|Superimposing links on an image]]
| |
| *[[w:en:Downtown Ottawa#Map|Map of Downtown Ottawa]], [[w:en:Wellington Street]].
| |
| | |
| ===Examples using EasyTimeline===
| |
| | |
| '''Example 1'''
| |
|
| |
|
| | == Using Images == |
| | {{Image|PepperThreeAmigosSerrano.jpg|right|250px|Example of image usage on ''Citizendium''}} |
| | The code to add an image to a Citizendium article is very simple, and can be added to the page by clicking the image button in the toolbar above the edit box.<br /> |
| | The code inserted will be as follows: |
| <pre> | | <pre> |
| <timeline>
| | {{Image|Example.jpg|right|250px|Image Caption}} |
| ImageSize = width:400 height:150
| |
| PlotArea = width:400 height:150 left:0 bottom:0
| |
| TimeAxis = orientation:vertical # dummy, required
| |
| Period = from:0 till:1 # dummy, required
| |
| Define $s = fontsize:XL
| |
| TextData =
| |
| pos:(50,120) $s text:[http://en.wikipedia.org/wiki/Leiden|o Leiden]
| |
| pos:(150,110) $s text:[http://en.wikipedia.org/wiki/Alphen%20aan%20den%20Rijn|o Alphen aan den Rijn]
| |
| pos:(10,80) $s text:[http://en.wikipedia.org/wiki/The%20Hague|o The Hague]
| |
| pos:(50,40) $s text:[http://en.wikipedia.org/wiki/Rotterdam|o Rotterdam]
| |
| </timeline>
| |
| </pre> | | </pre> |
| | Note that a credit line will appear automatically if the image's credit subpage has been created (see link on the image's page).<br/> |
| | The first parameter, <code>Example.jpg</code>, is the name of the image without the namespace. You must replace "Example.jpg" with the name of the image which you want to use. The template will know to look in the "images" namespace.<br /> |
| | The second parameter is the image alignment—acceptable values are <code>left</code>, <code>right</code>, or <code>center</code> (US spelling only).<br /> |
| | The third is the image size—this can either be specified as a width, eg <code>250px</code>, or as the height and width of a box which the image should be constrained to, eg <code>100x250px</code>.<br /> |
| | The final parameter is the caption, which will be displayed below the image. This can be left blank if no caption is wanted.<br/> |
| | Please do not include spaces on either side of the "pipe" character separating the fields as this will impair the functionality of the template. Spaces between words within fields are acceptable. |
|
| |
|
| gives
| | For example, the code <code><nowiki>{{Image|PepperThreeAmigosSerrano.jpg|right|250px|Example of image usage on ''Citizendium''}}</nowiki></code> results in the image to the right. |
| | |
| | |
| <timeline>
| |
| ImageSize = width:400 height:150
| |
| PlotArea = width:400 height:150 left:0 bottom:0
| |
| TimeAxis = orientation:vertical # dummy, required
| |
| Period = from:0 till:1 # dummy, required
| |
| Define $s = fontsize:XL
| |
| TextData =
| |
| pos:(50,120) $s text:[http://en.wikipedia.org/wiki/Leiden|o Leiden]
| |
| pos:(150,110) $s text:[http://en.wikipedia.org/wiki/Alphen%20aan%20den%20Rijn|o Alphen aan den Rijn]
| |
| pos:(10,80) $s text:[http://en.wikipedia.org/wiki/The%20Hague|o The Hague]
| |
| pos:(50,40) $s text:[http://en.wikipedia.org/wiki/Rotterdam|o Rotterdam]
| |
| </timeline> | |
| | |
| | |
| '''Example 2'''
| |
| | |
| <pre> | |
| <timeline>
| |
| Preset = TimeHorizontal_AutoPlaceBars_UnitYear
| |
| ImageSize = width:500 barincrement:50
| |
| Period = from:0 till:12
| |
| BarData=
| |
| bar:a
| |
| bar:b
| |
| bar:c
| |
| Define $s = fontsize:XL
| |
| BackgroundColors = canvas:white
| |
| PlotData=
| |
| width:20
| |
| shift:(45,-5)
| |
| bar:a from:3 till:4 $s text:[http://en.wikipedia.org/wiki/Leiden|Leiden]
| |
| bar:a from:6 till:7 $s text:[http://en.wikipedia.org/wiki/Alphen%20aan%20den%20Rijn|Alphen aan den Rijn]
| |
| bar:b from:1 till:2 $s text:[http://en.wikipedia.org/wiki/The%20Hague|The Hague]
| |
| bar:c from:3 till:4 $s text:[http://en.wikipedia.org/wiki/Rotterdam|Rotterdam]
| |
| </timeline>
| |
| </pre>
| |
| | |
| gives
| |
| | |
| | |
| <timeline>
| |
| Preset = TimeHorizontal_AutoPlaceBars_UnitYear
| |
| ImageSize = width:500 barincrement:50
| |
| Period = from:0 till:12
| |
| BarData=
| |
| bar:a
| |
| bar:b
| |
| bar:c
| |
| Define $s = fontsize:XL
| |
| BackgroundColors = canvas:white
| |
| PlotData=
| |
| width:20
| |
| shift:(45,-5)
| |
| bar:a from:3 till:4 $s text:[http://en.wikipedia.org/wiki/Leiden|Leiden]
| |
| bar:a from:6 till:7 $s text:[http://en.wikipedia.org/wiki/Alphen%20aan%20den%20Rijn|Alphen aan den Rijn]
| |
| bar:b from:1 till:2 $s text:[http://en.wikipedia.org/wiki/The%20Hague|The Hague]
| |
| bar:c from:3 till:4 $s text:[http://en.wikipedia.org/wiki/Rotterdam|Rotterdam]
| |
| </timeline>
| |
| | |
| ===Alternatives===
| |
| | |
| Some attempts for other alternatives (note the hover boxes):
| |
| | |
| {| | |
| |
| |
| | [[w:Leiden|o]]
| |
| |
| |
| |-
| |
| | [[w:The Hague|o]]
| |
| |
| |
| |-
| |
| |
| |
| | [[w:Rotterdam|o]]
| |
| |
| |
| |}
| |
| | |
| [[w:Ascii art|Ascii art]] map, with both the city outline and the label clickable:
| |
| | |
| [[w:Leiden|x]]
| |
| [[w:Leiden|xxx]] [[w:Leiden|Leiden]]
| |
| [[w:Leiden|x]]
| |
|
| |
| [[w:The Hague|xx]]
| |
| [[w:The Hague|xxxx]] [[w:The Hague|The Hague]]
| |
| [[w:The Hague|xxx]]
| |
|
| |
| [[w:Rotterdam|xx]]
| |
| [[w:Rotterdam|xxxxx]] [[w:Rotterdam|Rotterdam]]
| |
| [[w:Rotterdam|xxxx]]
| |
| | |
| When external images can be embedded:
| |
| | |
| {|
| |
| |
| |
| | [[w:Leiden|http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png]]
| |
| |
| |
| |-
| |
| | [[w:The Hague|http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png]]
| |
| |
| |
| |-
| |
| |
| |
| | [[w:Rotterdam|http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png]]
| |
| |
| |
| |}
| |
| | |
| The html titles are "w: Leiden", etc., the alt attribute is "Tst.png". [[w:Opera (browser)|Opera]] shows the title in the hoverbox, and also the url, [[w:Internet Explorer|IE]] only shows the titles.
| |
| | |
| With labels:
| |
| | |
| {| | |
| ! width="15px"|
| |
| | [[w:Leiden|http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png Leiden]]
| |
| |
| |
| |-
| |
| ! colspan="2" align="left" | [[w:The Hague|http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png The Hague]]
| |
| |
| |
| |
| |
| |-
| |
| |
| |
| | [[w:Rotterdam|http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png Rotterdam]]
| |
| |
| |
| |}
| |
| | |
| See also [[m:Maps]], [[m:Maps' clickability]].
| |
| | |
| ==Uploading==
| |
| | |
| Before uploading please ensure that you have rights to upload and redistribute the image(s) in question, and that they comply with any further [[Commons:Commons:Licensing|licensing requirements]] of the Wikimedia Commons project and other [[Commons:Project_plan#Criteria_for_inclusion|criteria for inclusion]].
| |
| | |
| In the menu on the left under "toolbox" you will have a link named "Upload file". On the following page on most browsers, you will see a "Browse..." button, which will
| |
| bring up your operating system's standard file open dialog.
| |
| Choosing a file will fill the name of that file into the text
| |
| field next to the button.
| |
| You must also check the box affirming that you are not
| |
| violating any copyrights by uploading the file.
| |
| Press the "Upload file" button to finish the upload.
| |
| This may take some time if you have a slow internet connection.
| |
| | |
| The preferred formats are JPEG for photographic images, PNG
| |
| for drawings and other iconic images, and OGG for sounds.
| |
| Please name your files descriptively to avoid confusion.
| |
| | |
| Please note that as with wiki pages, others may edit or
| |
| delete your uploads if they think it serves the project, and
| |
| you may be blocked from uploading if you abuse the system.
| |
| | |
| | |
| When a file is uploaded with the same name as an existing one, the old one is replaced. If that is not the intention one has to check in advance that the same name does not exist yet, because currently the system does not warn against overwriting. For example, click on http://meta.wikipedia.org/wiki/Image:A and replace the A in the address bar of the browser with the file name. Alternatively use the search feature in [[Special:Imagelist]].
| |
| | |
| When a media file is replaced by uploading a new one with the same name (e.g. an image in an article is replaced), this does not show up in the page history of the article, nor in the [[Help:Related changes|Related changes]] of the article, nor in the revision history of the image description page (unless the description section is also changed). However, it is recorded in the Image History section of the image description page, and it changes [[Meta:Upload log]]. Therefore, to watch changes in images in an article, it is not sufficient to watch the article itself and the image description pages ("watching" in the sense of putting on the list of "watched pages"), but one should watch the Upload log also.
| |
| | |
| [[Special:Imagelist]] provides the same information as the [[Meta:Upload log|Upload log]], but it uses the user's local time instead of the default time (set to [[en:Coordinated Universal Time|Coordinated Universal Time]] for Wikimedia projects). In addition it gives the file sizes. Further it allows loading of portions and sorting by size in addition to sorting by date, and it has not only links to the image description pages, but also directly to the images.
| |
| | |
| *[http://meta.wikipedia.org/w/wiki.phtml?title=Special:Imagelist&sort=bydate&limit=50 Last 50 uploaded files]
| |
| *[[MediaWiki file usage]] - technical notes
| |
| | |
| ===Supported file types ===
| |
| Apart from text, MediaWiki supports the following media ''inline'':
| |
| * images -- preferred formats: [[w:PNG|PNG]], [[w:JPEG|JPEG]], [[w:GIF|GIF]].
| |
| | |
| Currently the following file types can be uploaded:
| |
| | |
| :'png', 'gif', 'jpg'/'jpeg', 'ogg'.
| |
| | |
| For security reasons some file types that could be uploaded in the past can no longer be uploaded, but the files already uploaded can still be used.
| |
| | |
| [[w:SVG|SVG]] images uploaded earlier can be linked to, but not be directly embedded, e.g. [[Media:Wikipedia3fnlc1.svg]] ([[:Image:Wikipedia3fnlc1.svg|image description page]]) - see also [[m:SVG image support]].
| |
| | |
| There may be a size limit, the largest one on en: is 6.5 megabytes (but please be reasonable).
| |
| | |
| The most common type of media apart from images is:
| |
| | |
| * sound -- preferred format: Ogg [[w:Vorbis|Vorbis]].
| |
| | |
| If you want to upload file types other than .jpg or .ogg, e.g., .pdf, in newer versions of mediawiki, you have to modify the file [[LocalSettings.php]] by copying the variable and its contents from [[DefaultSettings.php]]. Afterward, you can edit it accordingly:
| |
| $wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg','doc','xls','ppt','mp3','sxc','pdf' );
| |
| | |
| You may also need to remove this extension from the [[#Uploading_non-image_files|filetype blacklist]] (in /includes/[http://www.mediawiki.org/wiki/Help:Configuration_settings DefaultSettings.php]).
| |
| | |
| Remarks:
| |
| | |
| * [[w:Wikimedia|Wikimedia]] specific: see [[m:Video policy]]
| |
| * for reasons of security executable programs are not allowed by default
| |
| | |
| Images can also be produced by the system from specifications in wikitext:
| |
| *[[Help:Formula|Formulas]] (e.g. [http://meta.wikimedia.org/math/3187b0dd4e53e474d81e26f775c1cdfa.png The sum of squares of integers from 1 to ''N''])
| |
| *[[Help:EasyTimeline syntax|Timelines, navigational maps, etc.]] (e.g. [http://meta.wikimedia.org/upload/timeline/d12a83ed39e720e3d4eb41241afdef3d.png Soviet Leaders])
| |
| *thumbnails of uploaded images (e.g. [http://meta.wikimedia.org/upload/thumb/0/0b/180px-Canterbury_Tales.png An image from ''The Canterbury Tales'']]) (saves bandwidth compared with letting the browser do the reduction)
| |
| | |
| For [[Help:Table|tables]] the system produces HTML, not an image file, but some tables are effectively images produced by the browser, e.g. if the cells are empty colored boxes. Example: see [[m:Template talk:Rectangle 8x8]].
| |
| | |
| | |
| === Uploading non-image files ===
| |
| By default, MediaWiki only allows you to upload certain types of files (extensions ''gif'', ''jpg'', ''jpeg'', ''ogg'' and ''png''). This is managed by this order in includes/DefaultSettings.php:
| |
| :$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg' );
| |
| | |
| | |
| If you want to be able to upload other file types, for instance ZIP files you must add this line to LocalSettings.php:
| |
| :$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'zip');
| |
| '''Caution''': do not modify the line in DefaultSettings.php because it will break when updating
| |
| | |
| Also you may find php and apache limit the filesize of uploads too giving spurious messages on the upload page such as "The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file." See '''Q: What affects the maximum file size which can be uploaded?''' on this page for details: http://meta.wikimedia.org/wiki/Uploading_files#Frequently_Asked_Questions. (It might be better to have this information conglomerated more centrally).
| |
| | |
| Take in account there is a blacklist of file extensions in includes/DefaultSettings.php:
| |
| | |
| :$wgFileBlacklist = array(
| |
| ::<nowiki>#</nowiki> HTML may contain cookie-stealing JavaScript and web bugs
| |
| ::'html', 'htm',
| |
| ::<nowiki>#</nowiki> PHP scripts may execute arbitrary code on the server
| |
| ::'php', 'phtml', 'php3', 'php4', 'phps',
| |
| ::<nowiki>#</nowiki> Other types that may be interpreted by some servers
| |
| ::'shtml', 'jhtml', 'pl', 'py',
| |
| ::<nowiki>#</nowiki> May contain harmful executables for Windows victims
| |
| ::'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
| |
| | |
| === Revision history of pages containing images ===
| |
| | |
| Pages in the stored [[Help:Page history|page history]] consist of wikitext with possible ''references'' to templates and images. When viewing an old version of a page, these refer to the current versions of the templates and images, if these still exist. Thus the former composite page is not reconstructed.
| |
| | |
| ===Default settings===
| |
| Here is the default settings shown in [http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/includes/DefaultSettings.php?rev=1.110.2.8&view=markup].
| |
| <pre>
| |
| # This is the list of preferred extensions for uploading files. Uploading
| |
| # files with extensions not in this list will trigger a warning.
| |
| $wgFileExtensions = array( 'png', 'jpg', 'jpeg', 'ogg' );
| |
| | |
| # Files with these extensions will never be allowed as uploads.
| |
| $wgFileBlacklist = array(
| |
| # HTML may contain cookie-stealing JavaScript and web bugs
| |
| 'html', 'htm',
| |
| # PHP scripts may execute arbitrary code on the server
| |
| 'php', 'phtml', 'php3', 'php4', 'phps',
| |
| # Other types that may be interpreted by some servers
| |
| 'shtml', 'jhtml', 'pl', 'py',
| |
| # May contain harmful executables for Windows victims
| |
| 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
| |
| | |
| # This is a flag to determine whether or not to check file extensions on
| |
| # upload.
| |
| $wgCheckFileExtensions = true;
| |
| | |
| # If this is turned off, users may override the warning for files not
| |
| # covered by $wgFileExtensions.
| |
| $wgStrictFileExtensions = true;
| |
| | |
| # Warn if uploaded files are larger than this
| |
| $wgUploadSizeWarning = 150000;
| |
| </pre>
| |
| | |
| ==Protection==
| |
| Images on [[MediaWiki:Bad image list]] can not be embedded, they appear as regular link to the image page. See e.g. [[w:en:MediaWiki:Bad image list]].
| |
| | |
| [[Help:Editing#Page_protection|Protection]] of an image page is automatically also protection of the image itself: i.e. a new image under the name of the existing image can only be uploaded by a sysop.
| |
| | |
| ===Embedding external images===
| |
| | |
| External images cannot always be embedded; this depends on the settings of the project: it has been disabled on Meta and many Wikipedias, including the English and German, to prevent vandalism and "[[w:bandwidth theft|bandwidth theft]]" from other sites, but it is still allowed on some wikis, e.g. on the Dutch Wikipedia.
| |
| | |
| If enabled ($wgAllowExternalImages = true; in LocalSettings.php) on this project there is an image here, otherwise just a link to an image: http://en.wikipedia.org/upload/b/bc/Wiki.png<br>
| |
| | |
| The wiki markup text used for this image is simply the raw url of the image, ie <nowiki>http://en.wikipedia.org/upload/b/bc/Wiki.png</nowiki>. It can be shown in actual size only.
| |
| | |
| If necessary, download an image of a project and [[#Uploading|upload a copy into the Commons project]] (provided it's freely licensed and not used under fair use), you can then use it on all projects.
| |
| | |
| ''The examples in what follows are intended for projects in which embedding is enabled''.
| |
| | |
| To use an image as a link to a specified page (either external URL or an internal wiki page) see [[Help:Navigational image|navigational image]].
| |
| | |
| If enabled, use unbracketed external link style, i.e. just the URL (of the image itself, not of the image description page), e.g. <nowiki>http://</nowiki>en.wikipedia.org/upload/d/d1/Tile_Hill_train_550.jpg. The URL can be found by checking with your browser the properties of the image when it is displayed on a webpage.
| |
| | |
| Conversely, to go to the image description page of an image referred to with external link style, put the URL in the address bar and replace "upload/''alphanumerics''/''alphanumerics''/" with "wiki/image:".
| |
| | |
| For inline images, put the url, preceded and followed by a space, in the text: a <nowiki>http://</nowiki>upload.wikimedia.org/wikipedia/commons/2/27/Tst.png b gives a http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png b
| |
| | |
| Without special formatting, inline images are positioned like this:
| |
| | |
| text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
| |
| text text text text text text text text text text text text text text http://en.wikipedia.org/upload/b/bc/Wiki.png text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
| |
| | |
| A [[help:table|table]] may be used to position the image(s) as desired. E.g.
| |
| | |
| <pre>
| |
| {|
| |
| | http://en.wikipedia.org/upload/b/bc/Wiki.png
| |
| |
| |
| | http://en.wikipedia.org/upload/b/bc/Wiki.png
| |
| |-
| |
| |
| |
| | http://en.wikipedia.org/upload/b/bc/Wiki.png
| |
| |
| |
| |}
| |
| </pre>
| |
| | |
| gives
| |
| | |
| {|
| |
| | http://en.wikipedia.org/upload/b/bc/Wiki.png
| |
| |
| |
| | http://en.wikipedia.org/upload/b/bc/Wiki.png
| |
| |-
| |
| |
| |
| | http://en.wikipedia.org/upload/b/bc/Wiki.png
| |
| |
| |
| |}
| |
| | |
| Similarly
| |
| | |
| <pre>
| |
| {|
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |-
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| |-
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |}
| |
| </pre>
| |
| | |
| gives
| |
| | |
| {|
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |-
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| |-
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |
| |
| | http://upload.wikimedia.org/wikipedia/commons/2/27/Tst.png
| |
| |}
| |
| | |
| | |
| ==See also==
| |
| *[[Help:Image page]]
| |
| *[[CZ:Image use policy]]
| |
| *[[Help:Editing]].
| |
|
| |
|
| ==External links==
| | {{Technical Help}} |
| *[http://www.fractalus.com/info/png-jpeg.htm PNG, JPEG, and Fractals]
| |
| *[http://www.fileinfo.net/filetype/image Image File Types]
| |