Exports the exports function for use by Template:Module exports.
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
| This module depends on the following other modules: |
Exports the exports function for use by Template:Module exports.
local p = {}
local TableTools = require('Module:TableTools')
local getArgs = require('Module:Arguments').getArgs
function p.exports(frame)
local args = getArgs(frame)
local title = args[1] or mw.title.getCurrentTitle().fullText
local moduleExports = require(title)
local keys = TableTools.keysToList(moduleExports, function (a, b)
return string.lower(a) < string.lower(b)
end)
local outputKeys = {}
for _, v in ipairs(keys) do
if not args.exclude or not v:match(args.exclude) then
table.insert(outputKeys, '<code><span style="white-space: pre;">' .. v .. '</span></code>')
end
end
return mw.text.listToText(outputKeys)
end
return p
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.