April 2023

S M T W T F S
      1
2345678
9101112131415
161718192021 22
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Friday, February 26th, 2010 12:04 pm
It looks like Fanlore tables of contents should behave like Wikipedia ones: in other words, after the opening paragraph(s) and directly before the first header. Putting in "__TOC__" should force the table of contents to appear at that point. But that doesn't seem to be what's happening. It looks, or at least it looks to me, like the table of contents is stuck to the end of whatever template is in the article. Is there any way to change this? I think articles would be a lot easier to read if we could split the two.

Here's an example of a Wikipedia page with a huge template and a huge table of contents that's still pretty readable because of how they're positioned.
http://en.wikipedia.org/wiki/Japanese_history

Is this just a problem with the skin I'm using? (Monobook--more or less the same as the Wikipedia default, right?) Is there some editing trick I'm missing?

ETA: The issue is the inclusion of "__TOC__" in some templates. I really think it shouldn't be there. Anyone have reasons it should? The templates that contain this are:

http://fanlore.org/wiki/Template:FandombyText
http://fanlore.org/wiki/Template:FandombyText-RPF
http://fanlore.org/wiki/Template:Fanwork
http://fanlore.org/wiki/Template:GlossaryTerm
http://fanlore.org/wiki/Template:OrganizationCorporation
http://fanlore.org/wiki/Template:PolicyInfobox
http://fanlore.org/wiki/Template:Site


http://fanlore.org/wiki/Template:ArchiveProfile
http://fanlore.org/wiki/Template:AwardsProfile
http://fanlore.org/wiki/Template:CharacterProfile
http://fanlore.org/wiki/Template:Commentary
http://fanlore.org/wiki/Template:CommunityProfile
http://fanlore.org/wiki/Template:ConventionProfile
http://fanlore.org/wiki/Template:EventProfile
http://fanlore.org/wiki/Template:FanProfile
http://fanlore.org/wiki/Template:PairingProfile
http://fanlore.org/wiki/Template:PersonProfile
http://fanlore.org/wiki/Template:UsenetProfile
http://fanlore.org/wiki/Template:ZineAnthology
http://fanlore.org/wiki/Template:ZineNovel
http://fanlore.org/wiki/Template:ZinePublisherProfile
Friday, February 26th, 2010 06:38 pm (UTC)
You'd need to edit the resp. templates to exclude __TOC__, since (I assume) that overrides the magic word (seems to be a "one single TOC to rule the article rule" which is, sensible)

(cf. http://fanlore.org/w/index.php?title=Template:Fanwork&action=edit

-- __TOC__ nested at the end of the infobox table)


ETA: and by "you", I do of course mean admins with template-editing powers, egh.
Edited (oh, yeah, admins) 2010-02-26 06:38 pm (UTC)
Friday, February 26th, 2010 07:14 pm (UTC)
Well, with it being in the side box, the text can run to the left of it. I mean, for example on http://fanlore.org/wiki/First_Time_%28Star_Trek:_TOS_zine%29
if the TOC was an extra box with the text only starting below it, that would be a lot of scrolling.

Also on pages that have a TOC on its own, the formatting often sucks for me, like on http://fanlore.org/wiki/Star_Trek:_The_Original_Series/Fanzines
I get weird overlapping effects as the first table is partly over the blue TOC thing on the right.
Edited 2010-02-26 07:17 pm (UTC)
Friday, February 26th, 2010 08:52 pm (UTC)
I use the default layout, so I don't know about mono. What I meant with overlapping is like on this screenshot I took of the second link, and I hate that:
http://www.ratcreature.net/tmp/snap6.jpg
Friday, February 26th, 2010 09:15 pm (UTC)
Yeah.

Another thing I don't understand is why some pages get a toc when they have headers, but others don't. Like
http://fanlore.org/wiki/Star_Trek:_The_Original_Series/Fanzines
has a toc but
http://fanlore.org/wiki/Star_Trek:_The_Next_Generation/Fanzines
doesn't.
Saturday, February 27th, 2010 02:30 am (UTC)
TOCs are automatically generated for every page with more than three headings :)
Saturday, February 27th, 2010 02:27 am (UTC)
I have no idea why people chose to have the TOC nested in the infoboxes, but it is indeed so for all the templates linked up there.

I can certainly edit it out, but I have no idea if I should wait for other committee members to authorise that (they made infoboxes long before my time), so I'll email them. If they say it's okay, I'll remove the magic word from the templates. I'll let you know!

(I'm all for having regular TOCs—I don't think many articles will have a relocated TOC or anything, but long infoboxes aren't pretty, and they're the main issue with using Monobook with Fanlore, which I do whenever I can :D)
Edited 2010-02-27 02:33 am (UTC)
Saturday, February 27th, 2010 02:44 am (UTC)
I don't think the TOC was put inside the infoboxes to fix any issues. They probably just thought it looked pretty! :D

I created a {{CategoryTOC}} the day I joined Fanlore, I think *g* What other templates do you think might be useful?
Saturday, February 27th, 2010 11:32 am (UTC)
*nods* Sure. I have no idea if {{TOC nest right}} (or {{TOC right}}, for that matter) will play well with fanlore's WordPress skin. We'll have to create them and see! *grins*