Changes

Quick fix that removes '/' from asset names. Prevents needing to make file redirects for every applicable equip.
Line 94: Line 94:  
end
 
end
 
local function getAsset(name, size)
 
local function getAsset(name, size)
return string.format("[[File:%s %s.png|%s|link=%s]]", assetType[types[name]] or '??', name, assetSize[size or types[name]] or '??', name)
+
local fname = name:gsub('/', ' ')
 +
return string.format("[[File:%s %s.png|%s|link=%s]]", assetType[types[name]] or '??', fname, assetSize[size or types[name]] or '??', name)
 
end
 
end
 
setData('Hard')
 
setData('Hard')
advmod, cssedit, janitor, Moderators, prechecked, Widget editors
6,973

edits