Module:API info/unused1
Jump to navigation
Jump to search
Documentation for this module may be created at Module:API info/unused1/doc
local data = mw.loadData("Module:API_info/group/data")
local m = {}
local function GetNonPrefixName(name)
local firstChar = name:sub(1, 1)
if firstChar == "#" or firstChar == "@" then
return name:sub(2)
else
return name
end
end
function m:main()
local fs = "[[API %s|%s]]"
local t = {}
for _, group in pairs(data) do
local r = {}
for _, name in pairs(group) do
name = GetNonPrefixName(name)
table.insert(r, fs:format(name, name))
end
table.insert(t, table.concat(r, ", "))
end
return "*"..table.concat(t, "\n*")
end
return m