Board Thread:New Features/@comment-24739709-20150518230347/@comment-24473195-20150829194527

Moviesign wrote: DPL will probably work inside a portable infobox, but you can't call one from a DPL function. I set up a side-by-side demo for my users to compare old and new. It randomly selected a page that used the old infobox and then called the new infobox with the same parameters and displayed them together. (See this demo which no longer works because the new potbox has replaced the old one) I had to write this hack to get the parameters from DPL and put them in tags in the new infobox.

Also note that parameter data that included a &lt;ref&gt; or a &lt;br /&gt; tag was mangled when passed to the new potbox. I had to remove them from the "new" half of the demo because I got internal reference strings or some such garbage. Oh, I see. It probably doesn't allow it to call an infobox for the same reason lua can't. One guess from a "developer's perspective" is that with lua or dpl generating the infobox code, they can't simply run a mwgrep or simple plain list search through all their pages to identify, catalog or even run queries using potbox data. Although they could get this data anyway by expanding the template arguments, it is an "expensive" call that would probably take far longer and require more resources.

So unfortunately if you're aiming to generate the infoboxes in a similar manner that you were doing with dpl, it won't work. Even the way you're currently doing it would be hard using lua, although not impossible with a couple of hacks.