Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Alter or override the commonPrint.css file via the Wiki interface?

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


mediawiki at thegadgetdoctor

May 1, 2008, 2:01 PM

Post #1 of 3 (63 views)
Permalink
Alter or override the commonPrint.css file via the Wiki interface?

I would like to customize the way some of my pages print (in line with
the CSS I've added when they are viewed on screen.

I know that I could just edit the commonPrint.css file but I'm trying
very hard to avoid touching any of the Mediawiki default files as I
would rather not have to mess around during upgrades.

Is there a way to make these changes outside of editing that file on the server?

Gadget Doctor

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

May 1, 2008, 3:23 PM

Post #2 of 3 (58 views)
Permalink
Re: Alter or override the commonPrint.css file via the Wiki interface? [In reply to]

The Gadget Doctor wrote:
> I would like to customize the way some of my pages print (in line with
> the CSS I've added when they are viewed on screen.
>
> I know that I could just edit the commonPrint.css file but I'm trying
> very hard to avoid touching any of the Mediawiki default files as I
> would rather not have to mess around during upgrades.
>
> Is there a way to make these changes outside of editing that file on the server?
>
> Gadget Doctor

You can edit Mediawiki:Common.css using @media rules. Having a
MediaWiki:Printable.css is bug 13831


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


mediawiki at thegadgetdoctor

May 2, 2008, 11:56 AM

Post #3 of 3 (51 views)
Permalink
Re: Alter or override the commonPrint.css file via the Wiki interface? [In reply to]

Thank you! I didn't know enough CSS.

For anyone else finding this in the archives, the slightly longer
version of the answer is to include the section that you want to put
in the Print.css file in the Mediawiki:common.css file enclosed in the
@media tag:

@media print
{
p.test {font-family:times,serif; font-size:10px}
}

I just didn't know this, but thanks for guiding me.

Gadget Doctor.


On Thu, May 1, 2008 at 6:23 PM, Platonides <Platonides[at]gmail.com> wrote:
>
>
>
> The Gadget Doctor wrote:
> > I would like to customize the way some of my pages print (in line with
> > the CSS I've added when they are viewed on screen.
> >
> > I know that I could just edit the commonPrint.css file but I'm trying
> > very hard to avoid touching any of the Mediawiki default files as I
> > would rather not have to mess around during upgrades.
> >
> > Is there a way to make these changes outside of editing that file on the server?
> >
> > Gadget Doctor
>
> You can edit Mediawiki:Common.css using @media rules. Having a
> MediaWiki:Printable.css is bug 13831
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.