Topic on Project:Support desk

Inline SVG in Slideshow Gallery

2
Ikabodo (talkcontribs)

Is it in any way possible to use inline svg:s in a gallery? In the example below i'm using a widget to create the inline svg.

I'm trying to use a gallery like this:

<gallery>

{{#widget:InlineSVG}}

</gallery>

AhmadF.Cheema (talkcontribs)

.svg images can be used like other .png (or some other extension) images.

The only thing you are probably missing is to specifically allow the .svg file extension for your Wiki (as it isn't enabled by default).

For this purpose add the following line in your LocalSettings.php file:

$wgFileExtensions[] = 'svg'; // Allow .svg files