Thread:Extension talk:DynamicPageList (Wikimedia)/Cannot transclude variables to DynamicPageList in templates/reply (3)

Yep, #tag:dynamicpagelist is the required solution. Variables are only interpreted in some parameters, of which namespace is not one. It does main namespace since it considers anything that's not a namespace name to be the main namespace (so people can use things like 'main' ).

Cheers.