มอดูล:languages/byEntryNameModule
หน้าตา
- This มอดูล lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
return function(entryNameModule)
local langs = {}
for code, data in pairs(require("Module:languages/data/all")) do
if data.entry_name == entryNameModule then
langs[code] = data
elseif type(data.entry_name) == "table" then
for script, entry_name_data in pairs(data.entry_name) do
if entry_name_data == entryNameModule then
langs[code] = data
end
end
end
end
local result = {}
local i = 0
for code, data in pairs(langs) do
i = i + 1
result[i] = require("Module:languages").makeObject(code, data)
end
return result
end