Thread:Catinthedark/@comment-3225604-20170722082846/@comment-26235098-20170722191948

Ok. I set up the external list and read it from the module similar to the way w do it in Module:Difficulty level.

You don't need the "or'd" strings and multiple ifs using the table lookup and Lua is basically built for table lookup, so it's an efficient way of doing it.

I also brought over some of the param validation from difficulty level, but probably more needs to be done. Not sure why the page name is being retrieved different ways in the two functions.... but then I do not know if/where you are using these calls yet? Anyway am stopping for now till I hear back from you... have a look at what I did, and let me know if it is along the lines of what you need.

I will adjust if you need something different, and/or help debug if it does not run correctly. I assigned some levels in the List to use as test cases. I only have later tonight, and part of tomorrow tho, then monday it's back to long hours of coding at work ... so at night I'm brainfried, lol!