Content deleted Content added
BrandonXLF (talk | contribs) m BrandonXLF moved page Module:Road data/strings/doc/exports to Module:Exports: Generalize |
BrandonXLF (talk | contribs) Account for skipped outputs |
||
(One intermediate revision by the same user not shown) | |||
Line 1:
local p = {}
local TableTools = require('Module:TableTools')
local getArgs = require('Module:Arguments').getArgs
function p.exports(frame)
local
local title = args[1] or mw.title.getCurrentTitle().fullText
end▼
▲ local moduleExports = require(currentTitle.fullText)
local keys = TableTools.keysToList(moduleExports, function (a, b)
return string.lower(a) < string.lower(b)
end)
local outputKeys = {}
if not args.exclude or not v:match(args.exclude) then
▲ for i, v in ipairs(keys) do
table.insert(outputKeys
end
|