Module:Module introspection: Difference between revisions
detect template-invokable functions |
m bugfix |
||
| Line 104: | Line 104: | ||
-- If the function is invokable (it has one param called "frame"), add | -- If the function is invokable (it has one param called "frame"), add | ||
-- "invokable" to that cell | -- "invokable" to that cell | ||
if #params == 1 and string.lower(params[1]) == frame then | if #info.params == 1 and string.lower(info.params[1]) == frame then | ||
func = func .. " '''(invokable)'''" | func = func .. " '''(invokable)'''" | ||
end | end | ||