Steve Bennett wrote:
On 8/12/06, Timwi timwi@gmx.net wrote:
You do that using <div class='some_name'>. This allows you to specify the actual style (font, color, etc.) in the CSS, which is much more of a "template" in its literal meaning than {{...}} is.
What exactly do you mean by "the CSS". If one refers to a new class in a page, where does one define it? At the top of the page? In some other .css file?
"The CSS" is the CSS that is included in any particular page view. Currently the only way to include CSS in a page view is to place it on [[MediaWiki:Monobook.css]], [[MediaWiki:Common.css]], or any page that is @import'ed from these. However, obviously, it is entirely possible to add a feature to MediaWiki that allows the inclusion of certain CSS on a specific page. One could even have the parser pick out all the 'class' attributes and include all the necessary CSS for those automatically. The only problem with things like this is that I'm the only one that seems to think it's a good idea, while most other people like to stay with old, limited and never-evolving systems.
Timwi