Module:Test: Difference between revisions

From Resonite Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
local p = {}
local p = {}
function p.hello( frame )
    return "Hello, <b>world!</b>"
end


function p.ProtoFlux( frame )
function p.ProtoFlux( frame )
  return frame.args[2];
  local t = mw.text.jsonDecode( frame.args );
local div = mw.html.create( 'div' );
for k,v in pairs(t) do
  div:wikitext( 'Some text' );
end
return tostring( div );
end
end


return p
return p

Revision as of 01:47, 13 January 2024

Documentation for this module may be created at Module:Test/doc

local p = {}

function p.ProtoFlux( frame )
 local t = mw.text.jsonDecode( frame.args );
 local div = mw.html.create( 'div' );
 for k,v in pairs(t) do
  div:wikitext( 'Some text' );
 end
 return tostring( div );
end

return p