Module:SiteList: Difference between revisions

Jump to navigation Jump to search
315 bytes added ,  22 July 2023
no edit summary
(Undo revision 2512 by PeaceDeadC (talk))
Tag: Undo
No edit summary
updatesUrl = 'https://website1.com/updates/',
modelsUrl = 'https://website1.com/models/',
category = 'Network1Website 1 models',
network = 'Network1 Network',
label = 'Website 1',
aliases = {'website1', 'website1.com', 'website1com'},
updatesUrl = 'https://website2.com/scene/',
modelsUrl = 'https://website2.com/people/',
category = 'Network2Website 2 models',
network = 'Network2 Network',
label = 'Website 2',
aliases = {'website2', 'website2.com', 'website2com'},
updatesUrl = 'https://website3.com/videos/',
modelsUrl = 'https://website3.com/performers/',
category = 'Network3Website 3 models',
network = 'Network3 Network',
label = 'Website 3',
aliases = {'website3', 'website3.com', 'website3com'},
local alias = args.alias or mw.title.getCurrentTitle().text
local notes = args.notes and '<div style="font-size: 0.875em;">' .. args.notes .. '</div>' or '<div style="font-size: 0.875em;">N/A</div>'
local categoryLink = site.network and string.format(' <small>([[:Category:%s|%s]])</small>', site.category, site.category) or ''
 
local style
 
local result = string.format(
'|-\n| style="%s" | %s\n| style="text-align:center;vertical-align:middle;" | %s%s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n',
style,
args[1] == 'Studio' and 'Studio' or 'Website',
string.format('[%s %s] <small>([[:Category:%s|%s]])</small>', url, site.label, site.category, site.category),
categoryLink,
alias,
notes
local ns = mw.title.getCurrentTitle().namespace
if ns == 0 then
result = result .. '[[Category:' .. site.category .. ']]'
result = result .. '[[Category:Articles in the mainspace using Template:SiteList]]'
elseif ns == 2 then

Navigation menu