Module:SiteList: Difference between revisions
Content deleted Content added
PeaceDeadC (talk | contribs) No edit summary |
PeaceDeadC (talk | contribs) No edit summary |
||
Line 105:
if site then
local url = site.url
if url ~= '' then▼
if args.sceneid and site.sceneUrl ~= '' then▼
url = site.sceneUrl .. args.sceneid .. site.suffix▼
elseif args.id and site.modelUrl ~= '' then▼
url = site.modelUrl .. args.id .. site.suffix▼
end▼
local isArchived = site.archived and (site.archived == 'yes' or site.archived == 'y')
local
elseif
▲ if args.sceneid and site.sceneUrl ~= '' then
▲ url = site.sceneUrl .. args.sceneid .. site.suffix
▲ elseif args.id and site.modelUrl ~= '' then
▲ url = site.modelUrl .. args.id .. site.suffix
end
end
Line 126 ⟶ 124:
local alias = args.alias or '<div style="font-size: 1em;">' .. mw.title.getCurrentTitle().text .. '</div>'
local notes = args.notes and '<div style="font-size: 1em;">' .. args.notes .. '</div>' or '<div style="font-size: 1em;">N/A</div>'
local categoryLink = site.network and site.network ~= '' and string.format(' <small>([[:Category:%s|%s]])</small>', site.network, site.network) or ''
local siteType = site.type or args[1]▼
▲ local siteType = site.type or args[1]
if siteType == nil or siteType == '' then
siteType = 'Invalid type'
Line 142 ⟶ 139:
local linkOrLabel
if url ~= '' then
if site.idtonum and (site.idtonum == 'yes' or site.idtonum == 'y') and args.id then
linkOrLabel = string.format('[%s %s #%s]%s', url, site.label, args.id, archiveNotice)
else
linkOrLabel = string.format('[%s %s]%s', url, site.label, archiveNotice)
▲ linkOrLabel = linkOrLabel .. " <small>(''Website archived'')</small>"
end
else
linkOrLabel = site.label .. archiveNotice
end
if site.list and site.list ~= '' then
linkOrLabel = linkOrLabel .. string.format(' ([[%s|LIST]])', site.list)
| |||