Module:DemoTemplate: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(handle = signs in parameters)
(use string.format at the end)
Line 23: Line 23:
end
end
print('}}')
print('}}')
return '<code>' .. mw.text.nowiki(getBuffer()) .. '</code> &rarr; ' .. frame:expandTemplate{title = title, args = frame.args}
return string.format('<code>%s</code> &rarr; %s', mw.text.nowiki(getBuffer()), frame:expandTemplate{title = title, args = frame.args})
end
end
end
end