Last modified: 2009-10-02 11:16:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18869, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16869 - Hiding TOC should hide TOC in printout
Hiding TOC should hide TOC in printout
Status: RESOLVED DUPLICATE of bug 482
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.14.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-03 18:17 UTC by P. Birken
Modified: 2009-10-02 11:16 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description P. Birken 2009-01-03 18:17:30 UTC
If you hide the TOC, the word "Content" is still there, together with "show", to make the TOC appear again. So far so good, but this stuff will appear on a printout, without any meaning. It would be nice to remove it in the printversion alltogether. 

Happy new year everybody!
Comment 1 Pyr0 2009-09-21 19:46:21 UTC
(In reply to comment #0)
> If you hide the TOC, the word "Content" is still there, together with "show",
> to make the TOC appear again. So far so good, but this stuff will appear on a
> printout, without any meaning. It would be nice to remove it in the
> printversion alltogether. 
> 
> Happy new year everybody!
> 

printable version shows full TOC table without the possibility to hide at all. Is this the desirable behavior?
Comment 2 Robin Krahl 2009-09-22 19:30:16 UTC
I agree to Pyr0: The only way to disable printing the TOC in the article is to disable displaying the TOC everywhere (__NOTOC__) as toggeling is realized with JavaScript. Otherwise, the TOC is printed completely. So in my opinion, we should close this bug report as there is no bug ;).

But using your user CSS should allow you to hide the TOC with the following code: 
@media print { table.toc { display: none; } }
Comment 3 P. Birken 2009-09-25 11:45:35 UTC
There seems to be a misunderstanding: Go to an article with a TOC. Hide the TOC. Print the article (not via the print version, but via browser). The word "Content" will be in the printout. 
Comment 4 Robin Krahl 2009-09-25 12:08:51 UTC
Ah, ok. Spontaniously, I only can think of adding a “toggled” class to fix this bug. Maybe someone else has a better idea, otherwise I’ll see how to implement this. The other question is if we have to fix it. Actuallay, you shouldn’t use the browser’s but Wikipedia’s print version… 
Comment 5 P. Birken 2009-09-25 12:15:02 UTC
Personally I would prefer that if I hide the TOC, it should be hidden in both Wikipedia's print version, as well as the browsers, to have a consistent behavior. But what you suggest would certainly be an improvement.
Comment 6 Robin Krahl 2009-10-02 11:16:22 UTC
I just wondered why it worked with the trunk version but not with the an older release I had on my laptop… so this will be fixed in version 1.16.

*** This bug has been marked as a duplicate of bug 482 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links