Using variables in dpl code

Jump to: navigation, search

Hi David,

I finally figured this out - normally, MediaWiki executes the DPL code before it calls the variables. However, DPL has a parser function which allows it to call the variables in the wiki markup before being handed over to the dpl extension. Parser functions look like templates which start with a hash tag - #. So, for your example above, the proper code for the DPL parser function would be:


Please let me know if that makes sense or if I can clarify anything. Here's a link to the relevant part of the dpl manual if you would like to look at the syntax in more depth. I also created a test template at Template:DPLtest if you want to test this out.


20:22, 17 January 2011