Content deleted Content added
local getContent (though it should not matter) |
avoid table.insert (2x speed improvement!) |
||
Line 21:
mw.title.getCurrentTitle():getContent() -- self-transclude; see [[mw:Extension:Scribunto/Lua reference manual#Title objects]]
if frame:preprocess "{{CASCADINGSOURCES}}" == "" then
end
Line 32:
if not ns or not mw.site.namespaces[ns] then
generate_transclusion('Template:' .. item)
elseif (ns == "File") or (ns == "Image") then
generate_transclusion(item)
elseif ns == "Category" then
generate_transclusion(item)
elseif rest ~= '' then
generate_transclusion(item)
end
end
|