Forum:TOC alteration that turns it into a full page width but multiple columns

TOC alteration that turns it into a full page width but multiple columns
I usually go to the IRC chat for this sort of thing but people there were unsure and directed me to here... I think this would be where I ask about this sort of thing... right? Anyways what I would want it to do is to split all the contents it is a table of into three columns that fits to the width of the page felinoel  ~  (Talk)  17:17, July 21, 2010 (UTC)


 * Is this TOC a general one (generated from normal (random) headings) or one for data that has a 'standard' structure, e.g A B C .. Y Z, Months, Years etc ?


 * There are a number of Templates on Wikipedis for creating the 2nd type that could be adapted - here or have you seen something on another wiki like you describe ? I've never seen a 3 col TOC for random data. ?? - BulldozerD11 21:01, July 21, 2010 (UTC)


 * Ummm I guess it is a general one? Yea never seeing a three column TOC is my problem lol felinoel  ~  (Talk)  05:12, July 22, 2010 (UTC)


 * Sounds to me like it would need some a new 'function' creating then rather than a basic template, which can generate it from scratch and structure it inplace of the 'normal' TOC function. Perhaps one of the JS / MediaWiki developers can help then as it is not my field of knowledge ?? I dont think the standard TOC can be made to split into 3 colums by using wiki code unfortunately. (hopefuly somebody can prove me wrong !!)- BulldozerD11 11:57, July 22, 2010 (UTC)


 * Well I tried turning the reflist template into something that uses te TOC instead but I really have no clue what I am doing there also I am realizing now that I would need the coding for the TOC which I didn't use... idk why?!!? I am going to go off and try it now... but were would I find the coding for the TOC? felinoel  ~  (Talk)  12:04, July 22, 2010 (UTC)


 * Here is the TOC help at MediaWiki -Help:TOC but nothing about changing the layout as you require, more about skiping some items to be displyed, but there are links ro other pages i've not looked at & you could ask over at Wikimedia about the TOC code. I think the Reflist template is a different thing from TOC and basicaly displays references in a smaller font than normal text, wirh some layout options rhat apply styles defined in classes used by the browser. I think You need a mediaWiki developer/coder as its a core function, not a user level thing to modify and link into the system. - BulldozerD11 13:06, July 22, 2010 (UTC)


 * Yea well I am moderately sure that if I had the code for the TOC then I could figure out how to make it work... felinoel  ~  (Talk)  15:14, July 22, 2010 (UTC)

The "code" for the TOC handler is here, in the formatHeadings function of the parser. Enjoy. --Uberfuzzy 19:02, August 3, 2010 (UTC)