Module:PageRef: Difference between revisionsGive feedback
SerpentofSet (talk | contribs) PageRef needs some logic to get the right filename out |
SerpentofSet (talk | contribs) 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") | if mw.title.new(name..".svg").exists then | ||
name = name .. ".svg" | name = name .. ".svg" | ||
else | else | ||