On 10/14/06, Brion Vibber brion@pobox.com wrote:
These are terribly named, but of course now we're stuck with them for compatibility. Remember this when you next add a feature...
Compatibility with what? Sounds like almost no one is aware of onlyinclude's existence, let alone brave enough to use an undocumented, unannounced feature...?
Incidentally, are there no ambiguous situations (or at least siutations requiring precedence rules to solve) when these various tags are combined? What happens with this text:
<noinclude>foo</noinclude> <onlyinclude>boo</onlyinclude> <includeonly>moo</includeonly> schmoo
I guess when viewed directly you see "foo boo"? (doesn't seem to be clear from above whether <onlyinclude> sections are visible when viewed directly) But when included as a template, do you get "boo" or "boo moo"? I guess only "boo"?
And what about this:
<onlyinclude><noinclude>foo</noinclude></onlyinclude>
? - presumably returns blank.
What if there are multiple <onlyinclude> tags:
<onlyinclude>foo</onlyinclude> <onlyinclude>boo</onlyinclude> moo
- I wouldn't even hazard a guess as to what should/would happen.
I guess this is why documentation would be handy :)
Steve