Adding images: Difference between revisions

mNo edit summary
mNo edit summary
Line 1: Line 1:
To add an image to a Physiopedia page you must:
== Uploading images to Physiopedia ==
# first upload the image to the Physiopedia media library, then
#First you will need to save the image that you wish to use to your computer. To do this right click on the image and save the image to your computer.
# insert the image on the Physiopedia page. 
#Once you have saved the file to your computer you need to upload it to Physiopedia. Click on the '''Tools''' link in the top right of the Navigation bar, from the drop down menu select the '''Upload File''' link.
 
#This will a new page in Physiopedia where you can upload your image. Click on the '''Choose File''' link and select the image file from your computer.
== Uploading Images to Physiopedia ==
 
#First you will need to '''save the image that you wish to use to your computer'''. To do this '''right click on the image''' and '''save the image''' to your computer perhaps on your desktop.
#Once you have saved the file to your computer you need to upload it to Physiopedia. At the bottom of the left sidebar under the toolbox heading you will see the '''Upload File''' link.  Click on this.
#This will take you to the upload file page where you should fill in the details of the image that you saved to your computer.  '''Browse''' for the file on your computer to fill in the Source filename box. 
#This will automatically fill in the  Destination filename but you should change this for something more appropriate and identifiable.  
#This will automatically fill in the  Destination filename but you should change this for something more appropriate and identifiable.  
#Then in the summary box '''add the reference for the image'''.  
#Then in the summary box '''add the source and/or reference for the image'''.
#Under the licensing drop down menu select the most appropriate licence for the image.  
#Then click the '''Upload File''' button.<br>
#Then click the '''Upload File''' button.<br>


Line 15: Line 11:


== Inserting images on pages ==
== Inserting images on pages ==
#Go to the Physiopedia page that you are editing.&nbsp; '''Click on the insert/edit image icon''' in the toolbar of the editing box.  
#Go to the Physiopedia page that you are editing and place your cursor in the text where you want the image to appear. From the editing toolbar click on '''Insert''' and then from the drop down menu click '''Media'''.  
#'''Add the image file name to the Image file name box'''.&nbsp; The image file name appears on at the top of the page on the specific Physiopedia page for each image.&nbsp; The pop-up box may be helpful and automatically find it for you once you have started to type the name!
#A pop up box will appear, you can either '''Search''' for an image that has already been uploaded to the media library or you can '''Upload''' a new image.  
#If you wish you can add a caption, border, position and size to your image by completing the other boxes
#Once you have found or uploaded the image you wish to use click the blue Save button.  
#A new pop up box will appear that allows you to format the image.  If you wish you can add a caption, border, position and size to your image.
#'''Click OK'''.  
#'''Click OK'''.  
#Then '''Save the page''' that you are editing.
#Then '''Save the page''' that you are editing.


Your image should now be on the page.&nbsp; In the wikitext (which you can see by clicking on the wikitext link in the toolbar of the editing box) the image will look like this for example: '''<nowiki>[[Image:imagename.jpg]]</nowiki>'''  
Your image should now be on the page.&nbsp; In the source code (which you can see by clicking on Edit Source in the Edit drop down menu) the image will look like this for example: '''<nowiki>[[Image:imagename.jpg]]</nowiki>'''  


== Adding/editing images in wikitext  ==
== Adding/editing images in wikitext  ==


If you are familiar with wikitext you can also add/edit images directly in the wikitext. Remember '''click on the Wikitext link''' in the toolbar of the editing box to access the wikitext code.  
If you are familiar with the source code you can also add/edit images directly in the source code.


Add the following to the page where you want the image to appear:  
Add the following to the page where you want the image to appear:  

Revision as of 20:12, 6 August 2017

Uploading images to Physiopedia[edit | edit source]

  1. First you will need to save the image that you wish to use to your computer. To do this right click on the image and save the image to your computer.
  2. Once you have saved the file to your computer you need to upload it to Physiopedia. Click on the Tools link in the top right of the Navigation bar, from the drop down menu select the Upload File link.
  3. This will a new page in Physiopedia where you can upload your image. Click on the Choose File link and select the image file from your computer.
  4. This will automatically fill in the  Destination filename but you should change this for something more appropriate and identifiable.
  5. Then in the summary box add the source and/or reference for the image.
  6. Under the licensing drop down menu select the most appropriate licence for the image.
  7. Then click the Upload File button.

Once uploaded you will be directed to the page in Physiopedia related to the image that you have just uploaded. Now you are ready to put the image on to your Physiopedia page.

Inserting images on pages[edit | edit source]

  1. Go to the Physiopedia page that you are editing and place your cursor in the text where you want the image to appear. From the editing toolbar click on Insert and then from the drop down menu click Media.
  2. A pop up box will appear, you can either Search for an image that has already been uploaded to the media library or you can Upload a new image.
  3. Once you have found or uploaded the image you wish to use click the blue Save button.
  4. A new pop up box will appear that allows you to format the image. If you wish you can add a caption, border, position and size to your image.
  5. Click OK.
  6. Then Save the page that you are editing.

Your image should now be on the page.  In the source code (which you can see by clicking on Edit Source in the Edit drop down menu) the image will look like this for example: [[Image:imagename.jpg]]

Adding/editing images in wikitext[edit | edit source]

If you are familiar with the source code you can also add/edit images directly in the source code.

Add the following to the page where you want the image to appear:

  • [[Image:image file name.extension]]

Where:

  • image file name is the image file name that can be found on the specific Physiopedia page for the image that you wish to use
  • extension is the extension for the image file i.e. jpg, png, gif

For example, to include the Physiopedia logo, you'd enter:

[[Image:Physiopedia.jpg]]

Which would give:

Physiopedia.jpg


You can also style the image with various options separated with a pipe character ("|"). In brief, they are:

  • [[Image:{name}|{type}|{border}|{location}|{size}|{upright}|{caption}|{link}]]

Where:

  • type is 'thumb' / 'thumbnail' or 'frame'. Causes image to be displayed with specific formatting.
  • border adds a border around the image.
  • location is 'right', 'left', 'center' or 'none'. Determines placement of the image on the page. Defaults to 'right', when combined with 'thumb' or 'frame'.
  • size is {width}px or {width}x{height}px, scales the image to be no greater than the given width and height, keeping its aspect ratio.
  • upright is for use only on images that are taller than they are wide. This scales the image differently, considering both width and height instead of only width.
  • caption is where you can add a caption for the image. Any element which cannot be identified as one of the above is assumed to be caption text.


For example, to include the Physiopedia logo, with a frame, in the center of the page, in a smaller size, with the caption "Physiopedia", you'd enter:

[[Image:Physiopedia.jpg|frame|center|100px|Physiopedia]]

Which would give:

Physiopedia



For more help on uploading and styling your images see the mediawiki help page on uploading images.