Last modified: 2014-09-20 19:10: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 8449 - Templates in CSS and JS pages should not be expanded
Templates in CSS and JS pages should not be expanded
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
1.11.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/MediaWik...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-01 01:45 UTC by Ruud Koot
Modified: 2014-09-20 19:10 UTC (History)
5 users (show)

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


Attachments

Description Ruud Koot 2007-01-01 01:45:04 UTC
Templates in [[MediaWiki:Common.js]] are not only expanded when viewing the
stylesheet at <http://en.wikipedia.org/wiki/MedaiWiki:Common.js>, but also in
the generated stylesheet code
<http://en.wikipedia.org/w/index.php?title=-&action=raw&smaxage=0&gen=js>. This
behaviour is inconsistent with how templates are expanded in personal
stylesheets. Not expanding templates in the generated stylesheet would allow
documentation to be placed in [[MediaWiki:Common.js]] without significantly
increasing the size of the generated stylesheet.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-15 01:51:28 UTC
Display in the page itself has been fixed with r23657 et al. (see bug 10432 and related).  I can confirm that action=raw still expands templates for CSS/JS pages.  Workaround for now: don't use templates in them.  ;)
Comment 2 Nemo 2012-11-03 08:56:36 UTC
Is this fixed by ContentHandler?
Comment 3 Jackmcbarn 2014-09-20 18:38:13 UTC
This bug also applies to user JS and CSS pages; description updated.

(In reply to Nemo from comment #2)
> Is this fixed by ContentHandler?

No.
Comment 4 Jackmcbarn 2014-09-20 18:38:25 UTC
*** Bug 8761 has been marked as a duplicate of this bug. ***
Comment 5 Helder 2014-09-20 18:53:08 UTC
This is fixed, since
https://ca.wikipedia.org/w/index.php?title=MediaWiki:Common.js&action=raw&ctype=text/javascript
keeps every ocurrence of "{{referències}}" intact, therefore not increasing the size of the JS page.
Comment 6 Jackmcbarn 2014-09-20 19:10:00 UTC
It's not actually completely fixed. Things like subst still present a problem, and pages still end up in erroneous categories.

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


Navigation
Links