Difference between revisions of "Demo:DisplayCode"

From PKC
Jump to navigation Jump to search
Line 1: Line 1:
<syntaxhighlight lang=Lua>
<syntaxhighlight lang=Lua>
p = {}
{{:Module:Test}}
 
function p.hello_world(a)
cf = mw.getCurrentFrame()
return "Hello, world! from " .. mw.allToString(cf.args[3]) .. "-" .. mw.allToString(cf.args[1]) .."-" ..mw.allToString(cf.args[2])
end
 
end p
</syntaxhighlight>
</syntaxhighlight>

Revision as of 13:07, 9 January 2022

{{:Module:Test}}