The Include macro includes subpages recursively. An option to set the maximum depth of recursion would be very useful.
What is the problem you are trying to solve?
I use moinmoin for documenting the setup of our systems. Each system has a page with many sub-pages below it. I want a top level page, such as 'Systems' that uses the Include macro to include all the sub pages such as 'Systems/Mail', 'Systems/Web', 'Systems/Print', etc, but that does not include the subpages beneath each of those second level pages. Thus an option to the Include macro, such as maxdepth would be useful. For this example, the Include entry might look like this:
<<Include(^Systems/.*, , maxdepth=1)>>
This will greatly assist in giving the wiki an automatic structure that is controllable and based on the parent-child relationship of pages rather than depending on manually edited links.
Is this features useful to most users or just to specific users?
The ability to specify the depth of recursion is a fundamental control on any recursive function so this is a generalised feature and not just trying to solve one particular use case. An indicator of the value of a maxdepth option is its presence in other macros, such as TableOfContents.
Comments
MacroMarket/ChildPages appears to solve my specific case of only wanting to recurse one level. More generally, this looks like a useful place to get features to extend the Include macro. -- HarmsCon 2010-04-28 03:02:26