Template:Tree/Children: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude>Apply Tree/Subtree to the given child and then recursively apply this to the next child, as determined by a function. * First parameter: Delimiter to prefix fut...") |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude>Apply [[Tree/Subtree]] to the given child and then recursively apply this to the next child, as determined by a function. | <noinclude>Apply [[Template:Tree/Subtree]] to the given child and then recursively apply this to the next child, as determined by a function. | ||
* First parameter: Delimiter to prefix future nodes | * First parameter: Delimiter to prefix future nodes | ||
* Second parameter: Current delimiter to prefix current child | * Second parameter: Current delimiter to prefix current child | ||
Revision as of 23:01, 15 June 2015
Apply Template:Tree/Subtree to the given child and then recursively apply this to the next child, as determined by a function.
- First parameter: Delimiter to prefix future nodes
- Second parameter: Current delimiter to prefix current child
- current parent: Parent of the current child
- current child: Child to produce a subtree for; terminates if empty
- depth: Depth of the current child
- index: i, where the current child is the ith child of the current parent
- template: Template to apply to each node (first parameter is the node; depth and index are the tree coordinates, 1-based)
- children: Function mapping a parent to children (first parameter is the node; second parameter is the requested index, 1-based; empty result indicates no more children)