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']]'
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
result = result .. '[[Category:Articles in the userspace using Template:SiteList]]'
for _, cat in pairs(site.category) do
result = result .. '[[Category:' .. cat .. ']]'
end
▲ result = result .. '[[Category:Drafts using Template:SiteList]]'
end
return result
|