Module:Sandbox/Jackmcbarn: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
use frame.args
Jackmcbarn (talk | contribs)
build new data format
Line 1:
local data = require('Module:Video game reviews/data')
local newBuffer = require('Module:OutputBuffer')
 
local p = {}
 
function p.wastetimemain(frame)
local getBuffer, print, printf = newBuffer()
repeat until os.clock() > 9.5
print( 'return {\n\treviewers = {\n' )
return '9.5 seconds of Lua time have now elapsed'
for k_,v in pairsipairs(framedata.argsreviewers) do
end
printf('\t\t[%q] = %q,\n', v[2], v[1])
 
function p.echoArgument(frame)
return frame.args[1]
end
 
function p.iterateArgs(frame)
local dummy = 0
for k,v in pairs(frame.args) do
dummy = dummy + 1
end
print( '\t},\n\taggregators = {\n' )
return dummy
for _,v in ipairs(data.aggregators) do
end
printf('\t\t[%q] = %q,\n', v[2], v[1])
 
end
function p.checkTime(frame)
print( '\t},\n\tsystems = {\n' )
return 'os.clock is now ' .. os.clock()
for _,v in ipairs(data.systems) do
printf('\t\t[%q] = %q,\n', v[2], v[1])
end
print( '\t}\n}' )
return dummygetBuffer()
end