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.
local getBuffer, print, printf = newBuffer()
print( 'return {\n\treviewers = {\n' )
end▼
printf('\t\t[%q] = %q,\n', v[2], v[1])
end▼
▲ for k,v in pairs(frame.args) do
end
print( '\t},\n\taggregators = {\n' )
return dummy▼
for _,v in ipairs(data.aggregators) do
printf('\t\t[%q] = %q,\n', v[2], v[1])
▲ end
print( '\t},\n\tsystems = {\n' )
for _,v in ipairs(data.systems) do
printf('\t\t[%q] = %q,\n', v[2], v[1])
▲ end
print( '\t}\n}' )
end
|