Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:User:Fourinone/Sandbox/2
(view source)
Revision as of 05:28, 28 April 2021
309 bytes removed
,
3 years ago
no edit summary
Line 92:
Line 92:
end
end
local s = _.join(result, '\n')
local s = _.join(result, '\n')
−
s = s:gsub("{{([^|]+)|([^}]+)}}", function (template,argStr)
+
return frame:
preprocess(s
)
−
local args = {}
−
for i,part in ipairs(mw.text.split(argStr,'|')) do
−
if part:find('=') then
−
a = mw.text.split(part,'=')
−
args[a[1]] = a[2]
−
else
−
table.insert(args, part)
−
end
−
end
−
return frame:
expandTemplate{title=template, args=args}
−
end
)
−
return s
end
end
Fourinone
5,951
edits