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]]'
|