Help:Introduction to images with Wiki Markup/3: Difference between revisions

Content deleted Content added
{{intro to|}} template
m invert icon in dark mode
 
(38 intermediate revisions by 25 users not shown)
Line 1:
<noinclude>{{pp-protected|reason=Persistent [[WP:Disruptive editing|disruptive editing]]|small=yes}}</noinclude>{{intro to|
{{intro to|
[[File:Durdle Door Overview.jpg|thumb|right|[[Durdle Door]], a [[natural arch]] near [[Lulworth Cove]]]]
Once your image is uploaded to Commons or Wikipedia, you will probably want to use it in an article. Fortunately, this works the same way whichever site you uploaded it to. Simply click [edit]{{menu icon|Edit|non}} on the article you want to include the image in, then add the following where you want the image to appear:
 
:<code><nowiki>[[File:Image name.jpg|thumb|right|Caption for the image]]</nowiki></code>
Once your image is uploaded to Commons or Wikipedia, you will probably want to use it in an article. Fortunately, this works the same way whichever site you uploaded it to. Simply click [edit] on the article you want to include the image in, then add the following where you want the image to appear:
:<code><nowiki>[[File:Image name.jpg|thumb|right|Caption for the image]]</nowiki></code>
 
 
[[File:Durdle Door Overview.jpg|thumb|right|[[Durdle Door]], a [[natural arch]] near [[Lulworth Cove]]]]
For example:
<presyntaxhighlight lang="wikitext">[[File:Durdle Door Overview.jpg|thumb|right|[[Durdle Door]], a [[natural arch]] near [[Lulworth Cove]]|alt=Beach with a large rocky arch over the water]]</presyntaxhighlight>
The [[File:OOjs UI icon image-ltr.svg|20px|class=skin-invert|link=|alt=Image icon]] button also works. Notice that the caption can contain links.
 
 
[[File:Colosseum in Rome, Italy - April 2007.jpg|thumb|left|The [[Colosseum]] in Rome]]
You can also place images on the left hand side:
<pre>[[File:Colosseum in Rome, Italy - April 2007.jpg|thumb|left|The [[Colosseum]] in Rome]]</pre>
 
[[File:Colosseum in Rome, Italy - April 2007.jpg|thumb|left|The [[Colosseum]] in Rome|alt=See caption]]
By default, images display on the right side of the article. You can place images on the left side of the article by including <code><nowiki>|left</nowiki></code>:
<presyntaxhighlight lang="wikitext">[[File:Colosseum in Rome, Italy - April 2007.jpg|thumb|left|The [[Colosseum]] in Rome]]</presyntaxhighlight>
 
See [[Wikipedia:Extended image syntax]] for more details on adjusting the display of images, including their size.
 
}}