Module:PageRef: Difference between revisions

PageRef needs some logic to get the right filename out
 
m Actually check if the SVG exists
Line 13: Line 13:
-- Try to grab SVG if possible
-- Try to grab SVG if possible
if mw.title.new(name..".svg") ~= nil then
if mw.title.new(name..".svg").exists then
name = name .. ".svg"
name = name .. ".svg"
else
else