Module:CareerList: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
local p = {}
local config = mw.loadData("Module:CareerList/config")▼
return config[site]▼
local args = frame.args
local list = args.list or ""
local
local html = mw.html.create()
<th>Site</th>▼
:wikitext("{| class=\"wikitable career-list\"")
:wikitext("\n|-" ..
%s▼
return tostring(html)
</table>▼
end
function p.
local args = frame.args
local site = args.site or ""
local alias = args.alias or mw.title.getCurrentTitle().text
local notes = args.notes or "N/A"
local
return ""▼
local bgColor = "#FFFFFF"
if config[site].type == "Studio" then
bgColor = "#DADADA"
elseif config[site].type == "Website" then
bgColor = "#E7E7E7"
end
▲ local url = config.url:gsub("%$1", id)
html:tag("tr")
:css("background-color", bgColor)
:wikitext(config[site].name or "")
▲ <tr style="background-color:%s;color:%s;">
return tostring(html)
end
|