MediaWiki talk:InterProject.js

Latest comment: 10 years ago by Rillke in topic Heading level changed

Complete interproject script edit

With {{InterProject}} and translations for the headings (here) here in place. Can the javascript to actually make it work be moved from Commons aswell ? Found here commons:MediaWiki:InterProject.js. Ofcourse, after testing (just to be sure) this one then needs to be importScript'ed in MediaWiki:Common.js --–Krinkletalk 22:08, 25 July 2010 (UTC)Reply

@Nemo: To start copy the contents of commons:MediaWiki:InterProject.js to MediaWiki:InterProject.js. Users can then test it by putting importScript('MediaWiki:InterProject.js'); in their local User:Example/monobook.js or User:Example/vector.js. If testing goes well we could let it load by default via MediaWiki:Common.js but that's for later. For now just importing the script itself to Meta would be great. –Krinkletalk 13:05, 12 August 2010 (UTC)Reply
Ok, done. Now I'll test the template. I love InterProject template; at w:it:MediaWiki:Vector.js there's a modified version for our {{interprogetto}}, which was imported some 4 years ago. I don't know how different they are now, I think that some coordination is needed. --Nemo 13:56, 12 August 2010 (UTC)Reply
Looks like it's working, but the template code could be improved, IMHO: currently it's very basic. --Nemo 14:30, 12 August 2010 (UTC)Reply

Link to Commons edit

{{editprotected}} (From Template talk:InterProject). I think that the "a ref" and its closing "a" can be removed. Don't exist at Commons:Mediawiki:InterProject.js:
Now:

interProject.innerHTML =
        '<h5><a href="/wiki/Commons:SisterProjects">' +
        (sisterPr && sisterPr.firstChild ? sisterPr.firstChild.innerHTML : "Sister Projects") +
        '<\/a><\/h5><div class="' + (skin == "vector" ? "body" : "pBody") +'">' +
        interPr.innerHTML + '<\/div>';

Suggested:

interProject.innerHTML =
        '<h5>' +
        (sisterPr && sisterPr.firstChild ? sisterPr.firstChild.innerHTML : "Sister Projects") +
        '<\/h5><div class="' + (skin == "vector" ? "body" : "pBody") +'">' +
        interPr.innerHTML + '<\/div>';

Thanks!-Aleator (talk) 23:46, 4 August 2011 (UTC)Reply

  Done, I already wanted to do this some time ago, but forgot about it... thanks ;) - Hoo man (talk) 14:26, 5 August 2011 (UTC)Reply

Sister projects edit

At Special:Recentchanges, link to "Sister projects" doesn't work. I can't find why. Similar thing happens on Commons. Any ideas? -Aleator (talk) 02:09, 29 November 2012 (UTC)Reply

This seems to be caused by gerrit:30361 / gerrit:34702, which replaced the h5 elements by h3. I just fixed our version of the hack at ptwiki. Helder 19:50, 20 December 2012 (UTC)

Heading level changed edit

{{edit request}} Please note that the sidebar links (but not only them; I had to fix several things at Commons as well) changed from h5 to h3. If you look at this version (last entry in sidebar), you will notice what's wrong. Please fix. The one at Commons seems to work. Thanks in advance. -- Rillke (talk) 14:21, 16 July 2013 (UTC)Reply

Probably fixed. PiRSquared17 (talk) 03:33, 17 July 2013 (UTC)Reply
Looks fine for me, after purging my browser's cache. Thank you. -- Rillke (talk) 09:42, 17 July 2013 (UTC)Reply
Return to "InterProject.js" page.