Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:MapRewards
(view source)
Revision as of 12:17, 28 August 2023
37 bytes added
,
1 year ago
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')
Chocolatecravinghobo
advmod, cssedit,
Interface administrators
, janitor,
Moderators
, prechecked,
Widget editors
7,390
edits