Demo:DisplayCode

From PKC
Revision as of 13:06, 9 January 2022 by Benkoo (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<syntaxhightlight lang=Lua> 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 </syntaxhighlight>