Thread:Mfaizsyahmi/@comment-5211495-20170119144826/@comment-4356266-20170119155922

The module is only a demonstration. It takes a data structure (sample in the module itself) and outputs a PI. The real working function is createPortable, and main does nothing but output the test PI if test=true. It obviously needs modification in order for it to work out of the box.

So in an infobox template you invoke the module and feed it the data structure. then in an article page you call the template and pass arguments as usual.

If I'm going to adopt this I'd have the structures stored in the module's subpages, and pass the subpage's name to the main function, which could then require the subpage and feed it to createPortable.