How do I insert an image into MediaWiki?

How do I insert an image into MediaWiki?

Inserting an image into your MediaWiki pages Log into MediaWiki. On the left hand side in the navigation sidebar, click the Upload File link. On the Upload file page, browse for the image you want to upload to your MediaWiki page. Click Upload File.

How do I upload a logo to MediaWiki?

To change the MediaWiki default logo you should do the following:

  1. Create an image for your logo with dimensions of 135×135 pixels.
  2. Upload your logo image somewhere on your web hosting account.
  3. Add or edit the $wgLogo line in the LocalSettings.php to contain the path to your logo.

Where does MediaWiki store its image files?

These are stored in the thumb directory of the image directory, in a separate directory for each main file. If $wgHashedUploadDirectory is enabled (by default), MediaWiki creates several subdirectories in the images directory.

How do I use SVG images in MediaWiki?

MediaWiki supports SVG image rendering: if enabled, SVG images can be used like other image files — they will automatically be rendered as a PNG file and thumbnailed as needed on the fly. If you’re on a shared host and no SVG renderer is pre-installed, you should probably ask your provider to install it for you. To enable SVG support:

How to delete deleted images from MediaWiki?

Since MediaWiki version 1.11, deleted images are still stored on the server by default. If you want to delete selected archived images, you can do so using the eraseArchivedFile.php maintenance script. If you want to delete all of them completely, you can do that with the deleteArchivedFiles.php script.

How do I remove $wgallowtitlesinsvg in MediaWiki?

If you are using MediaWiki 1.34 or higher, $wgAllowTitlesInSVG is never applied and now always true. You can safely remove this in your LocalSettings.php file. If you get an error saying the file is corrupt, make sure mime type detection is working properly. Add $wgSVGConverter to LocalSettings.php and set the renderer you want to use.

author

Back to Top