On Fri, Oct 13, 2006 at 05:38:00PM +0100, Mark Clements wrote:
"Rotem Liss" rotemliss_net@fastmail.fm wrote in message news:452FC01A.7040009@fastmail.fm...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jay R. Ashworth wrote:
It causes the text inside it, IIRC, only to be returned when the page is transcluded in as a template, and not when viewed directly; the opposite of <noinclude>... unless I'm completely insane.
I think that this behavior is the one of <includeonly>, not <onlyinclude>. Anyway, I think all of them (<noinclude>, <includeonly> and <onlyinclude>) were introduced in 1.6.
Yup - Jay's example is for <includeonly>.
Um, "oops". There are *both*?
Both <includeonly> and <noinclude> are well documented in various places, including the template page on meta. <onlyinclude> is not mentioned at all, which implies that either it was introduced at a later date, or is deliberately 'undocumented' for some reason...
Well, clearly, if I could get that wrong, having both is probably a Bad Idea... :-)
Cheers, -- jra