SVG file not rendering

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
SVG file not rendering
by on (#243167)
I noticed that this template shows a link to an SVG image instead of actually rendering and displaying the SVG image:

https://wiki.nesdev.com/w/index.php/Template:Documentation
Attachment:
svg_as_link.png
svg_as_link.png [ 24.34 KiB | Viewed 83 times ]


Where it says "File:Template-info.svg", it is supposed to actually be showing the info icon/graphic. Visiting the SVG file location itself also does not render the SVG properly. It gives a generic berzier curve graphic:

https://wiki.nesdev.com/w/index.php/File:Template-info.svg
Image

Clicking that generic graphic brings you to the actual SVG file, which your browser directly rasterizes into the info icon, and it does work properly for me at that point. It should look like this:

Attachment:
info_svg.png
info_svg.png [ 7.4 KiB | Viewed 83 times ]

So, thinking there might be something wrong with the SVG file that the wiki can't render for some reason, I downloaded a more recent version of this same SVG file from Wikipedia and uploaded it here. The NESdev wiki still can't render the newer version either. So my guess is that SVG rendering is broken in our wiki.

This isn't a big deal; we don't use a lot of SVG in this wiki, but wanted to let you guys know about the issue.
Re: SVG file not rendering
by on (#243169)
As casually documented, this has been broken since forever (or at least from 2013). I failed to report this issue when I found out about it back in 2014.