User talk:Yodathedark

From MediaWiki.org

Jump to: navigation, search
MediaWiki logo.png

Dear Yodathedark, Welcome to MediaWiki.org!

Yes, Welcome! This site is dedicated to the documentation of the MediaWiki software, the software behind many wikis, including that of Wikipedia and the Wikimedia Foundation projects.
Please, take a look at the following pages. They might prove useful to you as a newcomer here:

If you have any questions, please ask me on my talk page. Once again, welcome, and I hope you quickly feel comfortable here, and find this site a beneficial documentation of the MediaWiki software.

Thanks, and regards, Skizzerz 19:11, 4 November 2009 (UTC)

[edit] New section tab on every page

This would require javascript, perhaps something like the following (please note that it might not work, I haven't tested it). Add it to your user js to enable it.

//add "+" tab to every page
addOnloadHook(function() {
    if(document.getElementById('ca-edit') && !document.getElementById('ca-addsection')) {
        var href = document.getElementById('ca-edit').getElementsByTagName('a')[0].href + '&section=new';
        var nextnode;
        if(nextnode = document.getElementById('ca-history'));
        else if(nextnode = document.getElementById('ca-watch'));
        else if(nextnode = document.getElementById('ca-unwatch'));
        else nextnode = null;
        addPortletLink('p-cactions', href, '+', 'ca-addsection', 'Start a new section [+]', '+', nextnode);
    }
});

Let me know or poke people on the #mediawiki-scripts IRC channel if there are issues with this. --Skizzerz 19:11, 4 November 2009 (UTC)