Community Central
Community Central
No edit summary
Tags: Visual edit Help
m (minor cleanup)
Tag: Help
(47 intermediate revisions by 34 users not shown)
Line 1: Line 1:
  +
{{tocright}}
<jwplayer media-id="MnB8xqur" />
 
  +
'''Adding images''' helps improve the quality of any given article, providing additional details and illustrating the subject - after all, a picture speaks a thousand words! - and can also improve a wiki [[Help:Search Engine Optimization|search engine ranking]].
{{TOCright}}
 
'''Adding images''' is a great way to improve any article. Photos and line drawings provide further detail and color — and they can even improve your wiki's [[Help:SEO|search engine ranking]].
 
   
  +
The process of adding images to an article is very similar to [[Help:Videos|adding videos]]. You can brush up on [[Help:Video embed tool|our video embed tool]] to complete your mastery of the tools of a wiki illustrator.
This page will show you how easy it is to add them to any article!
 
   
  +
== Requirements for adding images ==
Though we're primarily talking about static images on this page, the process is very similar to that of [[help:videos|adding videos]], though we encourage you to also read about [[Help:Video embed tool|our video embed tool]], so that you can become an expert in adding visual media to your wiki.
 
  +
Both anonymous and registered users can add images to an article in source text editing mode. In visual editors, only registered users can.
   
  +
Images must exist on the wiki. If they are not available, then they need to be '''uploaded''' first. Trying to add a non-existent image will only create a <span style="color:red">red </span> link to a [[Help:File description page|file page]].
This guide is primarily about adding images that are '''already uploaded''' to your wiki. We have a [[Help:Uploading files|separate help page about uploading files]], but you may find that you learn something about uploading here, too.
 
== In our visual editors ==
 
[[File:Edit_toolbar_image_upload2.png|thumb|right|275px|This is where you go in the [[help:classic editor|classic editor]] to add an image]]
 
[[File:Addimages-alreadyuploaded2.png|thumb|right|275px|Finding an already-uploaded image in the classic editor]]
 
[[File:Photo_description.png|thumb|right|275px|Here's where you add a caption and change the alignment or size of the image. Don't be confused by the fact that the screen says "upload photo" even though you're using an already-uploaded image.]]
 
Whether you're editing with our [[Help:VisualEditor|VisualEditor]] or our [[Help:Classic editor|classic rich-text editor]], the process of adding an image to a page is largely the same.
 
   
  +
Only [[Help:Logging in|registered, logged-in users]] can upload files. See [[Help:Uploading files|this page for details on uploading files]].
The following written section and images focus on the classic rich-text editor, while the video at the top of the page shows you how to do it in the VisualEditor.
 
   
  +
== How to add an image in VisualEditor ==
* To start, [[Special:Signup|log in]] to your account, and then click the [[Help:Edit|'''Edit''']] button on the page where you'd like to add an image.
 
 
When you're editing with the [[Help:VisualEditor|VisualEditor]], the process of adding an image to a page is through the top bar of the editor. See [[Help:Uploading files|this help page]].
* Once in edit mode, click on the button labelled '''Photo''' [[File:Photo_button.png|40px]] on the right rail of the editor toolbar.
 
* A pop-up will appear, which will allow you to search for photos already added to the community. You can also upload an image from your computer here but see [[Help:Uploading files|this help page]] for more detailed info about uploading.
 
* Once you choose an image to add, click '''upload'''.
 
* Next you will be able to adjust the size and placement of the photo. You can also provide a caption, which will display below the photo.
 
* After you have picked your options, click the '''Add photo''' button, and your photo will be added to the edit area.
 
* Images can be modified at any time in edit mode. Simply hover over the image and choose '''modify''', and the same pop-up window will appear.
 
* Once you have completely finished editing the page, click publish and your photo will be live on the page.
 
=== Using source mode ===
 
[[help:source edit mode|Source editing]] differs significantly from the approach offered by Fandom's visual editors. However, it also allows you the ability to control additional aspects of your images via [[help:wikitext|wikitext]]. There are so many interesting details about image display in source that we've created [[Help:Wikitext#Image_formatting|a large section for it]]! There is also a [[Help:Links/Wikitext|help page for links from images]].
 
   
  +
:''Remember: Only logged-in users can upload and edit images through the wiki's Visual Editor.''
== Uploading comes first ==
 
  +
You can't use a file that doesn't exist '''on your wiki'''. If you try, you'll merely create a link usually a <span style="color:red">red </span>one to an un-created [[Help:File description page|file page]].
 
  +
* After logging in, click the [[Help:Editing|'''Edit''' or '''VisualEditor''']] button on the page you want to add images to.
== Directly viewing images ==
 
  +
* Once you're in Visual Editing mode, click on the '''Media''' button located on the top bar. This will open the '''Media Settings''' dialogue, where you can '''search''' for existing files according to their filenames or '''upload''' your own.
[[File:Image Lightbox.png|thumb|left|275px|Viewing a photo from the [[help:image lightbox|lightbox]]]]
 
  +
* Once you have the image you want to add, click on it. The dialogue will expand the image and give you a little more information on it. Click '''use this image''' to continue.
Because they're typically thumbnails, images on a page are typically smaller. But you can grab a better look by [[Help:File description page|going to the file page]] or by [[help:image lightbox|taking a peek in the lightbox]]. When reading a page, you can click on the image to bring up the lightbox. To then see the file page itself and therefore have access to the image at all available resolutions click on the name of the image at the top of the lightbox.
 
  +
* The next dialogue allows you to customize how the image will appear on the page by adding a caption or alternative text ('''General''' tab) and deciding on its size, alignment, and appearance ('''Advanced''' tab).
  +
* Once finished, click '''Insert''' and then '''Save''' the page to commit your changes.
  +
  +
You can also edit images already present on the page by clicking on them and selecting the '''Edit''' button, which will open the same customization dialogue.
  +
  +
== How to add an image in source editing mode ==
  +
[[Help:Source editor|Source editing]] maintains the option of adding and customizing images through the top bar, like in Visual Editor. But as its interface is fundamentally different from visual editors, you can skip the above process and directly add and edit with the underlying [[Help:Wikitext|wikitext]]. The image follows a specific format, enclosed in square brackets like a regular link.
  +
  +
<code><nowiki>[[File:Wiki.png|220px|center|thumb|link=Help:Adding images|alt=This is an alt text|class=This is for the HTML classes|And this a description]]</nowiki></code>
  +
  +
* Every image on the page starts with <code><nowiki>File:</nowiki></code> or <code><nowiki>Image:</nowiki></code>, followed by the exact name of the uploaded file. It is case-sensitive: Wiki.png and WIKI.png are considered different files.
  +
* If only the link is specified, the image will be added as is: At the base resolution and inline. To customize its appearance, you can add arguments, separated by the vertical bar or pipe symbol, <code>|</code>. These are:
  +
** '''Size''', specified in pixels. For example, <code>220px</code> will display the image at 220 pixels of width, while <code>x120px</code> will display the image at 120 pixels of height.
  +
** '''Alignment''' on the page. <code>left</code> and <code>right</code> will align the image to the left and right respectively, with text flowing around the image. <code>center</code> will align it to the middle of the page with no text flow around it.
  +
** '''Appearance'''. Adding <code>thumb</code> will cause the image to display as a thumbnail at a default width if it's not specified otherwise, with the description displayed beneath. You can also choose <code>border</code> to display the image with a border around it.
  +
** '''Link''' will cause the image to open a specific page, rather than its file description. It is always preceded by <code>link=</code>. The option can also be used to bypass the [[Help:Image_lightbox|image lightbox]] and display an image without an activable link. This can be done by adding the option to the syntax and filling it with an empty value (not even a space).
  +
** '''Alternative text''', specified with <code>alt=</code>, which will display if an image does not load. This text is also used by search engines and screen readers, so it's best to specify a descriptive alt text for every image.
  +
** '''HTML class''', specified by <code>class=</code>, defines classes of the generated <code><img/></code> element. For instance, <code>class=foo__bar baz</code> will add class="foo__bar baz" to the generated image element. These classes can be useful when customizing the appearance of the image(s) through the [[Help:CSS_and_JS_pages#CSS_pages|CSS pages]].
  +
** '''Description''', which will display below the image if it's specified to appear as a thumbnail or on mouseover. Any text that is not recognized by the wiki as an argument will be interpreted as a description.
  +
  +
The wiki software does not require the arguments to be added in any specific order, although it's considered good practice to use a consistent pattern. For more details on adding images via wikitext, see [[Help:Wikitext#Image formatting|the image formatting section here]]. For linking ''to'' image description pages, [[Help:Links/Wikitext|see this page]].
  +
  +
== How to view images at a higher resolution ==
 
[[File:Image Lightbox.png|thumb|left|275px|Viewing a photo from the [[Help:Image lightbox|lightbox]]]]
  +
When placed on the page, images are typically presented at a much smaller resolution. You can inspect them by [[Help:File description page|going to the file page]] or by [[Help:Image lightbox|opening them in the lightbox]].
  +
  +
The lightbox opens by default when clicking on the image, with the link to the file description page displayed at the top of the lightbox.
  +
 
If you want to bypass the lightbox entirely, simply hold "Ctrl" (for Windows users) or "Command" (for Mac users), then click on the photo. It will open a new tab, but you'll be on the file page in the new tab.
   
If you want to bypass the lightbox entirely, simply hold Ctrl for Windows users or Command for Mac users, then click on the photo. It will open a new tab, but you'll be on the file page in the new tab.
 
   
<div style="clear:left;"></div>
 
 
== See also ==
 
== See also ==
* [[Help:Wikitext#Image_formatting|Using wikitext with your images]]
+
* [[Help:Wikitext#Image formatting|Using wikitext with your images]]
* More details about [[Help:uploading files|uploading files]]
+
* [[Help:uploading files|Uploading files in detail]]
  +
* [[Help:Shared_images|Using images from linked communities]]
   
 
== Further help and feedback ==
 
== Further help and feedback ==
 
{{Help and feedback section}}
 
{{Help and feedback section}}
  +
 
[[ar:مساعدة:صور]]
 
[[ar:مساعدة:صور]]
  +
[[be:Help:Выявы]]
 
[[ca:Ajuda:Imatges]]
 
[[ca:Ajuda:Imatges]]
[[de:Hilfe:Bilder/RTE]]
+
[[de:Hilfe:Bilder hinzufügen]]
[[es:Ayuda:Imágenes]]
+
[[es:Ayuda:Añadir imágenes]]
 
[[fi:Ohje:Kuvat]]
 
[[fi:Ohje:Kuvat]]
[[fr:Aide:Images]]
+
[[fr:Aide:Ajouter des images]]
  +
[[hi:सहायता:चित्र जोड़ना]]
[[it:Aiuto:Immagini]]
+
[[it:Aiuto:Aggiungere immagini]]
 
[[ja:ヘルプ:画像]]
 
[[ja:ヘルプ:画像]]
 
[[ko:도움말:그림]]
 
[[ko:도움말:그림]]
 
[[nl:Help:Afbeeldingen]]
 
[[nl:Help:Afbeeldingen]]
[[pl:Pomoc:Obrazy]]
+
[[pl:Pomoc:Dodawanie obrazów]]
 
[[pt:Ajuda:Fotos]]
 
[[pt:Ajuda:Fotos]]
 
[[ru:Справка:Изображения]]
 
[[ru:Справка:Изображения]]
  +
[[tr:Yardım:Resim ekleme]]
 
[[uk:Довідка:Зображення]]
 
[[uk:Довідка:Зображення]]
 
[[vi:Trợ giúp:Hình ảnh]]
 
[[vi:Trợ giúp:Hình ảnh]]
[[zh:Help:圖]]
+
[[zh:Help:圖]]
 
[[Category:Help]]
 
[[Category:Help]]
 
[[Category:Editing]]
 
[[Category:Editing]]

Revision as of 19:33, 14 September 2021

Adding images helps improve the quality of any given article, providing additional details and illustrating the subject - after all, a picture speaks a thousand words! - and can also improve a wiki search engine ranking.

The process of adding images to an article is very similar to adding videos. You can brush up on our video embed tool to complete your mastery of the tools of a wiki illustrator.

Requirements for adding images

Both anonymous and registered users can add images to an article in source text editing mode. In visual editors, only registered users can.

Images must exist on the wiki. If they are not available, then they need to be uploaded first. Trying to add a non-existent image will only create a red link to a file page.

Only registered, logged-in users can upload files. See this page for details on uploading files.

How to add an image in VisualEditor

When you're editing with the VisualEditor, the process of adding an image to a page is through the top bar of the editor. See this help page.

Remember: Only logged-in users can upload and edit images through the wiki's Visual Editor.
  • After logging in, click the Edit or VisualEditor button on the page you want to add images to.
  • Once you're in Visual Editing mode, click on the Media button located on the top bar. This will open the Media Settings dialogue, where you can search for existing files according to their filenames or upload your own.
  • Once you have the image you want to add, click on it. The dialogue will expand the image and give you a little more information on it. Click use this image to continue.
  • The next dialogue allows you to customize how the image will appear on the page by adding a caption or alternative text (General tab) and deciding on its size, alignment, and appearance (Advanced tab).
  • Once finished, click Insert and then Save the page to commit your changes.

You can also edit images already present on the page by clicking on them and selecting the Edit button, which will open the same customization dialogue.

How to add an image in source editing mode

Source editing maintains the option of adding and customizing images through the top bar, like in Visual Editor. But as its interface is fundamentally different from visual editors, you can skip the above process and directly add and edit with the underlying wikitext. The image follows a specific format, enclosed in square brackets like a regular link.

[[File:Wiki.png|220px|center|thumb|link=Help:Adding images|alt=This is an alt text|class=This is for the HTML classes|And this a description]]

  • Every image on the page starts with File: or Image:, followed by the exact name of the uploaded file. It is case-sensitive: Wiki.png and WIKI.png are considered different files.
  • If only the link is specified, the image will be added as is: At the base resolution and inline. To customize its appearance, you can add arguments, separated by the vertical bar or pipe symbol, |. These are:
    • Size, specified in pixels. For example, 220px will display the image at 220 pixels of width, while x120px will display the image at 120 pixels of height.
    • Alignment on the page. left and right will align the image to the left and right respectively, with text flowing around the image. center will align it to the middle of the page with no text flow around it.
    • Appearance. Adding thumb will cause the image to display as a thumbnail at a default width if it's not specified otherwise, with the description displayed beneath. You can also choose border to display the image with a border around it.
    • Link will cause the image to open a specific page, rather than its file description. It is always preceded by link=. The option can also be used to bypass the image lightbox and display an image without an activable link. This can be done by adding the option to the syntax and filling it with an empty value (not even a space).
    • Alternative text, specified with alt=, which will display if an image does not load. This text is also used by search engines and screen readers, so it's best to specify a descriptive alt text for every image.
    • HTML class, specified by class=, defines classes of the generated <img/> element. For instance, class=foo__bar baz will add class="foo__bar baz" to the generated image element. These classes can be useful when customizing the appearance of the image(s) through the CSS pages.
    • Description, which will display below the image if it's specified to appear as a thumbnail or on mouseover. Any text that is not recognized by the wiki as an argument will be interpreted as a description.

The wiki software does not require the arguments to be added in any specific order, although it's considered good practice to use a consistent pattern. For more details on adding images via wikitext, see the image formatting section here. For linking to image description pages, see this page.

How to view images at a higher resolution

Image Lightbox

Viewing a photo from the lightbox

When placed on the page, images are typically presented at a much smaller resolution. You can inspect them by going to the file page or by opening them in the lightbox.

The lightbox opens by default when clicking on the image, with the link to the file description page displayed at the top of the lightbox.

If you want to bypass the lightbox entirely, simply hold "Ctrl" (for Windows users) or "Command" (for Mac users), then click on the photo. It will open a new tab, but you'll be on the file page in the new tab.


See also

Further help and feedback