Thread:Catinthedark/@comment-3225604-20170722082846

Hey Cat! I need some help regarding to Lua module.

I'm currently writing a Lua module for hexagon levels and super hard levels in hope of reducing the workload of the users here for adding and removing categories here and updating the hexagon level box in episode pages automatically.

Right now, I'm having problems for defining a string that contains several items. In Module:Hexagon_levels, the first item only is called for in hexagon2 and shard2 string. However, I would like to have the string such that if xxx == Level 1 or level 2 or level 3. It will also be cumbersome to make a lot of ifs. Is there a way for that?

Also, similar to Module:Difficulty level/Reality, a module page can refer to another module. I hope there is a page that users can change the levels easily without the need to edit the main module page. I've opened a list in Module:Hexagon levels/List.

I would definitely highly appreciate if you could offer help. Thanks! 