local p = {}
local function buildRow(siteType, site, id, sceneid, alias, notes)
local siteInfo = mw.loadData('Module:SiteDictionary')[site:lower()]
local link = 'N/A'
end
end
return string.format('|\n| style="text-align:center;vertical-align:middle;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n|-', site, link, alias or 'N/A', notes or 'N/A') ▼
local siteLabel = siteType == 'Website' and 'Website' or 'Studio'
▲ return string.format('|\n| style="text-align:center;vertical-align:middle ; background-color:#E7E7E7;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n| style="text-align:center;vertical-align:middle;" | %s\n|-', sitesiteLabel, link, alias or 'N/A', notes or 'N/A')
end
function p.siteList(frame)
local args = frame:getParent().args
local sitesiteType = args[1]
local site = args.site
local id = args.id
local sceneid = args.sceneid
local alias = args.alias
local notes = args.notes
return buildRow(siteType, site, id, sceneid, alias, notes)
end
|