Module:SiteList: Difference between revisions

181 bytes added ,  22 July 2023
no edit summary
No edit summary
No edit summary
if site then
local url = site.url
if args.sceneid and site.sceneUrlurl ~= '' then
urlif =args.sceneid and site.sceneUrl ..~= args.sceneid'' .. site.suffixthen
elseif args.id and url = site.modelUrlsceneUrl ~=.. ''args.sceneid then.. site.suffix
urlelseif =args.id and site.modelUrl ..~= args.id'' .. site.suffixthen
url = site.modelUrl .. args.id .. site.suffix
end
end
 
end
 
local resultlinkOrLabel = url ~= '' and string.format('[%s %s]', url, site.label) or site.label
 
'|-\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="width: 0px; padding: 0px; border: none;" |\n',
local result = string.format(
style,
'|-\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="width: 0px; padding: 0px; border: none;" |\n',
args[1] == 'Studio' and 'Studio' or 'Website',
style,
string.format('[%s %s]', url, site.label),
args[1] == 'Studio' and 'Studio' or 'Website',
categoryLink,
linkOrLabel,
alias,
categoryLink,
notes
alias,
)
notes
)
 
local ns = mw.title.getCurrentTitle().namespace