How would one automatically collapse a page TOC in the event of a NavFrame or collapsibleTable expansion, such as by adding an option to the MediaWiki:Common.js ?
This might be useful where there is a long TOC that shares the page position of the NavFrame or collapsible table whose expansion moves its content below the window view because of the TOC size.
--Fred
Dont know if this helps, but I just wrote this up really quick. This javascript function would close the TOC - but unlike calling toggletoc(built-in function) , it won't open it if it was already closed.
If you could call this when a table expands, you would ge good to go. But sadly I dont know where the collapsibleTable code is, so im not sure how to do it.
function closeTOC(){
//if no TOC, stop if(!document.getElementById('toc')) return;
var toc = document.getElementById('toc').getElementsByTagName('ul')[0]; var toggleLink = document.getElementById('togglelink'); changeText(toggleLink, tocShowText); toc.style.display = 'none'; document.cookie = "hidetoc=1"; }
On Aug 21, 2010, at 11:30 PM, Frederick Grose wrote:
How would one automatically collapse a page TOC in the event of a NavFrame or collapsibleTable expansion, such as by adding an option to the MediaWiki:Common.js ?
This might be useful where there is a long TOC that shares the page position of the NavFrame or collapsible table whose expansion moves its content below the window view because of the TOC size.
--Fred
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Sun, Aug 22, 2010 at 8:57 AM, Adam Meyer meyer7@mindspring.com wrote:
Dont know if this helps, but I just wrote this up really quick. This javascript function would close the TOC - but unlike calling toggletoc(built-in function) , it won't open it if it was already closed.
If you could call this when a table expands, you would ge good to go. But sadly I dont know where the collapsibleTable code is, so im not sure how to do it.
See http://www.mediawiki.org/wiki/MediaWiki:Common.js http://www.mediawiki.org/wiki/MediaWiki:Common.js
function closeTOC(){
//if no TOC, stop if(!document.getElementById('toc')) return; var toc =
document.getElementById('toc').getElementsByTagName('ul')[0]; var toggleLink = document.getElementById('togglelink');
changeText(toggleLink, tocShowText); toc.style.display = 'none'; document.cookie = "hidetoc=1";
}
On Aug 21, 2010, at 11:30 PM, Frederick Grose wrote:
How would one automatically collapse a page TOC in the event of a
NavFrame
or collapsibleTable expansion, such as by adding an option to the MediaWiki:Common.js ?
This might be useful where there is a long TOC that shares the page
position
of the NavFrame or collapsible table whose expansion moves its content
below
the window view because of the TOC size.
--Fred
Good Afternoon MediaWiki Fans:
I have several hundred accounts created during a spam attack. I found the extension to run a delete on a list of pages to remove and that worked just fine. I would like to run a disable account operation on the hundreds of fake users. I haven't found any script or extension that is set up to do that. Would anyone have a pointer to such ?
--Hiram
Putting my on $.20 in here, I offer that approved accounts have a separate entry in the db, or a separate entry in the record not visible or settable except by manual interaction of an an admin or 'crat, and the script would delete everyone else "with extreme prejudice."
On 8/22/2010 14:26, Hiram Clawson wrote:
Good Afternoon MediaWiki Fans:
I have several hundred accounts created during a spam attack. I found the extension to run a delete on a list of pages to remove and that worked just fine. I would like to run a disable account operation on the hundreds of fake users. I haven't found any script or extension that is set up to do that. Would anyone have a pointer to such?
Hello all, I put up this wiki using Media wiki a while back. No one is really jumping in and using it. My site has a number of fans on facebook, and followers of the group. The wiki is part of a site, Word Salad Online. I want it to be about words, poetry, language, communication, writing. (also, I'll add topics like semantics, the semantic web and such concepts as computer/machine learning, etc. ) The thing is that I need to make the site clear as to how to add an article, or edit an existing article. I also need a way to structure the site. Is there any kind of documentation that gives tips on how to think about growing a wiki? It's a different approach than other website development. We don't have a menu of everything on the site. We have a main page and that has to be setup to grow off of there. Can anyone give me any guidance. The site is in my sig below. Are there videos that might be inspiring... that's what I need, inspiration on how to make this work... setup to grow from the home page in every possible direction - because you don't just create an orphan page, do you? And it needs to be clear for newbies how to use the site and add content... I need to have some kind of material that is not going to seem like a major undertaking to get started... If I could make people curious enough to want to create content that would help. thanks, Bruce
mediawiki-l@lists.wikimedia.org