Module:Test

From Resonite Wiki
Revision as of 02:28, 13 January 2024 by Epsilion (talk | contribs)

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

local p = {}

function p.ProtoFlux( frame )
 local inputsDecode = mw.text.jsonDecode( frame.args.Inputs );
 local outputsDecode = mw.text.jsonDecode( frame.args.Outputs );

 local protofluxContainer = mw.html.create( 'table' )
 :tag( 'tr' )
  :tag( 'th' )
   :wikitext(frame.args.Name);

 --for k,v in pairs( inputsDecode ) do
 -- protofluxContainer = protofluxContainer:wikitext( k .. '=' .. v );
 --end
-- for k,v in pairs( outputsDecode ) do
--  protofluxContainer = protofluxContainer:wikitext( k .. '=' .. v );
-- end
 return tostring( protofluxContainer );
end

return p