Page MenuHomePhabricator

replace MSG(NW) before the other variables
Closed, ResolvedPublic


Author: timwi

Originally submitted by E. L. (elwp) 2003-12-19 20:34

In OutputPage::replaceVariables the MSG(NW) variables
are replaced only after the other variables. But it
would be useful to allow user defined messages that
refer to these other variables.

This is not a theoretical problem. On the German Main
Page we'd like to let the "selected articles" block be
editable by all users, and thus we moved it to the
MediaWiki namespace, but it contains {{CURRENTDAY}} and

I don't think that the required rearrangement in
"replaceVariables" would have any undesired side effects.


Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:48 PM
bzimport set Reference to bz328.
bzimport added a subscriber: Unknown Object (MLST).

timwi wrote:

I'm not sure I understand this bug.

  • What exactly is the problem?
  • What are you expecting this modification to accomplish?
  • What are the "other variables" you are referring to?

wmahan_04 wrote:

At the time this bug was filed, it seems it was not possible to include a magic
variable like {{CURRENTDAY}} inside a template. MediaWiki has long sine been
changed to recursively expand variables and other templates inside templates
(which no longer require a msg: prefix or reside in the MediaWiki namespace). So
I'm marking this as fixed.