Please remember that WiKirby contains spoilers, which you read at your own risk! See our general disclaimer for details.
Module:Sandbox
From WiKirby, your independent source of Kirby knowledge.
Jump to navigationJump to search
Feel free to test your Lua skills here.
--[[ A very simple test to read data from JSON pages directly ]]-- local j = {} local d = mw.loadJsonData("User:Lakelimbo/JSON") function j.data () table.insert(result, '<ul><li>foo: '.. d.foo ..'</li><li>brazil: '.. d.brazil ..'</li><li>kirby:<ul><li>mario: '.. d.kirby.mario ..'</li><li>sonic: '.. d.kirby.sonic ..'</li><li>crash:<ul><li>bandicoot: '.. d.kirby.crash.bandicoot ..'</li><li>hedgehog: '.. d.kirby.crash.hedgehog ..'</li></ul></li><li>pokemon: [1] as'.. d.pokemon[1] ..', [2] as '.. d.pokemon[2] ..', [3] as '.. d.pokemon[3] ..'</li><li>lalalala: '.. d.lalalala ..'</li></ul>') return table.concat(result, '') end return j