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
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


Description Ruud Koot 2007-01-01 01:45:04 UTC
Templates in [[MediaWiki:Common.js]] are not only expanded when viewing the
stylesheet at <>, but also in
the generated stylesheet code
<>. 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?

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
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.