Hi folks.
I'm a relatively new wikipedian (http://en.wikipedia.org/wiki/User:Friedo) and also a programmer, so I'd like to get your feedback on some ideas I had for improving the code. I'm not too familiar with PHP (I come from the Perl/C side of things) so I haven't quite wrapped my brain around all the source files yet. (Ergo pointers on where to start would be great.)
I think there needs to be a method for creating sub-articles which share content with their parent in a permanent way. I think this would be extremely beneficial in creating content where there is a need for hierarchical organization. In particular, what I envision is a special tag which could be placed in a sub-heading, which would collapse everything from that point to the next heading behind a link that says "Read more..." (or similar.)
So, for example, in an article on programming syntax, you could have something like:
==Foo== Foo is a [[metasyntactic variable]]. Blah blah blah.
{{sub:Foo}} ===Uses for foo=== ... ===Origin of foo=== ... ==Bar==
Everything between {{sub:Foo}} and ==Bar== would then be replaced by a "Read More.." link. Since the actual content is all in the master article, sub-articles can be edited as sections and a user could set a preference to automatically expand all sub-articles. And of course they should be nestable. Ideally sub-articles would be browse-able independently of their parents (but with a link to the parent) and have their own TOC. (However, this raises the conundrum of how to do the markup -- you'd probably end up with really low-level headings which would need to be rendered as top-level when displayed on the sub-page.)
So, thoughts? Is this practical or doable? I'd be happy to write the code just as soon as I learn some more PHP.
wikitech-l@lists.wikimedia.org