Module:Parameter names example: Difference between revisions

we should probably use the prefixedText for the template name for people who like making templates in funky namespaces
(allow custom display values)
(we should probably use the prefixedText for the template name for people who like making templates in funky namespaces)
Line 33:
 
-- Find the template name and call it with the arguments.
local template = args._template or mw.title.getCurrentTitle().basePageTitle.textprefixedText
frame = frame or mw.getCurrentFrame()
return frame:expandTemplate{title = template, args = targs}
Anonymous user