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(
▲ '|-\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', ▼
string.format('[%s %s]', url, site.label),
▲ args[1] == 'Studio' and 'Studio' or 'Website',
linkOrLabel,
)
)
local ns = mw.title.getCurrentTitle().namespace
|