Module:SiteList: Difference between revisions

Jump to navigation Jump to search
43 bytes removed ,  22 July 2023
no edit summary
No edit summary
No edit summary
function p.site(frame)
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:SiteList'})
local site = findSitegetSite(args.site) and sites[args.site:lower()]
 
if site then
end
 
function findSitegetSite(argsSitename)
for _, site in pairs(sites) do
forif _,site.label:lower() alias== inname:lower() pairsor table.contains(site.aliases, name:lower()) dothen
ifreturn alias == argsSite thensite
return site
end
end
end

Navigation menu