Difference between revisions of "How to add a picture"

From Solecopedia v2
Jump to navigation Jump to search
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Two options:'''
'''Two options:'''


* From an external source (website) :
== From an external source (website) ==


If you are sure of the source and think it will stay for a long time on the website, you can just put the url of the picture:  
If you are sure of the source and think it will stay for a long time on the website, you can just put the url of the picture:  
Line 9: Line 10:
But there is no way to change its dimensions.
But there is no way to change its dimensions.


* From your computer
 
== From your computer ==


Several steps :
Several steps :
Line 17: Line 19:
* Chose where you will put your picture
* Chose where you will put your picture
* Click on the "images and media" in the upper part (just next to the icone "Link") :  
* Click on the "images and media" in the upper part (just next to the icone "Link") :  
[[File:Capture d’écran 2022-07-07 à 14.03.34.png|200px]]
[[File:Capture d’écran 2022-07-07 à 14.03.34.png|100px]]
* A dialogue box opens. In the "file" section, put the name of your file (jpg, png, etc.). Click on upload.
* A dialogue box opens. In the "file" section, put the name of your file (jpg, png, etc.). Click on upload.
* In the place where you want to put the picture put the following code File:name.jpg|200px with two [[ on each side. If you want it bigger, put 400 px, for example.If you want it on the left, right, center, put: File:name.jpg|left|200px with two [[on each side, for example.
* In the place where you want to put the picture put the following code:  <nowiki>[[File:name.jpg|200px]]</nowiki>.  
** If you want it bigger, put 400 px, for example.
** If you want it on the left, right, center, put: <nowiki>[[File:name.jpg|left|400px]]</nowiki>, for example.
** To go further, see the Mediawiki help page: https://www.mediawiki.org/wiki/Help:Images

Latest revision as of 14:43, 7 July 2022

Two options:

From an external source (website)

If you are sure of the source and think it will stay for a long time on the website, you can just put the url of the picture: Example: Click on the picture on socioeco.org here. capture-141.jpg

But there is no way to change its dimensions.


From your computer

Several steps :

  • Upload the picture on your computer.
  • Go to "Edit source"
  • Chose where you will put your picture
  • Click on the "images and media" in the upper part (just next to the icone "Link") :

Capture d’écran 2022-07-07 à 14.03.34.png

  • A dialogue box opens. In the "file" section, put the name of your file (jpg, png, etc.). Click on upload.
  • In the place where you want to put the picture put the following code: [[File:name.jpg|200px]].
    • If you want it bigger, put 400 px, for example.
    • If you want it on the left, right, center, put: [[File:name.jpg|left|400px]], for example.
    • To go further, see the Mediawiki help page: https://www.mediawiki.org/wiki/Help:Images