SJ's answer is the best one. However, if you want a kludgey hack, you could do something like<br><br><a href="http://wiki.laptop.org/go/User:Homunq/toctest">http://wiki.laptop.org/go/User:Homunq/toctest</a><br><br>This uses template substitution to manually create links to subpage#section in the section headers. It means that someone editing the subpage later will see:<br>
<br>== [[subpage#section|section]] ==<br><br>as the section headers, and will have to edit the section name twice; but at least those two instances are right in the same place. Any new sections they create would have to use the template or follow the format above, or they would be unreachable directly from the main TOC.<br>
<br>Obviously, you could write a bot to fix your headers the first time, or even write one which periodically checks and fixes any newly-created <br><br>== normal headers ==<br><br>.<br><br>Again, the better solution would be a mediawiki extension, if you do PHP.<br>
<br>Jameson<br><br><br><div class="gmail_quote">On Thu, Feb 21, 2008 at 2:34 AM, Samuel Klein <<a href="mailto:meta.sj@gmail.com">meta.sj@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Derw,<br>
<br>
Having a way to generate an aggregate table of contents for a set of<br>
pages without transcluding the text of those pages could be useful. I<br>
don't believe it has been written; as far as I know this would be the<br>
first magic word[1] in MediaWiki that parses the text of another<br>
wikipage and outputs some function of that in the current page.<br>
<br>
Note that a common workaround is to make such a table of contents by<br>
hand, not to make it too finely grained, and to update it by hand when<br>
subpages change. See for instance the [[HIG]] header.<br>
<br>
SJ<br>
<br>
[1] <a href="http://meta.wikimedia.org/wiki/Help:Magic_words" target="_blank">http://meta.wikimedia.org/wiki/Help:Magic_words</a><br>
<div class="Ih2E3d"><br>
<br>
On Wed, Feb 20, 2008 at 5:46 PM, drew einhorn <<a href="mailto:drew.einhorn@gmail.com">drew.einhorn@gmail.com</a>> wrote:<br>
</div><div><div></div><div class="Wj3C7c">> Hi,<br>
><br>
> I've got a couple variations on a way overweight wiki page.<br>
><br>
> It began as a MS Word file, and it's been through Open Office,<br>
> shell, sed, perl, awk, python and the result is not too shabby.<br>
><br>
> Should publish it, but really ought to rewrite it all in python first.<br>
><br>
> Is there a way to use the command line to open a .doc file in<br>
> Open Office and save it as html an can add to my polyglot<br>
> assortment of scripts, in the meantime?<br>
><br>
> The first version at:<br>
><br>
> <a href="http://wiki.laptop.org/go/VistA_Monograph_Wiki" target="_blank">http://wiki.laptop.org/go/VistA_Monograph_Wiki</a><br>
><br>
> gets:<br>
><br>
> WARNING: This page is 246 kilobytes long; some browsers may have<br>
> problems editing pages approaching or longer than 32kb. Please<br>
> consider breaking the page into smaller sections.<br>
><br>
> I've been looking at breaking it up and reassembling it using<br>
> templates and there is a partial version at:<br>
><br>
> <a href="http://wiki.laptop.org/go/WV_VM" target="_blank">http://wiki.laptop.org/go/WV_VM</a><br>
><br>
> Is there a easy way to transfer all 70 some pieces at once,<br>
> instead of doing them one at a time using<br>
><br>
> <a href="http://wiki.laptop.org/go/Special:Upload" target="_blank">http://wiki.laptop.org/go/Special:Upload</a><br>
><br>
> But wait that's only for Images not for Pages.<br>
><br>
> And when the templates all get reassembled it's going to<br>
> be just as big, if not a little bigger.<br>
><br>
> What I really need is a syntactic variant, that builds a<br>
> combined Table of Contents, but does not put all the<br>
> pieces together into a combined wiki page, the links<br>
> in the Table of Contents take you the right spot in<br>
> one of the component pages.<br>
><br>
> Does that capability exist, or am I just dreaming?<br>
><br>
> --<br>
> Drew Einhorn<br>
> _______________________________________________<br>
</div></div>> Devel mailing list<br>
> <a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
> <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
<div><div></div><div class="Wj3C7c">><br>
_______________________________________________<br>
Library mailing list<br>
<a href="mailto:Library@lists.laptop.org">Library@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/library" target="_blank">http://lists.laptop.org/listinfo/library</a><br>
</div></div></blockquote></div><br>