Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:PageRef: Difference between revisions

From Deadlock Wiki
m Actually check if the SVG exists
Sur (talk | contribs)
m check if type is provided first
Line 10: Line 10:
-- Do some name fiddling where appropriate (can be expanded if new file naming conventions arise)
-- Do some name fiddling where appropriate (can be expanded if new file naming conventions arise)
if (string.lower(type)=="hero") then name = name .. " MM" end -- Hero files are suffixed with MM (minimap)
if (type ~= nil and string.lower(type)=="hero") then name = name .. " MM" end -- Hero files are suffixed with MM (minimap)
-- Try to grab SVG if possible
-- Try to grab SVG if possible