Hi Krinkle again.
I've made some test, using @import rules inside MediaWiki:Common.css page, but, using
a persofile.css placed in a directory I've created inside the mediawiki engine
directory. I've called persofile.css inside MediaWiki:Common.css page using the
complete url adress of this file (see bellow). In that way, it works fine. But is it a
good practice ? What about direct relative url address that might be preferred instead of
complete url address ?
Ac
__________________________________________________________
Method with complete additional personal CSS directory and complete css file url:
1/ creation of a directory called "PersoFilesCSS" inside the directory where
mediawiki is installed
2/ inside /PersoFilesCSS folder, creation of a css file called colors.css
3/ Put inside this colors.css file this line, modifying #p-personal css component of
monobook skin: div#p-personal {background:yellow;}
4/ Inside MediaWiki:Common.css page, I've placed this @import rule:
@import "http://localhost/private/mdw/PersoFilesCSS/colors.css"
5/ Then refresh browser, and it works
________________________________
De : HiddenId <courriel_achevrier(a)yahoo.fr>
À : Krinkle <krinklemail(a)gmail.com>om>; MediaWiki announcements and site admin list
<mediawiki-l(a)lists.wikimedia.org>
Envoyé le : Jeudi 8 mars 2012 15h02
Objet : Re : [Mediawiki-l] Re : Re : howto include different page.css into one
MediaWiki:CentralCSS.css page for organizing css cascade sheets?
Hi Krinkle.
Thanks for your help.
Unfortunatly, we are testing on a local installation. The wiki is not accessible.
Does it mean, you have tested your method on a wiki using mediawiki engine, to change
#p-personal CSS from common.css, or any other equivalent CSS monobook css placed in
common.css, and you succeed in it ? And if so, as a consequence, you wander if something
concerning our wiki installation avoid a normal processing, do you ?
Here bellow, informations concerning the version.
Ac
--------------------------------------------------------------------
1. Version informations (from Special page Version)
--------------------------------------------------------------------
Installed software
Product Version
MediaWiki 1.18.1
PHP 5.3.2-1ubuntu4.14 (apache2handler)
MySQL 5.1.41-3ubuntu12.10
Installed extensions
Other
Language Selector Language selector on every page, also for visitors Daniel
Kinzler
Polyglot Support for content in multiple languages in a single MediaWiki Daniel
Kinzler
PrefSwitch (Version 0.1.2) Allow users to switch sets of preferences Trevor Parscal
and Roan Kattouw
Extension functions
wfLanguageSelectorExtension and wfPolyglotExtension
Parser extension tags
<gallery>, <languageselector>, <nowiki> and <pre>
Parser function
hooks
anchorencode, basepagename, basepagenamee, canonicalurl, canonicalurle, defaultsort,
displaytitle, filepath, formatdate, formatnum, fullpagename, fullpagenamee, fullurl,
fullurle, gender, grammar, int, language, lc, lcfirst, localurl, localurle, namespace,
namespacee, ns, nse, numberingroup, numberofactiveusers, numberofadmins, numberofarticles,
numberofedits, numberoffiles, numberofpages, numberofusers, numberofviews, padleft,
padright, pagename, pagenamee, pagesincategory, pagesize, plural, protectionlevel,
special, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subpagename,
subpagenamee, tag, talkpagename, talkpagenamee, talkspace, talkspacee, uc, ucfirst and
urlencode
________________________________
De : Krinkle <krinklemail(a)gmail.com>
À : HiddenId <courriel_achevrier(a)yahoo.fr>fr>; MediaWiki announcements and site admin
list <mediawiki-l(a)lists.wikimedia.org>
Envoyé le : Jeudi 8 mars 2012 12h16
Objet : Re: [Mediawiki-l] Re : Re : howto include different page.css into one
MediaWiki:CentralCSS.css page for organizing css cascade sheets?
On Thu, Mar 8, 2012 at 11:25 AM, HiddenId <courriel_achevrier(a)yahoo.fr> wrote:
Sorry I made written mistakes in my previous post.
Here is this post, with written mistakes corrected:
Hi Krinkle.
I've not reach to make your solution running.
I propose to try something:
Let's try to focuse on the modification of the #p-personal CSS used by monobook and
vector skin.
Then, using your method, here what we have:
1. Defaut skin used: Vector
2. CSS parameter to modify: #p-personal
3. CSS modification to apply: #p-personal {width:100%; background-color:green;}
4.
CSS page where this CSS modification is written:
MediaWiki:Vector.css/Layout.css page of our wiki. This page contains
only one line;
#p-personal {width:100%; background-color:green;}
5. Using of @import rule inside MediaWiki:Vector.css: This page contains this line and
only this line:
@import
url('/w/index.php?title=MediaWiki:Vector.css/Layout.css&action=raw&ctype=text/css');
6. Refreshing the browser: we use Firefox, we made ctrl+F5
7. Results: no change. The new CSS rule written in MediaWiki:Vector.css/Layout.css, is not
applied.
What sort of mistake have we done ?
Ac
What version of MediaWiki are you running?
Can you include a link to your wiki so we can look at it?
- Krinkle