I'd like to see this generate the TOC for {{:Page}}, but not include the content.
Links in the TOC should go to the original location in Page.
This would enable me to drastically reduce the giant wiki page at
http://wiki.laptop.org/go/VistA_Monograph_Wiki
to a more reasonable size.
Something along like:
http://wiki.laptop.org/go/WV_VM
On Fri, Mar 14, 2008 at 5:30 PM, drew einhorn drew.einhorn@gmail.com wrote:
I'd like to see this generate the TOC for {{:Page}}, but not include the content.
Links in the TOC should go to the original location in Page.
You would like to see *what* do that? <noinclude> is a reserved word already.
When the page is rendered, I'd like to see <noinclude> tags affect the rendering of {{:Page}} in the areas they bracket. It's probably not much more that a few judiciously placed if statements. to alter the links in the TOC and not include the content in the body of the page.
Any pointers to the routines that render {{:Page}} would be appreciated.
On Fri, Mar 14, 2008 at 3:49 PM, Simetrical Simetrical+wikilist@gmail.com wrote:
On Fri, Mar 14, 2008 at 5:30 PM, drew einhorn drew.einhorn@gmail.com wrote:
I'd like to see this generate the TOC for {{:Page}}, but not include the content.
Links in the TOC should go to the original location in Page.
You would like to see *what* do that? <noinclude> is a reserved word already.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Fri, Mar 14, 2008 at 6:25 PM, drew einhorn drew.einhorn@gmail.com wrote:
When the page is rendered, I'd like to see <noinclude> tags affect the rendering of {{:Page}} in the areas they bracket.
You mean, give it an additional and totally different and incompatible meaning to what it does now?
It's probably not much more that a few judiciously placed if statements. to alter the links in the TOC and not include the content in the body of the page.
Maybe, but I wouldn't bet on it being that simple.
Any pointers to the routines that render {{:Page}} would be appreciated.
includes/Parser.php
Simetrical schreef:
On Fri, Mar 14, 2008 at 6:25 PM, drew einhorn drew.einhorn@gmail.com wrote:
When the page is rendered, I'd like to see <noinclude> tags affect the rendering of {{:Page}} in the areas they bracket.
You mean, give it an additional and totally different and incompatible meaning to what it does now?
Please, please, PLEASE don't abuse <noinclude> for this, it has an entirely different meaning already.
I think this could be done in a parser function extension [1], something along the lines of {{#includetoc:Page}}.
Roan Kattouw (Catrope)
On Fri, Mar 14, 2008 at 4:30 PM, Simetrical Simetrical+wikilist@gmail.com wrote:
On Fri, Mar 14, 2008 at 6:25 PM, drew einhorn drew.einhorn@gmail.com wrote:
When the page is rendered, I'd like to see <noinclude> tags affect the rendering of {{:Page}} in the areas they bracket.
You mean, give it an additional and totally different and incompatible meaning to what it does now?
additional? Yes
totally different and incompatible? I didn't see it that way, but you almost certainly know better than I.
I guess we would have to create a new tag, instead of reusing an existing one in a slightly different context.
I do need to break up a monster 240K wiki page into a bunch of pieces, but still have a working TOC to navigate the entire document.
It's probably not much more that a few judiciously placed if statements. to alter the links in the TOC and not include the
content in
the body of the page.
Maybe, but I wouldn't bet on it being that simple.
Any pointers to the routines that render {{:Page}} would be
appreciated.
includes/Parser.php
You are probably right. I'll look there when I get back from a trip to Mexico.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
drew einhorn schreef:
I guess we would have to create a new tag, instead of reusing an existing one in a slightly different context.
I think {{#includetoc:Foo}} makes more sense, but <includetoc>Foo</includetoc> could work as well. The former looks more intuitive to me, however.
Roan Kattouw (Catrope)
On Fri, Mar 14, 2008 at 6:50 PM, drew einhorn drew.einhorn@gmail.com wrote:
additional? Yes
totally different and incompatible? I didn't see it that way, but you almost certainly know better than I.
<noinclude>{{:Foo}}</noinclude> already has a well-defined meaning: "Include the page Foo here as a template, but not when this page is included in another page." Trying to change that would be confusing for users (template calls would suddenly work differently inside of noinclude) and very weird to implement too (what does <noinclude>Foo {{:Foo}}</noinclude> do? <noinclude>{{:Foo}}{{:Bar}}</noinclude>? <noinclude> {{:Foo}} </noinclude>?).
A new parser tag would be the correct way to do this.
On 14/03/2008, drew einhorn drew.einhorn@gmail.com wrote:
I do need to break up a monster 240K wiki page into a bunch of pieces, but still have a working TOC to navigate the entire document.
Write out the TOC manually. Wikipedia does this is several places.
Alternatively, if you just want a TOC, why don't you bung all the pages into a CATEGORY, and then the category page becomes your dedicated TOC.
On 3/17/08, Virgil Ierubino virgil.ierubino@gmail.com wrote:
Write out the TOC manually. Wikipedia does this is several places.
Alternatively, if you just want a TOC, why don't you bung all the pages into a CATEGORY, and then the category page becomes your dedicated TOC.
Can you transclude a category? If not, perhaps there is an interesting idea...
Steve
Steve Bennett wrote:
On 3/17/08, Virgil Ierubino virgil.ierubino@gmail.com wrote:
Write out the TOC manually. Wikipedia does this is several places.
Alternatively, if you just want a TOC, why don't you bung all the pages into a CATEGORY, and then the category page becomes your dedicated TOC.
Can you transclude a category? If not, perhaps there is an interesting idea...
Steve
No. You can only transclude the category page text, not the pages belonging to it.
On Fri, Mar 14, 2008 at 6:30 PM, Simetrical Simetrical+wikilist@gmail.com wrote:
On Fri, Mar 14, 2008 at 6:25 PM, drew einhorn drew.einhorn@gmail.com wrote:
When the page is rendered, I'd like to see <noinclude> tags affect the rendering of {{:Page}} in the areas they bracket.
You mean, give it an additional and totally different and incompatible meaning to what it does now?
It's probably not much more that a few judiciously placed if statements. to alter the links in the TOC and not include the
content in
the body of the page.
Maybe, but I wouldn't bet on it being that simple.
Any pointers to the routines that render {{:Page}} would be
appreciated.
includes/Parser.php
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I must add that this is a really bad idea. noinclude already has a rather useful purpose, why give it another one? That would cause bad stuff to happen, like screwing up example cases on template documentation pages. (In fact, it would screw up template documentation pages. It's rather common that we transclude pages inside a noinclude for documentation reasons.
wikitech-l@lists.wikimedia.org