<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Part_1.1_-_Images_and_Files</id>
	<title>Part 1.1 - Images and Files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Part_1.1_-_Images_and_Files"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Part_1.1_-_Images_and_Files&amp;action=history"/>
	<updated>2026-05-13T23:42:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Part_1.1_-_Images_and_Files&amp;diff=26876&amp;oldid=prev</id>
		<title>Bernard Szlachta: /* Image Gallery⌘ */</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Part_1.1_-_Images_and_Files&amp;diff=26876&amp;oldid=prev"/>
		<updated>2015-07-10T13:38:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Image Gallery⌘&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:MediaWiki for Content Editors|030]]&lt;br /&gt;
{{Cat|MediaWiki}}&lt;br /&gt;
{{Cat|course_code_mwedit1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuring file uploads ⌘==&lt;br /&gt;
&lt;br /&gt;
We need to enable file uploads in LocalSettings.php and php.ini.&lt;br /&gt;
&lt;br /&gt;
You may wish to change max file size allowed. This can be done in your php.ini file.&lt;br /&gt;
&lt;br /&gt;
On Ubuntu it is found in /etc/php5/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads&lt;br /&gt;
&lt;br /&gt;
==Adding a file ⌘==&lt;br /&gt;
By default you need to be logged in to upload a file&lt;br /&gt;
&lt;br /&gt;
To upload a file just click on the &amp;quot;Upload file&amp;quot; link under Toolbox on the sidebar or navigate to [[Special:Upload]]&lt;br /&gt;
&lt;br /&gt;
You can change what file types are allowed in LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
 $wgFileExtensions = array();&lt;br /&gt;
&lt;br /&gt;
certain file types are dangerous to allow however, see http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files&lt;br /&gt;
[[File:WikiFileUpload.png]]&lt;br /&gt;
&lt;br /&gt;
==Imbeding an image⌘==&lt;br /&gt;
&lt;br /&gt;
Once you uploaded an image file, you can place it on a page&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[File:WikiFileUpload.png]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resize the image to fit within given maximum width in pixels:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[File:Arduino logo.png|100px]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Resize the image to fit within given maximum height in pixels:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[File:Arduino logo.png|x50px]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Resize the image to fit within given maximum width and height in pixels:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[File:Arduino logo.png|100x50px]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Align the image to the right:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[File:Arduino logo.png|right]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Align the image to the center and resize it to fit within given maximum width in pixels:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[File:Arduino logo.png|right|100px]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other options&lt;br /&gt;
&lt;br /&gt;
http://www.mediawiki.org/wiki/Help:Images&lt;br /&gt;
&lt;br /&gt;
==Image Gallery⌘==&lt;br /&gt;
Theres a built in MediaWiki tag &amp;lt;nowiki&amp;gt;&amp;lt;gallery&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
that allows you to display a gallery of images.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:image1.png&lt;br /&gt;
&lt;br /&gt;
Image:image2.png|This is a caption&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Exercise ⌘==&lt;br /&gt;
*Download images the cheeses you made pages for, and upload to your site.&lt;br /&gt;
*Add the images to your cheese pages.&lt;/div&gt;</summary>
		<author><name>Bernard Szlachta</name></author>
	</entry>
</feed>