[Mediawiki-l] images in extended wiki markup

Bin Hu hubin at sfc.keio.ac.jp
Mon Mar 24 23:43:48 UTC 2008


Hi,
Can anyone tell me how to include svg in mediawiki?

I wrote some hook function to process a special markup, which returns  
something like this:

   $svg = '<div><object data="images/test.svg" width=100% height=100%  
type="image/svg+xml"/></div>';

return ($svg);

In the page view this code brings me to the new page: Images/test.svg

test.svg does exist in images directory. I guess the path in PHP is  
incorrect? Can anyone point me out the error I made? Thanks.

Bin



More information about the MediaWiki-l mailing list