Manual talk:Table of contents

CSS To Change Numbering for the ToC
Stashing here for later reference. CSS i was playing with to change the numbering scheme on the ToC:

html #toc ul, .toc ul { list-style-image:none; list-style-position:inside; list-style-type:armenian /*replace this with the type of number you want*/; }

span.tocnumber { display:none; } Bawolff (talk) 03:11, 16 April 2012 (UTC)

Auto-collapse TOC on a given page?
Question - is there a way to auto-collapse the TOC on a given page? NOTOC gets rid of it, but I just want it collapsed, with the reader able to show it again should they wish. Manning Bartlett (talk) 04:08, 13 March 2013 (UTC)

NOTOC for selected headers
Here my question, I want to have the Table of Contents in the page, but there are one header & subheaders that I don't want to show in it. Is that possible?

I show and example:

= Show 1 = == Show 1.1 == === Show 1.1.1 === == Show 1.2 == = Hide 2 = == Hide 2.1 == === Hide 2.1.1 === = Show 3 =

I hope that be clear that I mean.


 * There is no easy way: http://en.wikibooks.org/wiki/MediaWiki_User_Guide/Sections_and_Headings#Headings_not_in_TOC --Albert25 (talk) 12:32, 13 June 2013 (UTC)

Permanently repositioning the ToC directly after the title?
I cannot figure out how to permanently move the position of the Table of Contents. I have changed the CSS to float the ToC left, but I need it to come directly after the H1 heading on the page, rather than before the first H2 heading, for the text to wrap how I want it to. I can accomplish this with, but doing this on every single page is infeasible. I have not found an extension that does this either.

My question is: how would I even begin to change that? Would a skin do it? I've looked through my skin, I've looked through all the skinning manuals I can find, I even looked through SkinTemplate.php and Skin.php in the MediaWiki files, but I can't figure out which file it is -- if there even is a single file -- that simply lays out the order the different elements appear in the page code. There are a ton of variables and hooks and arrays that I suspect this is buried in, and I only have moderate programming ability so I can't dig it up on my own. It would generally be helpful to know where I'd go if I wanted to add something like a containing div around things like the ToC. Natrashafierce (talk) 20:23, 23 August 2014 (UTC)


 * I'm trying to so something similar. Cant find the answer for the life of me.

Vapblack (talk) 13:53, 12 December 2014 (UTC)

Is there a way to Apply Multilingualism to Contents Label in the TOC Template or Even Custom Title?
For example, is there a way to have the header modified to match the applicable language? I found that text= does not work. For example, Contents in English (already exists), Contenu in French, and Contenido in Spanish rather than only the generic Contents? Thanks!

Quadra23 (talk) 17:02, 20 January 2015 (UTC)