Forum:Change Logo on namespaces.
Hi I'm a moderator (don't know how that happend) on the Dutch version of Uncyclopedia. now my question is how can we change the logo's in the upper left corner that only takes afect on a namespace like /forum: or /UnNews:? I have found some scripts but It does not take afect on a namespace but on a specific page like Forum:bla.
Please help me, I know my English sucks but even a wikipedia user should be able 2 translate it.... Pardon forgot 2 sign Alzheimlich 16:01, 10 June 2007 (UTC)
- See MediaWiki:Uncyclopedia.css for the code that needs to be added to Monobook.css
- And does someone know how to link it to the headpage of the namespace and not to the official headpage? The person who can gove the answer gets many thanks from Holland and our number 1 export product.. (its green) Alzheimlich 21:40, 10 June 2007 (UTC)
- Damn. I wish I could help you with that, but I can't. Sir Cs1987 UOTM. t. c 00:10, 11 June 2007 (UTC)
- Should be possible, try contacting User:Spang or User:Olipro. t o m p k i n s blah. ﺞوﻦ וףה ՃՄ ண்ஸ ފއހ วอฏม +տ trade websites 01:18, 11 June 2007 (UTC)
- Damn. I wish I could help you with that, but I can't. Sir Cs1987 UOTM. t. c 00:10, 11 June 2007 (UTC)
- And does someone know how to link it to the headpage of the namespace and not to the official headpage? The person who can gove the answer gets many thanks from Holland and our number 1 export product.. (its green) Alzheimlich 21:40, 10 June 2007 (UTC)
You'd need to use javascript to do that. Add the following to mediawiki:common.js and it should do the trick.
function changeLogoLinks() { if (wgCanonicalNamespace == 'Forum') { document.getElementById('p-logo').getElementsByTagName('A')[0].href = '/wiki/Forum:Village_Dump'; } if (wgCanonicalNamespace == 'UnNews') { document.getElementById('p-logo').getElementsByTagName('A')[0].href = '/wiki/UnNews:Main_Page'; } } addOnloadHook(changeLogoLinks);
And you'd change Forum
and UnNews
to the right namespaces for the wiki and link them to the right place. You can change it for as many or as few namespaces as you like. • Spang • ☃ • talk • 05:39, 11 Jun 2007
Thanks!! You can get your beheaded tulip at a harbor in San Diego! I luv u! Alzheimlich 20:59, 11 June 2007 (UTC)