Versionen fra 31. mar. 2009, 21:59
Pokkers, du kom mig i forkøbet! Men anyways: Det ser rigtigt godt ud. Er der forresten en måde man kan ændre logo udelukkende på én side? Det kunne vidst være nyttigt her.Det onde U (Kan I møgunger sige " pænt goddag"? - Det er Fedtmule tid! - (tirsdag 31. marts 2009 19:30)
Den skal jeg lige tænke lidt over, da den jo er tilknyttet en fast fil, men den må jo også have et klassenavn. Ellers gælder der:
Skift af forside til anden side
- Skriv siden i Mediawiki:Mainpage.
Ellers hvis man vil ændre noget på en enkelt side (og har adgang til at ændre i common.css):
Jeg har f.eks på forsiden fjernet dér hvor der stod "Forside" med:
body.page-Forside h1.firstHeading { display:none; }
så det kun gjaldt for forsiden.
skal lige undersøge hvad Wiki.png hedder. Du må godt komme må konstuktiv kritik eller gå ændre i filen hvis du har lyst, da ideen mere eller mindre er din
Jeg kan ikke se andet end at man er nødt til at gå ind og ændre $wglogo i LocalSettings dvs. forbidden territory for vores vedkommende.
Men, men, men.
Her ser du det i encyclopedia.css som f.eks laver UnNews-logoet
* custom namespace logos (still under testing, this only works on full namespaces) -Splaka */
/* Image: and Image_talk: */
body.ns-6 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/d/d5/Uncyclomedia_Commons.png) !important; }
body.ns-7 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/d/d5/Uncyclomedia_Commons.png) !important; }
/* UnNews: and UnNews_talk: */
body.ns-102 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/0/02/UnNews_Logo_Potato.png) !important; }
body.ns-103 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/0/02/UnNews_Logo_Potato.png) !important; }
/* Undictionary: and Undictionary_talk: */
body.ns-104 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/4/47/Undictionary_Logo_Text.png) !important; }
body.ns-105 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/4/47/Undictionary_Logo_Text.png) !important; }
/* Game: and Game_talk: */
body.ns-106 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/9/92/Game-Logo.png) !important; }
body.ns-107 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/9/92/Game-Logo.png) !important; }
/* Forum: and Forum_talk: */
body.ns-110 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/6/61/Forum_Logo_Soapboxes.png) !important; }
body.ns-111 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/d/db/Forum_talk.png) !important; }
/* UnTunes: and UnTunes_talk: */
body.ns-112 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/b/bf/UnTunes.png) !important; }
body.ns-113 #p-logo a { background-image: url(http://images.wikia.com/uncyclopedia/images/b/bf/UnTunes.png) !important; }
og her er det stykke kode man definerer sit alternative namespace med i common.js
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);
...så det kan altså gøre hvis du definerer et nyt namespace til formålet.
Hmmm.... Nu skal jeg lige have et logo at afprøve det med først. Stay turned.Det onde U (Kan I møgunger sige " pænt goddag"? - Det er Fedtmule tid! - (tirsdag 31. marts 2009 20:59)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.