Module:SiteList: Difference between revisions

Jump to navigation Jump to search
270 bytes added ,  22 July 2023
no edit summary
No edit summary
No edit summary
modelUrl = 'https://website1.com/models/',
suffix = '?ats=eyJhIjoyOTQwNzMsImMiOjU3MTMxNDM3LCJuIjoyMiwicyI6MjA2LCJlIjo3NzczLCJwIjoyfQ==',
category = {'Website 1 models', 'Website 1 Videos', 'Website 1 Performers'},
network = 'Network1 Network',
},
 
local ns = mw.title.getCurrentTitle().namespace
if ns == 0 then
for _, cat in result = result .. '[[Category:' .. pairs(site.category) .. ']]'do
result = result .. '[[Category:Articles' in.. thecat mainspace.. using Template:SiteList']]'
end
elseif ns == 2 then
result = result .. '[[Category:Articles in the userspacemainspace using Template:SiteList]]'
elseif ns == 1182 then
for _, cat in pairs(site.category) do
result = result .. '[[Category:Drafts using Template:SiteList]]'
result = result .. '[[Category:' .. cat .. ']]'
end
end
result = result .. '[[Category:Articles in the userspace using Template:SiteList]]'
elseif ns == 2118 then
for _, cat in pairs(site.category) do
result = result .. '[[Category:' .. cat .. ']]'
end
result = result .. '[[Category:Drafts using Template:SiteList]]'
end
 
return result

Navigation menu