WT:Catalogue of CSS classes#@keyframes

Section Zero

Very worthwhile. It would be good to identify the classes that are built into the main skins that come with MediaWiki (monobook/main.css, etc), and the ones that have been added to the editor-accessible stylesheets in this project (Monobook.css, etc). Or is this list only for the latter? Michael Z. 2006-02-03 06:38 Z

:It's for both. --cesarb 14:17, 3 February 2006 (UTC)

Defined at vs Used by confusion

I personally am quite confused by when to put a mention of a class or id in the Defined at column and when in the Used by column. My guess was that CSS classes are defined by code in CSS files like #spoiler { border-top: 2px solid #ddd; } and used in HTML or wikicode like class="spoiler", and IDs are reversed; they are defined by HTML id="bar", and used in CSS files. But maybe I got this backwards. In any case, it would be very helpful if this was defined(no pun intented) at the top of the page. JesseW, the juggling janitor 08:10, 17 March 2006 (UTC)

:I agree, they are confusing. If you can suggest better names for the columns, go ahead (but they should be the same in both the classes and the IDs tables, to make it easier to follow). The introduction also needs some editing; I wrote it mostly as a quick placeholder. --cesarb 02:24, 26 March 2006 (UTC)

::Er, did I get them backwards, or is my understanding correct? If it is, we could just name the columns In CSS and In HTML, which I think would be clearer, unless that's wrong... JesseW, the juggling janitor 02:37, 26 March 2006 (UTC)

:::Yes, "in CSS" and "in HTML" would be correct almost all the time... Except in the couple of places where one or both of the columns are in fact "in JS" (where the code both uses the classes as markers and creates elements with the classes; mostly the "Dynamic Navigation Bars" stuff). I think I'll do it as you suggested and simply add a footnote. --cesarb 18:37, 26 March 2006 (UTC)

::::Well, my understanding of the javascript use is that it falls into the CSS or HTML form as well; if the JS uses the DOM to define an ID, that's "In HTML", if it uses the DOM to define the style attribute, that's "In CSS". Thanks for making the change, in any case. JesseW, the juggling janitor 01:03, 27 March 2006 (UTC)

Linking to source code mentions

How should we link to mentions of the classes and IDs in MediaWiki source code. While line #s do change, so can all the other information in the page, and line #s provide a very useful way to link to the specific mention in question. We could link to sf.net cvs browser, which would let us link to specific versions of the code... JesseW, the juggling janitor 08:16, 17 March 2006 (UTC)

:A way to avoid the problem would be to mention not the line number but the function name; however, there's still the problem that it bloats the (already very long) table considerably. Finding the correct files is the hard part; after that, it's easy to search within then for mentions of the class or ID. I'd prefer to link only to the files. --cesarb 02:24, 26 March 2006 (UTC)

::OK; as I don't see a particuarly elegant solution either, linking to the files only seems fine for now. JesseW, the juggling janitor 02:36, 26 March 2006 (UTC)

Some more source code bits to add sometime

/Users/jesse/FreeProjects/phase3/includes/Article.php:821: ''.$link.'' );

/Users/jesse/FreeProjects/phase3/includes/ChangesList.php:474: $users = ' ['.implode('; ',$users).']';

/Users/jesse/FreeProjects/phase3/includes/DifferenceEngine.php:262: $header = "

{$this->mOldtitle}
$userLink " .

/Users/jesse/FreeProjects/phase3/includes/EditPage.php:908:

/Users/jesse/FreeProjects/phase3/includes/EditPage.php:1079: "

" . $wgOut->parse( wfMsg( $msg ) ) . "
\n";

/Users/jesse/FreeProjects/phase3/includes/ImageGallery.php:95: $s = '

';

/Users/jesse/FreeProjects/phase3/includes/ImageGallery.php:106: $s .= '