Forum:DynamicPageLIst in a template

Is there a way to use a dynamic page list inside a template, where the category name is the template argument?

The 'naive' method didn't work, as you can see below.

I put a dynamic page list in the sandbox, and then include the sandbox as a template from the current document. The relevant part is the part titled with "Testing Dynamic Page List".

As you can see, DynamicPageList alone works fine, and the template parameter alone also works fine, but putting the template parameter inside the DynamicPageList doesn't work.

Is there a way around this?

commenting out the translcusion as the sandbox is dynamic and the example won't last


 * I believe the only dynamic things that can be used in our current version of DynamicPageList are some magic words like . I ran into this same problem when trying to construct on Uncyclopedia (for minor timstamp maintenance categories like Uncyclopedia:Category:Dead_Ends) a generalized template that could put in a tag (a minor hack of DPL to sort by last edit date and show more info, that we use for forums, but it has other uses like maintence) into a template that took parameters. I finally had to give up. However, it did work with  category= . --Splarka (talk) 02:27, 18 February 2007 (UTC)
 * The reasoning it dosen't work is because in MediaWiki the parser goes in a certain order. MagicWords, XML Hooks, templates, then ParserFunctions (Or it might be ParserFunctions then templates, but I think it's the former). Because of that, A magic word can be used anywhere but templates and parserfunctions cannot be used in XML Hook parameters, and because the XML Hooks are done before the parserfunctions the areas inside of them can't use other code unless the function which is called by the XML Hook starts another parse function for it's $input. Though I'm not sure where the parameter tags are replaced, but from the looks of it it's not before the XML Tags. I found the sad fact about order when I tryed to create a looping function with dyamic variables inside of parserfunctions for mediaWiki and found that it was only possible to do it using the XML Hooks without messing with ugly parserhooks like the Winter extension did. Dantman (Talk) 06:30, 18 February 2007 (UTC)

Thanks
Too bad it's not possible. Anyway, the option was really all that I needed.