Content deleted Content added
Invert: dynamically import any function from mw.ustring upon demand instead of traversing and importing all functions from mw.ustring at every invocation since only one can actually be called at a time; even Module:LuaCall does this better passing just the single name to access instead of attempting to traverse and export an entire namespace like _G (which is clearly infeasible) |
maintain error messages |
||
Line 1:
require('Module:No globals')
return setmetatable({}, {
__index = function(t,
return function(frame)
if nil == mw.ustring[f] then
return '<strong class="error">'..mw.message.new('scribunto-common-nosuchfunction', '', f):plain()..'</strong>'
end
if 'function' ~= type(mw.ustring[f]) then
return '<strong class="error">'..mw.message.new('scribunto-common-notafunction', '', f):plain()..'</strong>'
end
local args = frame.args
for
args[
end
if args.tag then
local tagargs = {}
for
if 'number' ~= type(
end
return frame:extensionTag
end
return (mw.ustring[
end
end
|