Last modified: 2008-03-17 22:22:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13388 - New action parameter that renders js/css pages via wiki syntax
New action parameter that renders js/css pages via wiki syntax
Status: RESOLVED DUPLICATE of bug 10410
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-03-16 12:53 UTC by yes0song
Modified: 2008-03-17 22:22 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description yes0song 2008-03-16 12:53:12 UTC
Currently, the contents of javascript and css pages are rendered in <pre> tag. However, I think this can cause inconvenient sometimes.

In Chinese Wikipedia, administrators have described .js/.css source code in MediaWiki: namespace using wiki syntax via /* */ comment lines, e.g.:

== 中文處理 ==
var htmlE=document.documentElement;
function wgULS(hans,hant,cn,tw,hk,sg,zh){
== IE兼容性修正 ==
if (navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat"){

(from [[zh:MediaWiki:Commons.js]])

This was very convenient when MediaWiki of old version was used. In this format, maintainers could divide scripts into sections and it was easy to check what functions are wroted in the page via the ToC made in the wiki page.

However, this became useless now because current MediaWiki software processes .js/.css pages via <pre> tag! Of course, the "<pre> tag-processing" has some merits, but has lost other good points.

Therefore, I request to add new "action=" parameter (for example, "action=wikisyntax"). When "action=wikisyntax", MediaWiki software renders .js/.css pages via wiki syntax not "<pre> tag-processing".
Comment 1 Brion Vibber 2008-03-17 22:22:00 UTC
Duping to bug 10410, which collects these issues (linking, sections for JS/CSS pages)

*** This bug has been marked as a duplicate of bug 10410 ***

Note You need to log in before you can comment on or make changes to this bug.