mNo edit summary |
mNo edit summary |
||
Line 14: | Line 14: | ||
table:wikitext( k .. '=' .. v ); | table:wikitext( k .. '=' .. v ); | ||
end | end | ||
return tostring( | return tostring( table ); | ||
end | end | ||
return p | return p |
Revision as of 02:05, 13 January 2024
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 table = mw.html.create( 'table' );
table:addClass( 'infobox' );
for k,v in pairs(inputsDecode) do
table:wikitext( k .. '=' .. v );
end
for k,v in pairs(outputsDecode) do
table:wikitext( k .. '=' .. v );
end
return tostring( table );
end
return p