Module:Module introspection: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
code tags
Line 242: Line 242:
params_string = "''none''"
params_string = "''none''"
else
else
params_string = string.format("(%s)", table.concat(params, ", "))
params_string = string.format("<code>(%s)</code>", table.concat(params, ", "))
end
end
-- Create link to line for that function
-- Create link to line for that function
local link = string.format("[[Module:%s#L-%d|%s]]", module_name, info.line, info.name)
local link = string.format("[[Module:%s#L-%d|<code>%s</code>]]", module_name, info.line, info.name)
-- If the function is the main function, add "main" to that cell
-- If the function is the main function, add "main" to that cell