“ The following bare CSS in the work's page content is bad form:Avast, ye, Long John Silver! This is to say: the classes defined in CSS (including work-specific CSS) should nearly always be invoked via a template, not directly. It is much easier to reason about and maintain templates than HTML/CSS, even if the template itself constructs HTML/CSS.CSS vs templates Some things are suitable to be handled by work-specific CSS, and other things are more suitable for a template. ”
CSS
Definition and stakes
CSS (Cascading Style Sheets) is a stylesheet language used to define the presentation of documents written in HTML or XML. The theme examines its use in wikis, focusing on structured styling through templates and overarching rules. Authors such as Richard Garnett emphasize CSS's role in organizing pages, while discussions advocate for avoiding inline styling to improve maintainability.
Technical discussions center on achieving a balance between adaptability—through templates—and uniformity in global styles, as reflected in proposals to reduce repetitive code. The theme highlights CSS as a tool that demands both technical accuracy and collaborative standardization to improve readability and structural clarity across digital archives.
Quotes about “CSS”
“ A CSS "stylesheet" can be applied to a Index page, which will allow every Page: namespace page within it to share the same styling. This CSS is automatically included when pages are transcluded using thetag.You do not need to use CSS for a work if you don't want to. It is provided to make life easier, not harder.How to apply CSS The CSS is read from the /styles.css subpage of the Index page. If this page does not exist, no styles will be applied by default by the ProofreadPage extension. ”
“ I don't want to encourage end-user use of any CSS class directly (in fact I want to very very emphatically prevent it) .can't be tracked, can't be sensibly adjusted, can't... Ugh! If we don't let end users use classes directly, where to store the associated style rules (or even whether they are CSS at all!) becomes a technical consideration. In principle, specifying |class=foo could make the template spit out an XML processing instruction, that an extension transformed into an event sent to a Gadget, that triggered an embedded Flash player that displayed the... ”Source: Wikisource
