Module:Townlong go
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Townlong go/doc
-- https://wowpedia.fandom.com/wiki/Template:Townlong_go
local m = {}
function m.main(f)
local t = {}
if f.args.type == "func" then
if #f.args.url > 0 then
table.insert(t, string.format("* [%s %s]", f.args.url, f.args.name))
else
table.insert(t, string.format("* [https://www.townlong-yak.com/framexml/live/go/%s %s]", f.args.name, f.args.name))
end
if #f.args.arg > 0 then
table.insert(t, string.format('(<span style="font-size:smaller; color:#ecbc2a">%s</span>)', f.args.arg))
else
table.insert(t, "()")
end
if #f.args.ret > 0 then
table.insert(t, string.format(' : <span style="font-size:smaller; color:#4ec9b0">%s</span>', f.args.ret))
end
end
return table.concat(t)
end
return m