Okay, I know about Special:PrefixIndex. It's handy, but creates a different page with the results.
I'm looking to find or create a template which will do the *same* job, only print it to the same page as /links/ …like a TOC or reflist for Subpages.
For versatility, parameters should adjust the output's format as Bulleted or Numbered(or Roman or Alpha) or even in-line Lists; "level" of subpages mined (immediate subpage, subsubpage, etc). Again, like a TOC; and of course, dynamically update. Preferably each time the page is opened, but I suppose just each time the page re-compiles after an edit. And for a Cherry-on-top, the pagename-link to the page above it.
I know all the *components* to do this exist, the trick is to make it a template which takes the (sub)Pagename it is on and automatically does it.