Using DPL[]
Projected uses of DPL. These are untested.
<data source="value">
<format>{{#dpl: category = {{{value}}} }}</format>
</data>
or
<navigation>{{#dpl: category = somethingStatic }}</navigation>
Do either of these work?
FishTank (wall/email) 02:24, September 6, 2015 (UTC)
- Yes both should work. See this for a more complicated usage. Dessamator (talk) 10:05, September 6, 2015 (UTC)
- I tested both of those use cases listed above and they both work. The example linked by Dessamator is a horse of a different color however. The difference is that the two cases above are calling DPL from within a portable infobox, whereas that link is to a page that tries to call a portable infobox from a DPL function, and does not work the way I hoped. See this demo which shows that references don't come through intact (the UNIQ code comes through instead). If you don't see it, just click "Re-roll" until you do. —Moviesign (talk) 12:58, September 6, 2015 (UTC)
- Well, at least it works better than lua which can't call an infobox from within within a scribunto module (lua). Dessamator (talk) 13:39, September 6, 2015 (UTC)
- I tested both of those use cases listed above and they both work. The example linked by Dessamator is a horse of a different color however. The difference is that the two cases above are calling DPL from within a portable infobox, whereas that link is to a page that tries to call a portable infobox from a DPL function, and does not work the way I hoped. See this demo which shows that references don't come through intact (the UNIQ code comes through instead). If you don't see it, just click "Re-roll" until you do. —Moviesign (talk) 12:58, September 6, 2015 (UTC)