Also sprach N. Max Pierson:
Has anyone gone down this road before with trying to
render wiki's with
CSS?? (We currently have custom Common.css and Print.css files on many wiki
sites). Obviously I don't want to have to re-invent the wheel, but I have
yet to see any extensions that support CSS.
There's a set of case studies here:
http://www.princexml.com/samples/#wiki
You can use Prince for free for non-commercial purposes.
Wikipedia's HTML markup is suboptimal for printing, ofte due to the
use of the 'style' attribute which hardcodes presentations for
screens.
http://www.princexml.com/bb/viewtopic.php?f=2&t=3823
In Norway, we have started a project to exterminate the 'style'
attribute. Here's a description (in Norwegian):
http://no.wikipedia.org/wiki/Wikipedia:Underprosjekter/Utryddelse_av_«style…
Good progress has been made in the templates. Most of the remaining
issues are in the Mediawiki software itself. For example, in markup
like this:
<div class="thumbinner" style="width:222px;"><a
href="/wiki/Fil:FeleHel_(2).jpg" class="image"><img
alt=""
src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/FeleHel_…
width="220" height="431" class="thumbimage" /></a>
Perhaps one could create classes for the most common sizes? (220px seems quite common)
Then there's these:
<div id="mw-js-message" style="display:none;"></div>
<div id="p-logo"><a style="background-image:
url(http://upload.wikimedia.org/wikipedia/no/b/bc/Wiki.png);"href=&quo…
title="Hovedside"></a></div>
<div style="clear:both"></div>
Efforts to rmove these -- by turning them into classes -- will be much
appreciated.
Cheers,
-h&kon
http://people.opera.com/howcome
http://www.princexml.com/howcome