Module:Find sources/sandbox: Difference between revisions

Content deleted Content added
fix for problem that cannot use # to get length of a table from mw.loadData
fix Module:Arguments wrappers
Line 162:
-- Invocations will look like {{#invoke:Find sources|template name}},
-- where "template name" is a subpage of [[Module:Find sources/templates]].
local tname = template
if tname:sub(-8) == '/sandbox' then
-- This makes {{Find sources/sandbox|Albert Einstein}} work.
tname = tname:sub(1, -9)
end
return function(frame)
local args = require('Module:Arguments').getArgs(frame, {
wrappers = mw.site.namespaces[10].name .. ':' .. templatetname
})
return t._main(template, args)