Module:SiteList: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
local siteInfo = mw.loadData('Module:SiteDictionary')[site:lower()]
local link = 'N/A'
local siteLabel = 'N/A'
if siteInfo then
if sceneid then
link = siteInfo.defaultLink
end
siteLabel = string.format("[%s %s]", link, siteInfo.name)
end
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|-', siteLabelsiteType, linksiteLabel, 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|-', siteLabel, link, alias or 'N/A', notes or 'N/A')
end
 

Navigation menu