মডিউল:খেলাঘর/R1F4T
local p = {}
function p.main(frame)
local suffixes = {"খেলাঘর", "গোল"}
local basePage = "Wikipedia:" -- Base prefix for the pages
local existingPages = {}
for _, suffix in ipairs(suffixes) do
local pageName = basePage .. suffix -- Combine base and suffix
local title = mw.title.new(pageName) -- Create title object
if title and title.exists then
table.insert(existingPages, pageName)
end
end
local result = "* " .. table.concat(existingPages, "\n* ")
return result
end
return p