Difference between revisions of "Demo:DisplayCode"

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



Revision as of 13:06, 9 January 2022

p = {}

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