Module:SiteList: Difference between revisions

1,082 bytes added ,  22 July 2023
no edit summary
No edit summary
No edit summary
category = '',
network = '',
},
website7 = {
label = 'Website 7',
type = 'website',
aliases = {'website7', 'website7.com', 'website7com'},
url = 'https://website7.com/',
sceneUrl = 'https://website7.com/videos/',
modelUrl = 'https://website7.com/performers/',
suffix = '?ats=eyJhIjoyOTQwNzMsImMiOjU3MTMxNDM3LCJuIjoyMiwicyI6MjA2LCJlIjo3NzczLCJwIjoyfQ==',
category = 'Website 7 models',
network = 'Network7 Network',
idtonum = 'yes',
list = 'List of Website7 actors',
},
}
end
 
local linkOrLabel = url ~= '' and string.format('[%s %s]', url, site.label) or site.label
if url ~= '' then
-- Check if we should add the ID to the number
if site.idtonum and (site.idtonum == 'yes' or site.idtonum == 'y') and args.id then
linkOrLabel = string.format('[%s %s #%s]', url, site.label, args.id)
else
linkOrLabel = string.format('[%s %s]', url, site.label)
end
else
linkOrLabel = site.label
end
 
-- Check if we should add a link to a list
if site.list and site.list ~= '' then
linkOrLabel = linkOrLabel .. string.format(' ([[%s|LIST]])', site.list)
end
 
local result = string.format(