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...")
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<syntaxhightlight lang=Lua>
p = {}


function p.hello_world(a)
{{#invoke:Test|originalText|<syntaxhighlight lang=Lua> {{:Module:Test}}</syntaxhighlight>}}
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>

Latest revision as of 13:10, 9 January 2022

 {{:Module:Test}}