Difference between revisions of "Help:Images"

m
Update for rights changes
m (→‎Using Files: +Link param)
m (Update for rights changes)
Tags: Mobile web edit Mobile edit Advanced mobile edit
 
(6 intermediate revisions by 2 users not shown)
{{HelpToC}}
This page will teach you how to upload images and insert them into articles. You must have ''[[:Help:Artists|permission from the artist]]'' before uploading an image! You will also need to [[:Coppermind: About|contact the staff]] and ask for editor rights before your account has authorization to upload files. For more details, see Wikipedia's Help page on [[wikipedia: Help: Viewing media|Images]].
 
== Uploading Files ==
 
== Using Files ==
TheTo defaultinsert methodan forimagine insertinginto imagesa ispage use the {{t|image}} template. To use the template, use <code><nowiki>{{image|FILENAME.EXT|caption}}</nowiki></code>
 
<code>FILENAME.EXT</code> is the filename (and extension) of the image you want; it does not include the <code>File:</code> prefix. <code>caption</code> should be replaced with a caption describing the image; is not ''required'', but it is highly encouraged.
* <code>link</code>: The image will link to its File page by default; you can link to another page with <code>link=cosmere</code> or <code>link=https://wob.coppermind.net</code>
 
== Non-Template Image Insertion ==
If you aren't comfortable using the template, you can use <code><nowiki>[[File:FILENAME.EXT]]</nowiki></code>.
If you wish for more control over the image formats, you can use <code><nowiki>[[File:FILENAME.EXT]]</nowiki></code>, however please note that this '''is not the preferred method for inclusion of images on the Coppermind'''.
 
<code>FILENAME.EXT</code> is the filename (and extension) of the image. This adds a full size image into the article. Additional parameters may be included, separated by vertical bars (<code>|</code>), to adjust to how the image appears. Some important parameters include:
 
;Format
;Thumbnail
: Include* <code>thumbborder</code> toWill makeprovide thea imagesimple aborder thumbnail, whichbut will give it a border,not provide space for a caption, andor sizeresize the image down to a standard thumbnail width.
* <code>frameless</code> Presents image with no frame but allows user preference for image sizing.
* <code>frame</code> Adds a frame and space for captioning.
* <code>thumb</code> Provides frame, space for caption, and option to resize.
 
For more details of formats, see [https://www.mediawiki.org/wiki/Help:Images#Format Mediawiki].
;Border
: Alternatively, <code>border</code> will provide a simple border but will not provide space for a caption or resize the image.
 
;Location
;Locaton
: Use <code>right</code>, <code>left</code>, <code>center</code>, or <code>none</code> to adjust the default horizontal alignment of the image.
 
;Width
: Enter a number followed by "px" to specify the width of the image in pixels. Height will adjust accordingly. (''Example:'' <code>200px</code> rescales the image to a width of 200px)
 
;Height
: Enter <code>xHHpx</code>where HH is the desired height of the image in pixels. Width will adjust accordingly. (''Example:'' <code>x200px</code> rescales the image to a height of 200px)
 
;Caption
: This is a good place for a simple description and/or giving credit to the artist. The <code><nowiki>{{t|a}}</nowiki></code> template is used for artist attribuationattribution. (''Example:'' <code><nowiki>{{a|Ben_McSweeney}}</nowiki></code> will create a link to {{a|Ben_McSweeney}})
 
;Link
: The image will link to the file page by default. To link elsewhere, use <code>link=</code> followed by a Coppermind page or URL.
 
<div class=navaid>For more options for displaying a single image, see [https://www.mediawiki.org/wiki/Help:Images#Rendering_a_single_image MediaWiki's guide].</div>
 
=== Galleries ===
{{for|Help:Gallery subpages|information on creating gallery subpages}}
Use galleries to add a series of related images.
 
To add a gallery, first use <code><nowiki><gallery></nowiki></code>. Then, ''on a new line'', enter <code><nowiki>File:FILENAME.EXT</nowiki></code>, where <code>FILENAME.EXT</code> is the filename (and extension) of the file you wish to add to the gallery. Repeat this for all images you wish to add, each on a new line. Finally, use <code><nowiki></gallery></nowiki></code> to complete the gallery. You may add vertical bars (<code>|</code>) after the individual file names followed by some text, to caption each image.
 
You can use a few different parameters in the first <code><nowiki><gallery></nowiki></code> tag (separated by spaces) to change some aspects of the gallery. Some basic parameters are:
 
;Widths
: Use <code>widths=</code> followed by a number and "px" to change the default width of all images in the gallery.
 
;Caption
: Use <code>caption=</code> followed by some text inside of quotation marks (<code>""</code>) to provide a caption for the gallery.
 
Use sub-galleries to add a series of related images. Galleries should be created once a page is no longer able to hold more art or has more than at least four pieces of artwork. See link above for in depth explanation of subpage galleries.
;Images per row
: Use <code>perrow=</code> followed by a number to set the number of images that will appear per row. The number of images per row will adjust dynamically with the window size if this is omitted.
 
=== Infoboxes ===