"Wikitravel has a speed and convenience the books' publishers can only envy." Time Europe

Tech talk:Table of contents makes too much whitespace

From Wikitravel Shared
Jump to: navigation, search

Hello. New to mediawiki and have spent 6+ hours with google, css and source files trying to find code that would do what you have accomplished with ToC. Would you be willing to share your code, or some pointers as to how to solve this problem? Bulbasnore 00:18, 8 April 2007 (EDT)


(Moved to the talk page by Ravikiran. Not signed in.)

I am in the same boat...[edit]

The TOC you have on this page is great... but I cannot find the code or an example of how to make the dropdowns through google anywhere.

Could you share the code, or possibly point me to instructions, or a tutorial that might point me in the right direction.

Great job, by the way.

Thanks,

Ean - eanmeyer@gmail.com

TOC placement template[edit]

Archived from en:Pub:

The history of TOC placement is a long and sordid affair on Wikitravel, but Evan has been working on a solution that should eliminate many of the whitespace issues (shared:Tech:Table of contents makes too much whitespace). In the mean time some users have begun using Template:TOCleft. Articles that use this template look much better than those that don't, but there may be some conflicts with Evan's solution, and I'm not sure we want to have the precedent of allowing any editor to modify something as fundamental as the TOC on a per-article basis. My preference would be to wait for Evan rather than modify TOC placement on a per-article basis, but perhaps others have an opinion, so discussion begun... -- Ryan (talk) 20:07, 22 March 2007 (EDT)

I confess to being one of the users that has been trying to save some paper at print time (and prettify articles in the process - but beauty is always in the eye of the beholder and others, of course, may disagree with my aesthetics).
When I first edited on Wikitravel (anonymously, some months ago) I found that {{TOCleft}}
did not work. When it started working I (wrongly?) assumed that the issue of custom ToC placements had been decided upon.
Obviously I will agree to desist from custom ToC placements if someone would be kind enough to give me a firm timeline for Evan's solution (or a place to track progress) since Template talk:TOCleft hadn't been created at the time I wrote this...
...Gaimhreadhan (kiwiexile at DMOZ) • 09:35, 23 March 2007 (EDT)
I'd love to get this done and launched. I'm tired of dealing with the ToC placement. Please, if folks have comments, please make them on the shared: discussion page. --Evan 12:13, 23 March 2007 (EDT)

Please forgive my ignorance, (there is currently no text on shared: discussion - was it archived somewhere?) but several users have directed me here to the Pub to discuss this - who is that (blank) page shared with?...Gaimhreadhan (kiwiexile at DMOZ) • 20:06, 23 March 2007 (EDT)

What Evan meant is that anyone who is interested should add to the discussion on the shared site article at shared:Tech:Table of contents makes too much whitespace. -- Ryan (talk) 20:09, 23 March 2007 (EDT)
Thanks for pointing me in the right direction, Ryan! I've left a comment at shared:Tech:Table of contents makes too much whitespace. (I had to sign my comment manually since my log-in doesn't seem to work there; I was reluctant to create a new log-in since I assume there must be a way to use my Wikitravel log-in there too?)...Gaimhreadhan (kiwiexile at DMOZ) • 20:46, 23 March 2007 (EDT)
You assumed wrong. You'll have to create a new account for Shared, however, you can then use OpenID so that you'll be logged into en and shared at the same time. See the log in screen for more details. -- Sapphire(Talk) • 21:53, 23 March 2007 (EDT)
Andrew, you are wrong. You can use OpenId to import all your details from Wikitravel to Shared. Linking is just an additional feature if you already happen to have already created an account on Shared. — Ravikiran 22:16, 23 March 2007 (EDT)
Yeah, I just remembered that. I've been waiting for an OpenID un-converter because I'd rather have my other IDs tied to en:, rather than to shared so I've been doing it the old way. Anyhow, to use OpenID shared:Special:OpenIDLogin. -- Sapphire(Talk) • 22:43, 23 March 2007 (EDT)
No, I'm afraid the OpenID login is broken at shared...Gaimhreadhan (kiwiexile at DMOZ) • 12:13, 27 March 2007 (EDT)

Table of contents[edit]

Swept in from en:pub:

Well, the new table of contents looks great, I think. The only problem I see is that it now appears at the top when viewing differences, pushing the differences over so that one has to sidescroll to see everything. Can we suppress the TOC when viewing differences, as we did before? Or simply push it down below the differences into the article where it would normally appear? 220.2.118.238 17:43, 10 May 2007 (EDT)

Issues related to the new ToC are being discussed here. --Peterfitzgerald Talk 21:27, 10 May 2007 (EDT)

TOC problems[edit]

Swept in from en:pub:

The new TOC design is online for several weeks now. Still there are some severe problems, not only with the layout but also patrolling is bothersome now. As Evan doesnt see to care about these problems maybe we can fix them ourself. Does anybody have an idea which MediaWiki-Extension is used? Are we the only Wiki that uses this kind of TOC? --Flip666 writeme! • 19:24, 19 June 2007 (EDT)

The last thing I want to do is make you think I don't care, Phil. As far as I know, there are two serious problems (the way the ToC shows up with diffs, and the fact that the ToC shows up in the wrong places). I'll make those an immediate priority and work on them tonight. --Evan 21:10, 19 June 2007 (EDT)
I hacked up a temporary solution for the diff problem; let me know if it works OK. --Evan 22:51, 19 June 2007 (EDT)

Looks like what you did worked for diffs, good job! That was an annoying one. I know you've got a lot on your plate but it would be nice to fix the other things people took issue with as well:

  • getting the + sign to twist down - the new TOC is still pretty unusable for anything below the top-level sections in Safari
  • forcing all sections to stay below the TOC - see how Africa looks in my browser
  • getting the "bullets out of the margin", as Todd put it... but if you fix the above problem then I think this would become irrelevant
  • move the "contents" heading inside the box, or better yet, remove it altogether

Sorry to keep harping on them, but you haven't really responded to the previous requests, and as far as I know you're the only one that can fix these things  :) – cacahuate talk 00:10, 20 June 2007 (EDT)

The last two items are very low priority, IMO. I don't think sections-below-the-TOC is the best solution; it'd do ugly things to articles with brief intros and longish TOCs (like lots of city articles). Changing the regionlist template so that the left margin can move (do the div tags wrapped around it prevent that?) might be preferable. - Todd VerBeek 07:54, 20 June 2007 (EDT)
Thanks, cacahuate. Let's continue this conversation on shared:Tech:Table of contents makes too much whitespace. --Evan 08:11, 20 June 2007 (EDT)

Variants

Actions

In other languages