Install PageCSS (mediawiki extension)

RESOLVED FIXED

Status

--
enhancement
RESOLVED FIXED
12 years ago
4 years ago

People

(Reporter: gekacheka, Assigned: oremj)

Tracking

Details

(Reporter)

Description

12 years ago
Request: install a PageCSS mediawiki extension on wiki.mozilla.org

http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/PageCSS/PageCSS.php?view=log

As of this writing, the PageCSS source seems to say it
Requires: MediaWiki 1.6
Requires: PHP 5.1

Background

The calendar project is moving its developer documentation pages to
wiki.mozilla.org (or maybe someday to developer.mozilla.org).  
Page(s) are to include component stack diagrams and
component block diagrams constructed from HTML tables.  (Unlike images, HTML
tables are easily editable, searchable, and linkable, and can reflow text to
fit window.)  

The HTML diagrams use CSS style rules to consistently style the many cells.
(The diagrams would be unmaintainable if the CSS had to be duplicated on every
cell, obfuscating the content and making style difficult to keep consistent.)

Unlike html pages, Wikicode does not permit <head> elements:  
Wikicode does not permit <style>...</style>, so it is not possible to include
the style rules within a wiki page.  
Wikicode does not permit <link>, so it is not possible to link to an external
stylesheet.

The current temporary workaround is to incorporate CSS into site-wide CSS, but this approach has been discouraged, and PageCSS has been suggested instead (see bug 334225).

Bug 334225 has further discussion, and sample html page with diagrams (bug 334225 attachment 218589 [details]), which needs PageCSS to be put in the wiki.
See also bug 343564.
(Assignee)

Updated

12 years ago
Assignee: server-ops → oremj
(Assignee)

Comment 2

12 years ago
This extension requires PHP 5.  We run PHP 4.  Please reopen if you have any other ideas on making this work.
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → INVALID
(Assignee)

Updated

12 years ago
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
(Assignee)

Comment 4

12 years ago
Yeah, I didn't really want to have to run an out of date version, but after looking more at the extension it is so simple it probably doesn't matter/won't need to be updated.

Installed.
Status: REOPENED → RESOLVED
Last Resolved: 12 years ago12 years ago
Resolution: --- → FIXED
(Reporter)

Comment 5

12 years ago
I have not been able to get PageCSS <css> tags to work on wiki.mozilla.org.
The <css> tags are converted to &lt;css&gt; just like unrecognized html tags.
I tried simple examples like:


<css>span.test { color: red; }</css>

<nowiki><css>
span.test { color: red; }
</css></nowiki>

Words with <span class="test">red text</span>.


Shouldn't this now work on any page?  Am I missing something?

Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.