<div>Making a mediawiki bot is not too hard - all the skeleton exists in python, you only have to flesh it out with your own logic.</div>
<div> </div>
<div>As for the TOC, the template idea is that you use <noinclude> ... </noinclude> around all the parts of the templates that are NOT headers (or you can start the noinclude after one paragraph, to give the idea). The problem is, then you need a way to go from the main page to the right section of the corresponding subpage, and from one subpage to the next - it may be possible, I haven't done it<br>
<br></div>
<div class="gmail_quote">On Wed, Feb 20, 2008 at 4:46 PM, drew einhorn <<a href="mailto:drew.einhorn@gmail.com">drew.einhorn@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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><font color="#888888"><br>--<br>Drew Einhorn<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></font></blockquote></div><br>