Module:SiteList: Difference between revisions

Jump to navigation Jump to search
438 bytes added ,  22 July 2023
no edit summary
No edit summary
No edit summary
local ns = mw.title.getCurrentTitle().namespace
if ns == 0 then
forif _, cat in pairstype(site.category) do== "table" then
resultfor =_, resultcat ..in '[[Category:' .. cat .pairs(site.category) ']]'do
result = result .. '[[Category:' .. cat .. ']]'
end
else
result = result .. '[[Category:' .. site.category .. ']]'
end
result = result .. '[[Category:Articles in the mainspace using Template:SiteList]]'
elseif ns == 2 then
forif _, cat in pairstype(site.category) do== "table" then
resultfor =_, resultcat ..in '[[Category:' .. cat .pairs(site.category) ']]'do
result = result .. '[[Category:' .. cat .. ']]'
end
else
result = result .. '[[Category:' .. site.category .. ']]'
end
result = result .. '[[Category:Articles in the userspace using Template:SiteList]]'
elseif ns == 118 then
forif _, cat in pairstype(site.category) do== "table" then
resultfor =_, resultcat ..in '[[Category:' .. cat .pairs(site.category) ']]'do
result = result .. '[[Category:' .. cat .. ']]'
end
else
result = result .. '[[Category:' .. site.category .. ']]'
end
result = result .. '[[Category:Drafts using Template:SiteList]]'

Navigation menu