Module:SiteList: Difference between revisions
Content deleted Content added
PeaceDeadC (talk | contribs) No edit summary Tag: Manual revert |
PeaceDeadC (talk | contribs) No edit summary |
||
Line 1:
local p = {}
local function
local
local
local site = args['site'] or ''▼
local id = args['id'] or ''▼
local sceneid = args['sceneid'] or ''▼
local alias = args['alias'] or ''▼
url = url .. string.format(site_data.scene_url, sceneid)
elseif id then
url = url .. string.format(site_data.id_url, id)
▲ if siteInfo then
end
return url
function p.siteList(frame)
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:SiteList'})
local url = createURL(site, id, sceneid)
▲ end
local output = '<tr><td>' .. site .. '</td><td><a href="' .. url .. '">' .. site .. '</a></td><td>' .. alias .. '</td><td>' .. notes .. '</td></tr>'
▲ ]], backgroundColor, typeText, websiteText, alias ~= '' and alias or mw.title.getCurrentTitle().text, notes)
return
end
| |||