Module:SiteList: Difference between revisions
Content deleted Content added
PeaceDeadC (talk | contribs) No edit summary |
PeaceDeadC (talk | contribs) No edit summary |
||
Line 1:
local p = {}
local function buildRow(siteType, site,
local siteInfo = mw.loadData('Module:SiteDictionary')[site:lower()]
local link = 'N/A'
local siteLabel = 'N/A'
if siteInfo then
if sceneid and sceneid ~=
link = string.format(siteInfo.sceneFormat, sceneid)
elseif id and id ~=
link = string.format(siteInfo.idFormat, id)
else
Line 23:
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
local
return buildRow(siteType, site,
end
| |||