local p = {}
local function buildRow(siteType, site, sceneidid, idsceneid, alias, notes)
local siteInfo = mw.loadData('Module:SiteDictionary')[site:lower()]
local link = 'N/A'
local siteLabel = 'N/A'
if siteInfo then
if sceneid and sceneid ~= ''"" then
link = string.format(siteInfo.sceneFormat, sceneid)
elseif id and id ~= ''"" then
link = string.format(siteInfo.idFormat, id)
else
function p.siteList(frame)
local args = frame:getParent().args
local siteType = args[1] or 'N/A'
local site = args.site or 'N/A'
local sceneid = args.sceneid or '' ▼
local id = args.id or ''
local aliassceneid = args.aliassceneid or ''
local notesalias = args.notesalias or 'N/A'
▲ local sceneidnotes = args. sceneidnotes or ' N/A'
return buildRow(siteType, site, sceneidid, idsceneid, alias, notes)
end
|